kmail
KMail::AccountManager Class Reference
#include <accountmanager.h>
Detailed Description
The account manager is responsible for creating accounts of various types via the factory method create() and for keeping track of them.
Definition at line 35 of file accountmanager.h.
Public Slots | |
void | singleCheckMail (KMAccount *, bool interactive=true) |
void | singleInvalidateIMAPFolders (KMAccount *) |
void | intCheckMail (int, bool interactive=true) |
void | processNextCheck (bool newMail) |
void | addToTotalNewMailCount (const QMap< QString, int > &newInFolder) |
Signals | |
void | checkedMail (bool newMail, bool interactive, const QMap< QString, int > &newInFolder) |
void | accountRemoved (KMAccount *account) |
void | accountAdded (KMAccount *account) |
Public Member Functions | |
AccountManager () | |
~AccountManager () | |
void | readConfig (void) |
void | writeConfig (bool withSync=true) |
KMAccount * | create (const QString &type, const QString &name=QString::null, uint id=0) |
void | add (KMAccount *account) |
KMAccount * | findByName (const QString &name) const |
KMAccount * | find (const uint id) const |
bool | remove (KMAccount *) |
const KMAccount * | first () const |
KMAccount * | first () |
const KMAccount * | next () const |
KMAccount * | next () |
void | checkMail (bool interactive=true) |
void | invalidateIMAPFolders () |
QStringList | getAccounts () const |
void | cancelMailCheck () |
void | readPasswords () |
Friends | |
class | ::KMAccount |
Constructor & Destructor Documentation
|
Initializes the account manager. readConfig() needs to be called in order to fill it with persisted account information from the config file. Definition at line 32 of file accountmanager.cpp. |
Member Function Documentation
|
emitted when an account is added
|
|
emitted when an account is removed
|
|
Adds an account to the list of accounts.
Definition at line 238 of file accountmanager.cpp. |
|
this slot increases the count of new mails to show a total number after checking in multiple accounts.
Definition at line 360 of file accountmanager.cpp. |
|
Called on exit (KMMainWin::queryExit).
Definition at line 391 of file accountmanager.cpp. |
|
Emitted if new mail has been collected.
|
|
Processes all accounts looking for new mail.
Definition at line 303 of file accountmanager.cpp. |
|
Create a new account of given type with given name. Currently the types "local" for local mail folders and "pop" are supported. Definition at line 207 of file accountmanager.cpp. |
|
Find account by id. Returns 0 if account does not exist. Definition at line 261 of file accountmanager.cpp. |
|
Find account by name. Returns 0 if account does not exist. Search is done case sensitive. Definition at line 249 of file accountmanager.cpp. |
|
First account of the list.
Definition at line 74 of file accountmanager.h. |
|
Delete all IMAP folders and resync them.
Definition at line 330 of file accountmanager.cpp. |
|
Next account of the list.
Definition at line 78 of file accountmanager.h. |
|
Completely reload accounts from config.
Definition at line 75 of file accountmanager.cpp. |
|
Read passwords of all accounts from the wallet.
Definition at line 400 of file accountmanager.cpp. |
|
Physically remove account. Also deletes the given account object ! Returns FALSE and does nothing if the account cannot be removed. Definition at line 293 of file accountmanager.cpp. |
|
Write accounts to config.
Definition at line 48 of file accountmanager.cpp. |
The documentation for this class was generated from the following files: