00001 #ifndef __MAIL_STATUS_H 00002 #define __MAIL_STATUS_H 00003 00004 #include "settings.h" 00005 #include "abstractmail.h" 00006 #include "mailtypes.h" 00007 00008 class StatusMail 00009 { 00010 public: 00011 StatusMail(QList<Account>&list); 00012 virtual ~StatusMail(); 00013 00014 /* this should be called if opiemail is starte or a mailbox touched - may be trough 00015 a qcop signal or if tab on the taskbar applet*/ 00016 virtual void reset_status(); 00017 virtual void check_current_stat(folderStat&targetStat); 00018 00019 protected: 00020 void initAccounts(QList<Account>&accounts); 00021 /* this must be cause we have to calculate the recent for pop3*/ 00022 folderStat currentImapStat; 00023 /* currentPop3Stat is the sum of messages in POP3 accounts in CURRENT loop 00024 the recent are calculated to the difference of the LAST loop */ 00025 folderStat currentPop3Stat; 00026 /* lastPop3Stat is the sum of messages in LAST loop */ 00027 folderStat lastPop3Stat; 00028 QList<AbstractMail> connectionList; 00029 }; 00030 00031 #endif
1.4.2