Diffstat (limited to 'noncore/net/mail/libmailwrapper/statusmail.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/statusmail.h | 31 |
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 @@ | |||
1 | #ifndef __MAIL_STATUS_H | ||
2 | #define __MAIL_STATUS_H | ||
3 | |||
4 | #include <settings.h> | ||
5 | #include <abstractmail.h> | ||
6 | #include <mailtypes.h> | ||
7 | |||
8 | class StatusMail | ||
9 | { | ||
10 | public: | ||
11 | StatusMail(QList<Account>*list); | ||
12 | virtual ~StatusMail(); | ||
13 | |||
14 | /* this should be called if opiemail is starte or a mailbox touched - may be trough | ||
15 | a qcop signal or if tab on the taskbar applet*/ | ||
16 | virtual void reset_status(); | ||
17 | virtual void check_current_stat(folderStat&targetStat); | ||
18 | |||
19 | protected: | ||
20 | void initAccounts(QList<Account>*list); | ||
21 | /* this must be cause we have to calculate the recent for pop3*/ | ||
22 | folderStat currentImapStat; | ||
23 | /* currentPop3Stat is the sum of messages in POP3 accounts in CURRENT loop | ||
24 | the recent are calculated to the difference of the LAST loop */ | ||
25 | folderStat currentPop3Stat; | ||
26 | /* lastPop3Stat is the sum of messages in LAST loop */ | ||
27 | folderStat lastPop3Stat; | ||
28 | QList<AbstractMail> connectionList; | ||
29 | }; | ||
30 | |||
31 | #endif | ||