summaryrefslogtreecommitdiff
path: root/noncore/net/mail/libmailwrapper/smtpwrapper.cpp
authoralwin <alwin>2003-12-24 02:00:34 (UTC)
committer alwin <alwin>2003-12-24 02:00:34 (UTC)
commitfa581423c0ffcf35cbc403645e2131e84342dae4 (patch) (side-by-side diff)
tree53152de4b2213f858096141bb50e5ca2ec0e91ef /noncore/net/mail/libmailwrapper/smtpwrapper.cpp
parent242f7a04e3e4963a5606ac603d54a4f115de4a04 (diff)
downloadopie-fa581423c0ffcf35cbc403645e2131e84342dae4.zip
opie-fa581423c0ffcf35cbc403645e2131e84342dae4.tar.gz
opie-fa581423c0ffcf35cbc403645e2131e84342dae4.tar.bz2
ah, ok. I found the trick or better I found what I forgot :)
Means: When sending mail a progress dialog comes up.
Diffstat (limited to 'noncore/net/mail/libmailwrapper/smtpwrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/smtpwrapper.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/noncore/net/mail/libmailwrapper/smtpwrapper.cpp b/noncore/net/mail/libmailwrapper/smtpwrapper.cpp
index 53c0af5..770e2b8 100644
--- a/noncore/net/mail/libmailwrapper/smtpwrapper.cpp
+++ b/noncore/net/mail/libmailwrapper/smtpwrapper.cpp
@@ -527,3 +527,3 @@ void SMTPwrapper::progress( size_t current, size_t maximum )
SMTPwrapper::sendProgress->setSingleMail(current, maximum );
- qDebug("%u of %u",current,maximum);
+ qApp->processEvents();
}
@@ -654,5 +654,5 @@ void SMTPwrapper::sendMail(const Mail&mail,bool later )
sendProgress = new progressMailSend();
- sendProgress->showMaximized();
+// sendProgress->showMaximized();
sendProgress->show();
- qApp->processEvents(10);
+ sendProgress->setMaxMails(1);
smtpSend( mimeMail,later,smtp);
@@ -715,2 +715,7 @@ void SMTPwrapper::flushOutbox(SMTPaccount*smtp)
mailsToSend.setAutoDelete(false);
+ sendProgress = new progressMailSend();
+// sendProgress->showMaximized();
+ sendProgress->show();
+ sendProgress->setMaxMails(mailsToSend.count());
+
while (mailsToSend.count()>0) {
@@ -723,3 +728,7 @@ void SMTPwrapper::flushOutbox(SMTPaccount*smtp)
mailsToSend.removeFirst();
+ sendProgress->setCurrentMails(mailsToRemove.count());
}
+ sendProgress->hide();
+ delete sendProgress;
+ sendProgress = 0;
wrap->deleteMails(mbox,mailsToRemove);