• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

knode

KNAccountManager Class Reference

#include <knaccountmanager.h>

Inheritance diagram for KNAccountManager:

Inheritance graph
[legend]

List of all members.


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

List of accounts.

Definition at line 46 of file knaccountmanager.h.


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  ) 

Returns the account with the given id.

Definition at line 87 of file knaccountmanager.cpp.

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]

Returns the list of all accounts.

Definition at line 78 of file knaccountmanager.h.

KNNntpAccount* KNAccountManager::currentAccount (  )  const [inline]

Returns the current account.

Definition at line 74 of file knaccountmanager.h.

void KNAccountManager::editProperties ( KNNntpAccount *  a = 0  ) 

Show the properties dialog for the given account.

Parameters:
a The account to edit, uses the current if a is 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]

Returns true if there is a current account.

Definition at line 72 of file knaccountmanager.h.

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 (  ) 

Loads passwords of all accounts asynchronous.

Definition at line 210 of file knaccountmanager.cpp.

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 (  ) 

Save all accounts.

Definition at line 54 of file knaccountmanager.cpp.

bool KNAccountManager::removeAccount ( KNNntpAccount *  a = 0  ) 

Remove an existing account.

Parameters:
a The account to remove, if a is 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:
  • knaccountmanager.h
  • knaccountmanager.cpp

knode

Skip menu "knode"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal