summaryrefslogtreecommitdiff
path: root/noncore/net/mail/sendmailprogress.cpp
authoralwin <alwin>2004-01-04 02:22:03 (UTC)
committer alwin <alwin>2004-01-04 02:22:03 (UTC)
commit55df8c221c43d81f6132d033553a173276954f7c (patch) (unidiff)
tree6b7229859557580fa2c873d49e2fdca707aed3fe /noncore/net/mail/sendmailprogress.cpp
parent5573d6606b5243890fd00bf858ed21a87f00bfc4 (diff)
downloadopie-55df8c221c43d81f6132d033553a173276954f7c.zip
opie-55df8c221c43d81f6132d033553a173276954f7c.tar.gz
opie-55df8c221c43d81f6132d033553a173276954f7c.tar.bz2
moved to shared lib
Diffstat (limited to 'noncore/net/mail/sendmailprogress.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mail/sendmailprogress.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/noncore/net/mail/sendmailprogress.cpp b/noncore/net/mail/sendmailprogress.cpp
deleted file mode 100644
index ef22750..0000000
--- a/noncore/net/mail/sendmailprogress.cpp
+++ b/dev/null
@@ -1,48 +0,0 @@
1#include "sendmailprogress.h"
2#include <qprogressbar.h>
3#include <qlabel.h>
4#include <qstring.h>
5
6progressMailSend::progressMailSend(QWidget*parent, const char * name)
7 :progressMailSendUI(parent,name,true),m_current_mail(0),m_current_single(0),m_max_mail(0),m_max_single(0)
8{
9}
10
11progressMailSend::~progressMailSend()
12{
13}
14
15void progressMailSend::setMaxMails(unsigned int aMaxMails)
16{
17 m_max_mail = aMaxMails;
18 allMailProgressBar->setTotalSteps(aMaxMails);
19 setMails();
20}
21
22void progressMailSend::setCurrentMails(unsigned int aCurrent)
23{
24 m_current_mail = aCurrent;
25 allMailProgressBar->setProgress(aCurrent);
26 setMails();
27}
28
29void progressMailSend::setSingleMail(unsigned int aCurrent,unsigned int aMax)
30{
31 m_current_single = aCurrent;
32 m_max_single = aMax;
33 setSingle();
34}
35
36void progressMailSend::setSingle()
37{
38 QString text = QString(tr("%1 of %2 bytes send")).arg(m_current_single).arg(m_max_single);
39 singleMailLabel->setText(text);
40 singleMailProgressBar->setTotalSteps(m_max_single);
41 singleMailProgressBar->setProgress(m_current_single);
42}
43
44void progressMailSend::setMails()
45{
46 QString text = QString(tr("Sending mail %1 of %2")).arg(m_current_mail+1).arg(m_max_mail);
47 allMailLabel->setText(text);
48}