summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/sendmailprogress.cpp48
-rw-r--r--noncore/net/mail/sendmailprogress.h19
-rw-r--r--noncore/net/mail/sendmailprogressui.ui110
3 files changed, 0 insertions, 177 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 @@
-#include "sendmailprogress.h"
-#include <qprogressbar.h>
-#include <qlabel.h>
-#include <qstring.h>
-
-progressMailSend::progressMailSend(QWidget*parent, const char * name)
- :progressMailSendUI(parent,name,true),m_current_mail(0),m_current_single(0),m_max_mail(0),m_max_single(0)
-{
-}
-
-progressMailSend::~progressMailSend()
-{
-}
-
-void progressMailSend::setMaxMails(unsigned int aMaxMails)
-{
- m_max_mail = aMaxMails;
- allMailProgressBar->setTotalSteps(aMaxMails);
- setMails();
-}
-
-void progressMailSend::setCurrentMails(unsigned int aCurrent)
-{
- m_current_mail = aCurrent;
- allMailProgressBar->setProgress(aCurrent);
- setMails();
-}
-
-void progressMailSend::setSingleMail(unsigned int aCurrent,unsigned int aMax)
-{
- m_current_single = aCurrent;
- m_max_single = aMax;
- setSingle();
-}
-
-void progressMailSend::setSingle()
-{
- QString text = QString(tr("%1 of %2 bytes send")).arg(m_current_single).arg(m_max_single);
- singleMailLabel->setText(text);
- singleMailProgressBar->setTotalSteps(m_max_single);
- singleMailProgressBar->setProgress(m_current_single);
-}
-
-void progressMailSend::setMails()
-{
- QString text = QString(tr("Sending mail %1 of %2")).arg(m_current_mail+1).arg(m_max_mail);
- allMailLabel->setText(text);
-}
diff --git a/noncore/net/mail/sendmailprogress.h b/noncore/net/mail/sendmailprogress.h
deleted file mode 100644
index 5b7d33b..0000000
--- a/noncore/net/mail/sendmailprogress.h
+++ b/dev/null
@@ -1,19 +0,0 @@
-#include "sendmailprogressui.h"
-
-class progressMailSend:public progressMailSendUI
-{
- Q_OBJECT
-public:
- progressMailSend(QWidget*parent = 0, const char * name = 0);
- ~progressMailSend();
-
- void setMaxMails(unsigned int aMaxMails);
- void setCurrentMails(unsigned int aCurrent);
-
- void setSingleMail(unsigned int aCurrent,unsigned int aMax);
-
-protected:
- unsigned m_current_mail,m_current_single,m_max_mail,m_max_single;
- void setSingle();
- void setMails();
-};
diff --git a/noncore/net/mail/sendmailprogressui.ui b/noncore/net/mail/sendmailprogressui.ui
deleted file mode 100644
index 287ab5e..0000000
--- a/noncore/net/mail/sendmailprogressui.ui
+++ b/dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE UI><UI>
-<class>progressMailSendUI</class>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>progressMailSendUI</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>221</width>
- <height>127</height>
- </rect>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Sending mail</string>
- </property>
- <property>
- <name>layoutMargin</name>
- </property>
- <property>
- <name>layoutSpacing</name>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>4</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>2</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>singleMailLabel</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Progress of mail</string>
- </property>
- <property stdset="1">
- <name>alignment</name>
- <set>AlignCenter</set>
- </property>
- <property>
- <name>hAlign</name>
- </property>
- </widget>
- <widget>
- <class>QProgressBar</class>
- <property stdset="1">
- <name>name</name>
- <cstring>singleMailProgressBar</cstring>
- </property>
- </widget>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>allMailLabel</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Sending mail</string>
- </property>
- <property stdset="1">
- <name>alignment</name>
- <set>AlignCenter</set>
- </property>
- <property>
- <name>hAlign</name>
- </property>
- </widget>
- <widget>
- <class>QProgressBar</class>
- <property stdset="1">
- <name>name</name>
- <cstring>allMailProgressBar</cstring>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer6</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </vbox>
-</widget>
-</UI>