summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-12-21 13:29:48 (UTC)
committer harlekin <harlekin>2003-12-21 13:29:48 (UTC)
commit1281563b998508efeaa63739fb2c7c92e8316e9c (patch) (unidiff)
treeff9aa7202b0fa81e0eec727414aef69ba82b7780
parent228ff69db6e535a872a0f397ba157f832567af80 (diff)
downloadopie-1281563b998508efeaa63739fb2c7c92e8316e9c.zip
opie-1281563b998508efeaa63739fb2c7c92e8316e9c.tar.gz
opie-1281563b998508efeaa63739fb2c7c92e8316e9c.tar.bz2
send mail later/ enqueue gui side implementation
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/composemail.cpp11
-rw-r--r--noncore/net/mail/composemailui.ui21
-rw-r--r--noncore/net/mail/settingsdialog.cpp6
-rw-r--r--noncore/net/mail/settingsdialogui.ui50
4 files changed, 78 insertions, 10 deletions
diff --git a/noncore/net/mail/composemail.cpp b/noncore/net/mail/composemail.cpp
index 048fa85..f680f5c 100644
--- a/noncore/net/mail/composemail.cpp
+++ b/noncore/net/mail/composemail.cpp
@@ -3,4 +3,5 @@
3#include <opie/ofiledialog.h> 3#include <opie/ofiledialog.h>
4#include <qpe/resource.h> 4#include <qpe/resource.h>
5#include <qpe/config.h>
5 6
6#include "composemail.h" 7#include "composemail.h"
@@ -12,4 +13,8 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m
12 settings = s; 13 settings = s;
13 14
15 Config cfg( "mail" );
16 cfg.setGroup( "Compose" );
17 checkBoxLater->setChecked( cfg.readBoolEntry( "sendLater", false ) );
18
14 attList->addColumn( tr( "Name" ) ); 19 attList->addColumn( tr( "Name" ) );
15 attList->addColumn( tr( "Size" ) ); 20 attList->addColumn( tr( "Size" ) );
@@ -31,4 +36,5 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m
31 tr( "<p>Please create an SMTP account first.</p>" ), 36 tr( "<p>Please create an SMTP account first.</p>" ),
32 tr( "Ok" ) ); 37 tr( "Ok" ) );
38 return;
33 } 39 }
34 40
@@ -154,4 +160,9 @@ void ComposeMail::removeAttachment()
154void ComposeMail::accept() 160void ComposeMail::accept()
155{ 161{
162 if ( checkBoxLater->isChecked() ) {
163 qDebug( "Send later" );
164 }
165
166
156 qDebug( "Sending Mail with " + 167 qDebug( "Sending Mail with " +
157 smtpAccounts.at( fromBox->currentItem() )->getAccountName() ); 168 smtpAccounts.at( fromBox->currentItem() )->getAccountName() );
diff --git a/noncore/net/mail/composemailui.ui b/noncore/net/mail/composemailui.ui
index 9f5feb9..4d225e4 100644
--- a/noncore/net/mail/composemailui.ui
+++ b/noncore/net/mail/composemailui.ui
@@ -12,5 +12,5 @@
12 <x>0</x> 12 <x>0</x>
13 <y>0</y> 13 <y>0</y>
14 <width>264</width> 14 <width>260</width>
15 <height>360</height> 15 <height>360</height>
16 </rect> 16 </rect>
@@ -29,11 +29,22 @@
29 <property stdset="1"> 29 <property stdset="1">
30 <name>margin</name> 30 <name>margin</name>
31 <number>0</number> 31 <number>3</number>
32 </property> 32 </property>
33 <property stdset="1"> 33 <property stdset="1">
34 <name>spacing</name> 34 <name>spacing</name>
35 <number>0</number> 35 <number>3</number>
36 </property> 36 </property>
37 <widget> 37 <widget>
38 <class>QCheckBox</class>
39 <property stdset="1">
40 <name>name</name>
41 <cstring>checkBoxLater</cstring>
42 </property>
43 <property stdset="1">
44 <name>text</name>
45 <string>send later</string>
46 </property>
47 </widget>
48 <widget>
38 <class>QTabWidget</class> 49 <class>QTabWidget</class>
39 <property stdset="1"> 50 <property stdset="1">
@@ -60,9 +71,9 @@
60 <property stdset="1"> 71 <property stdset="1">
61 <name>margin</name> 72 <name>margin</name>
62 <number>4</number> 73 <number>-1</number>
63 </property> 74 </property>
64 <property stdset="1"> 75 <property stdset="1">
65 <name>spacing</name> 76 <name>spacing</name>
66 <number>3</number> 77 <number>-1</number>
67 </property> 78 </property>
68 <widget row="2" column="1" > 79 <widget row="2" column="1" >
diff --git a/noncore/net/mail/settingsdialog.cpp b/noncore/net/mail/settingsdialog.cpp
index 9741e94..f9de405 100644
--- a/noncore/net/mail/settingsdialog.cpp
+++ b/noncore/net/mail/settingsdialog.cpp
@@ -1,3 +1,3 @@
1#include <qradiobutton.h> 1#include <qcheckbox.h>
2 2
3#include <qpe/config.h> 3#include <qpe/config.h>
@@ -20,4 +20,6 @@ void SettingsDialog::readConfig() {
20 cfg.setGroup( "Settings" ); 20 cfg.setGroup( "Settings" );
21 showHtmlButton->setChecked( cfg.readBoolEntry( "showHtml", false ) ); 21 showHtmlButton->setChecked( cfg.readBoolEntry( "showHtml", false ) );
22 cfg.setGroup( "Compose" );
23 checkBoxLater->setChecked( cfg.readBoolEntry( "sendLater", false ) );
22} 24}
23 25
@@ -26,4 +28,6 @@ void SettingsDialog::writeConfig() {
26 cfg.setGroup( "Settings" ); 28 cfg.setGroup( "Settings" );
27 cfg.writeEntry( "showHtml", showHtmlButton->isChecked() ); 29 cfg.writeEntry( "showHtml", showHtmlButton->isChecked() );
30 cfg.setGroup( "Compose" );
31 cfg.writeEntry( "sendLater", checkBoxLater->isChecked() );;
28 32
29} 33}
diff --git a/noncore/net/mail/settingsdialogui.ui b/noncore/net/mail/settingsdialogui.ui
index 3b03aeb..c5589dc 100644
--- a/noncore/net/mail/settingsdialogui.ui
+++ b/noncore/net/mail/settingsdialogui.ui
@@ -12,5 +12,5 @@
12 <x>0</x> 12 <x>0</x>
13 <y>0</y> 13 <y>0</y>
14 <width>328</width> 14 <width>324</width>
15 <height>379</height> 15 <height>379</height>
16 </rect> 16 </rect>
@@ -67,5 +67,5 @@
67 </property> 67 </property>
68 <widget> 68 <widget>
69 <class>QRadioButton</class> 69 <class>QCheckBox</class>
70 <property stdset="1"> 70 <property stdset="1">
71 <name>name</name> 71 <name>name</name>
@@ -74,5 +74,5 @@
74 <property stdset="1"> 74 <property stdset="1">
75 <name>text</name> 75 <name>text</name>
76 <string>View mail as Html </string> 76 <string>View mail as Html</string>
77 </property> 77 </property>
78 </widget> 78 </widget>
@@ -108,6 +108,48 @@
108 <attribute> 108 <attribute>
109 <name>title</name> 109 <name>title</name>
110 <string>Tab 2</string> 110 <string>Compose Mail</string>
111 </attribute> 111 </attribute>
112 <vbox>
113 <property stdset="1">
114 <name>margin</name>
115 <number>3</number>
116 </property>
117 <property stdset="1">
118 <name>spacing</name>
119 <number>3</number>
120 </property>
121 <widget>
122 <class>QCheckBox</class>
123 <property stdset="1">
124 <name>name</name>
125 <cstring>checkBoxLater</cstring>
126 </property>
127 <property stdset="1">
128 <name>text</name>
129 <string>Send mails later ( enqueue in outbox )</string>
130 </property>
131 </widget>
132 <spacer>
133 <property>
134 <name>name</name>
135 <cstring>Spacer2</cstring>
136 </property>
137 <property stdset="1">
138 <name>orientation</name>
139 <enum>Vertical</enum>
140 </property>
141 <property stdset="1">
142 <name>sizeType</name>
143 <enum>Expanding</enum>
144 </property>
145 <property>
146 <name>sizeHint</name>
147 <size>
148 <width>20</width>
149 <height>20</height>
150 </size>
151 </property>
152 </spacer>
153 </vbox>
112 </widget> 154 </widget>
113 </widget> 155 </widget>