knode
KNAccountManager Class Reference
#include <knaccountmanager.h>

Detailed Description
Account manager.Definition at line 31 of file knaccountmanager.h.
Public Types | |
| typedef QList< KNNntpAccount * > | List |
Signals | |
| void | accountAdded (KNNntpAccount *a) |
| void | accountModified (KNNntpAccount *a) |
| void | accountRemoved (KNNntpAccount *a) |
| void | passwordsChanged () |
Public Member Functions | |
| KNNntpAccount * | account (int id) |
| void | accountRenamed (KNNntpAccount *a=0) |
| List | accounts () const |
| KNNntpAccount * | currentAccount () const |
| void | editProperties (KNNntpAccount *a=0) |
| KNNntpAccount * | first () const |
| bool | hasCurrentAccount () const |
| KNAccountManager (KNGroupManager *gm, QObject *parent=0) | |
| void | loadPasswords () |
| void | loadPasswordsAsync () |
| bool | newAccount (KNNntpAccount *a) |
| void | prepareShutdown () |
| bool | removeAccount (KNNntpAccount *a=0) |
| void | setCurrentAccount (KNNntpAccount *a) |
| ~KNAccountManager () | |
Static Public Member Functions | |
| static KWallet::Wallet * | wallet () |
Protected Member Functions | |
| void | loadAccounts () |
Protected Attributes | |
| KNNntpAccount * | c_urrentAccount |
| KNGroupManager * | gManager |
Member Typedef Documentation
| typedef QList<KNNntpAccount*> KNAccountManager::List |
Constructor & Destructor Documentation
| KNAccountManager::KNAccountManager | ( | KNGroupManager * | gm, | |
| QObject * | parent = 0 | |||
| ) |
Create a new account manager.
- Parameters:
-
gm The group manager. parent The parent object.
Definition at line 37 of file knaccountmanager.cpp.
| KNAccountManager::~KNAccountManager | ( | ) |
Delete this account manager and all managed accounts.
Definition at line 45 of file knaccountmanager.cpp.
Member Function Documentation
| KNNntpAccount * KNAccountManager::account | ( | int | id | ) |
| void KNAccountManager::accountAdded | ( | KNNntpAccount * | a | ) | [signal] |
| void KNAccountManager::accountModified | ( | KNNntpAccount * | a | ) | [signal] |
| void KNAccountManager::accountRemoved | ( | KNNntpAccount * | a | ) | [signal] |
| void KNAccountManager::accountRenamed | ( | KNNntpAccount * | a = 0 |
) |
Definition at line 193 of file knaccountmanager.cpp.
| List KNAccountManager::accounts | ( | ) | const [inline] |
| KNNntpAccount* KNAccountManager::currentAccount | ( | ) | const [inline] |
| void KNAccountManager::editProperties | ( | KNNntpAccount * | a = 0 |
) |
Show the properties dialog for the given account.
- Parameters:
-
a The account to edit, uses the current if ais 0.
Definition at line 183 of file knaccountmanager.cpp.
| KNNntpAccount * KNAccountManager::first | ( | ) | const |
Returns the first account (used as fallback sometimes).
Definition at line 202 of file knaccountmanager.cpp.
| bool KNAccountManager::hasCurrentAccount | ( | ) | const [inline] |
| void KNAccountManager::loadAccounts | ( | ) | [protected] |
Definition at line 61 of file knaccountmanager.cpp.
| void KNAccountManager::loadPasswords | ( | ) |
Loads the passwords of all accounts, allows on-demand wallet opening.
Definition at line 234 of file knaccountmanager.cpp.
| void KNAccountManager::loadPasswordsAsync | ( | ) |
| bool KNAccountManager::newAccount | ( | KNNntpAccount * | a | ) |
Add a new account.
- Parameters:
-
a A new account allocated and configured by the caller.
Definition at line 105 of file knaccountmanager.cpp.
| void KNAccountManager::passwordsChanged | ( | ) | [signal] |
Emitted if passwords have been loaded from the wallet.
| void KNAccountManager::prepareShutdown | ( | ) |
| bool KNAccountManager::removeAccount | ( | KNNntpAccount * | a = 0 |
) |
Remove an existing account.
- Parameters:
-
a The account to remove, if ais 0, the current account will be removed.
Definition at line 137 of file knaccountmanager.cpp.
| void KNAccountManager::setCurrentAccount | ( | KNNntpAccount * | a | ) |
Sets the current account.
- Parameters:
-
a The current account.
Definition at line 98 of file knaccountmanager.cpp.
| KWallet::Wallet * KNAccountManager::wallet | ( | ) | [static] |
Returns a pointer to an open wallet if available, 0 otherwise.
Definition at line 242 of file knaccountmanager.cpp.
Member Data Documentation
KNNntpAccount* KNAccountManager::c_urrentAccount [protected] |
Definition at line 93 of file knaccountmanager.h.
KNGroupManager* KNAccountManager::gManager [protected] |
Definition at line 92 of file knaccountmanager.h.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference