20#ifndef accountmanager_h
21#define accountmanager_h
39 friend class ::KMAccount;
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;
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;
void readConfig(void) Completely reload accounts from config.
KMAccount * findByName(const TQString &name) const Find account by name.
bool remove(KMAccount *) Physically remove account.
AccountManager() Initializes the account manager.
void writeConfig(bool withSync=true) Write accounts to config.
void add(KMAccount *account) Adds an account to the list of accounts.
KMAccount * find(const uint id) const Find account by id.
KMAccount * create(const TQString &type, const TQString &name=TQString(), uint id=0) Create a new account of given type with given name.
void accountRemoved(KMAccount *account) emitted when an account is removed
const KMAccount * next() const Next account of the list.
const KMAccount * first() const First 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.
|