From 1281563b998508efeaa63739fb2c7c92e8316e9c Mon Sep 17 00:00:00 2001 From: harlekin Date: Sun, 21 Dec 2003 13:29:48 +0000 Subject: send mail later/ enqueue gui side implementation --- (limited to 'noncore/net/mail/composemail.cpp') 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 #include +#include #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( "

Please create an SMTP account first.

" ), 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(); -- cgit v0.9.0.2