20 #ifndef accountmanager_h
21 #define accountmanager_h
24 #include "kmaccount.h"
25 #include <tdemacros.h>
39 friend class ::KMAccount;
48 void readConfig(
void);
51 void writeConfig(
bool withSync=
true );
55 KMAccount* create(
const TQString& type,
56 const TQString& name = TQString(),
60 void add( KMAccount *account );
64 KMAccount* findByName(
const TQString& name )
const;
68 KMAccount* find(
const uint
id )
const;
72 bool remove( KMAccount* );
79 const KMAccount*
next()
const {
return next(); }
83 void checkMail(
bool interactive =
true );
86 void invalidateIMAPFolders();
88 TQStringList getAccounts()
const;
91 void cancelMailCheck();
97 void singleCheckMail( KMAccount *,
bool interactive =
true );
98 void singleInvalidateIMAPFolders( KMAccount * );
100 void intCheckMail(
int,
bool interactive =
true );
101 void processNextCheck(
bool newMail );
105 void addToTotalNewMailCount(
const TQMap<TQString, int> & newInFolder );
116 const TQMap<TQString, int> & newInFolder );
126 AccountList mAcctList;
127 AccountList::Iterator mPtrListInterfaceProxyIterator;
128 AccountList mAcctChecking;
129 AccountList mAcctTodo;
130 bool mNewMailArrived;
132 int mTotalNewMailsArrived;
135 TQMap<TQString, int> mTotalNewInFolder;
138 bool mDisplaySummary;
The account manager is responsible for creating accounts of various types via the factory method crea...
void accountRemoved(KMAccount *account)
emitted when an account is removed
const KMAccount * first() const
First account of the list.
const KMAccount * next() const
Next account of the list.
void accountAdded(KMAccount *account)
emitted when an account is added
void checkedMail(bool newMail, bool interactive, const TQMap< TQString, int > &newInFolder)
Emitted if new mail has been collected.