summaryrefslogtreecommitdiff
path: root/noncore/net/mail/composemail.cpp
authorharlekin <harlekin>2003-12-21 13:29:48 (UTC)
committer harlekin <harlekin>2003-12-21 13:29:48 (UTC)
commit1281563b998508efeaa63739fb2c7c92e8316e9c (patch) (side-by-side diff)
treeff9aa7202b0fa81e0eec727414aef69ba82b7780 /noncore/net/mail/composemail.cpp
parent228ff69db6e535a872a0f397ba157f832567af80 (diff)
downloadopie-1281563b998508efeaa63739fb2c7c92e8316e9c.zip
opie-1281563b998508efeaa63739fb2c7c92e8316e9c.tar.gz
opie-1281563b998508efeaa63739fb2c7c92e8316e9c.tar.bz2
send mail later/ enqueue gui side implementation
Diffstat (limited to 'noncore/net/mail/composemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/composemail.cpp11
1 files changed, 11 insertions, 0 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
@@ -2,6 +2,7 @@
#include <opie/ofiledialog.h>
#include <qpe/resource.h>
+#include <qpe/config.h>
#include "composemail.h"
#include "smtpwrapper.h"
@@ -11,6 +12,10 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m
{
settings = s;
+ Config cfg( "mail" );
+ cfg.setGroup( "Compose" );
+ checkBoxLater->setChecked( cfg.readBoolEntry( "sendLater", false ) );
+
attList->addColumn( tr( "Name" ) );
attList->addColumn( tr( "Size" ) );
@@ -30,6 +35,7 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m
QMessageBox::information( this, tr( "Problem" ),
tr( "<p>Please create an SMTP account first.</p>" ),
tr( "Ok" ) );
+ return;
}
connect( fromBox, SIGNAL( activated( int ) ), SLOT( fillValues( int ) ) );
@@ -153,6 +159,11 @@ void ComposeMail::removeAttachment()
void ComposeMail::accept()
{
+ if ( checkBoxLater->isChecked() ) {
+ qDebug( "Send later" );
+ }
+
+
qDebug( "Sending Mail with " +
smtpAccounts.at( fromBox->currentItem() )->getAccountName() );
Mail *mail = new Mail();