summaryrefslogtreecommitdiff
path: root/noncore/net/mail/libmailwrapper/statusmail.h
authoralwin <alwin>2004-01-05 02:01:53 (UTC)
committer alwin <alwin>2004-01-05 02:01:53 (UTC)
commit2c2b23f3627321126cb329b2a1665795f82a35a5 (patch) (side-by-side diff)
tree9a88f55a44e049e5a9fab06d5e0094f6ff5e0c23 /noncore/net/mail/libmailwrapper/statusmail.h
parent3d0cb890b496c7b9fd16e300d5456233dbad0077 (diff)
downloadopie-2c2b23f3627321126cb329b2a1665795f82a35a5.zip
opie-2c2b23f3627321126cb329b2a1665795f82a35a5.tar.gz
opie-2c2b23f3627321126cb329b2a1665795f82a35a5.tar.bz2
ups - forgot to add the files
simple check if inboxes (and only INBOX) implemented.
Diffstat (limited to 'noncore/net/mail/libmailwrapper/statusmail.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/statusmail.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/noncore/net/mail/libmailwrapper/statusmail.h b/noncore/net/mail/libmailwrapper/statusmail.h
new file mode 100644
index 0000000..498f7a3
--- a/dev/null
+++ b/noncore/net/mail/libmailwrapper/statusmail.h
@@ -0,0 +1,31 @@
+#ifndef __MAIL_STATUS_H
+#define __MAIL_STATUS_H
+
+#include <settings.h>
+#include <abstractmail.h>
+#include <mailtypes.h>
+
+class StatusMail
+{
+public:
+ StatusMail(QList<Account>*list);
+ virtual ~StatusMail();
+
+ /* this should be called if opiemail is starte or a mailbox touched - may be trough
+ a qcop signal or if tab on the taskbar applet*/
+ virtual void reset_status();
+ virtual void check_current_stat(folderStat&targetStat);
+
+protected:
+ void initAccounts(QList<Account>*list);
+ /* this must be cause we have to calculate the recent for pop3*/
+ folderStat currentImapStat;
+ /* currentPop3Stat is the sum of messages in POP3 accounts in CURRENT loop
+ the recent are calculated to the difference of the LAST loop */
+ folderStat currentPop3Stat;
+ /* lastPop3Stat is the sum of messages in LAST loop */
+ folderStat lastPop3Stat;
+ QList<AbstractMail> connectionList;
+};
+
+#endif