author | harlekin <harlekin> | 2004-01-05 16:03:29 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-01-05 16:03:29 (UTC) |
commit | 9acbe167d22cf1bed17a0361fdcdadf7581d8127 (patch) (side-by-side diff) | |
tree | 41d8d8e5b2e243f1c9842452565c1e9c04d44250 /noncore/net/mail/libmailwrapper/statusmail.cpp | |
parent | 22e51ed82162ef307f3f8cef21d3288147f18cad (diff) | |
download | opie-9acbe167d22cf1bed17a0361fdcdadf7581d8127.zip opie-9acbe167d22cf1bed17a0361fdcdadf7581d8127.tar.gz opie-9acbe167d22cf1bed17a0361fdcdadf7581d8127.tar.bz2 |
integration of mailbox status stuff
Diffstat (limited to 'noncore/net/mail/libmailwrapper/statusmail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/statusmail.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/noncore/net/mail/libmailwrapper/statusmail.cpp b/noncore/net/mail/libmailwrapper/statusmail.cpp index 3e1d8d1..9f4c47c 100644 --- a/noncore/net/mail/libmailwrapper/statusmail.cpp +++ b/noncore/net/mail/libmailwrapper/statusmail.cpp @@ -1,9 +1,7 @@ #include "statusmail.h" -#include "mailtypes.h" -#include "abstractmail.h" #include <qlist.h> -StatusMail::StatusMail(QList<Account>*list) +StatusMail::StatusMail(QList<Account>&list) { currentImapStat.message_count=0; currentImapStat.message_unseen=0; @@ -19,13 +17,13 @@ StatusMail::~StatusMail() { } -void StatusMail::initAccounts(QList<Account>*accounts) +void StatusMail::initAccounts(QList<Account>&accounts) { - if (!accounts) return; + Account *it; folderStat currentStat; AbstractMail * current = 0; - for ( it = accounts->first(); it; it = accounts->next() ) { + for ( it = accounts.first(); it; it = accounts.next() ) { if ( it->getType().compare( "IMAP" ) == 0 ) { IMAPaccount*ima = static_cast<IMAPaccount *>(it); current = AbstractMail::getWrapper(ima); |