|
|
This class holds an account list
inline ClientAccountList (const char* name)
| ClientAccountList |
Constructor
Parameters:
name | List's name used for debug purposes |
inline ObjList& accounts ()
| accounts |
Get the accounts list
Returns: The accounts list
ClientAccount* findAccount (const String& id, bool ref = false)
| findAccount |
[virtual]
Find an account
Parameters:
id | The account's id |
ref | True to get a referenced pointer |
Returns: ClientAccount pointer or 0 if not found
ClientContact* findContact (const String& account, const String& id, bool ref = false)
| findContact |
[virtual]
Find an account's contact
Parameters:
account | The account's id |
id | The contact's id |
ref | True to get a referenced pointer |
Returns: ClientContact pointer or 0 if not found
ClientContact* findContact (const String& builtId, bool ref = false)
| findContact |
[virtual]
Find an account's contact from a built id
Parameters:
builtId | The string containign the account and the contact |
ref | True to get a referenced pointer |
Returns: ClientContact pointer or 0 if not found
bool appendAccount (ClientAccount* account)
| appendAccount |
[virtual]
Append a new account. The account's reference counter is increased before
Parameters:
account | The account to append |
Returns: True on succes, false if an account with the same id already exists
void removeAccount (const String& id)
| removeAccount |
[virtual]
Remove an account
Parameters:
id | The account's id |
ObjList m_accounts | m_accounts |
[protected]
Generated by: paulc on bussard on Mon Mar 8 12:18:15 2010, using kdoc 2.0a54. |