author | zautrix <zautrix> | 2004-07-03 16:33:12 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-03 16:33:12 (UTC) |
commit | e3b89230f065c48c84b48c88edb6eb088374c487 (patch) (side-by-side diff) | |
tree | 162ea2ef909a6f82ccfcedf45d80d6c821174912 /kmicromail/libmailwrapper/statusmail.h | |
parent | 2dd6ac0b2d24c91d35ce674a6c26351352df2b15 (diff) | |
download | kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.zip kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.tar.gz kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.tar.bz2 |
Initial revision
Diffstat (limited to 'kmicromail/libmailwrapper/statusmail.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libmailwrapper/statusmail.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/kmicromail/libmailwrapper/statusmail.h b/kmicromail/libmailwrapper/statusmail.h new file mode 100644 index 0000000..2637232 --- a/dev/null +++ b/kmicromail/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>&accounts); + /* 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 |