Yate
|
A client account list. More...
#include <yatecbase.h>
Public Member Functions | |
ClientAccountList (const char *name) | |
ObjList & | accounts () |
virtual ClientAccount * | findAccount (const String &id, bool ref=false) |
virtual ClientContact * | findContact (const String &account, const String &id, bool ref=false) |
virtual ClientContact * | findContact (const String &builtId, bool ref=false) |
virtual bool | appendAccount (ClientAccount *account) |
virtual void | removeAccount (const String &id) |
Protected Attributes | |
ObjList | m_accounts |
A client account list.
This class holds an account list
ClientAccountList | ( | const char * | name | ) | [inline] |
Constructor
name | List's name used for debug purposes |
ObjList& accounts | ( | ) | [inline] |
Get the accounts list
virtual bool appendAccount | ( | ClientAccount * | account | ) | [virtual] |
Append a new account. The account's reference counter is increased before
account | The account to append |
virtual ClientAccount* findAccount | ( | const String & | id, |
bool | ref = false |
||
) | [virtual] |
Find an account
id | The account's id |
ref | True to get a referenced pointer |
virtual ClientContact* findContact | ( | const String & | builtId, |
bool | ref = false |
||
) | [virtual] |
Find an account's contact from a built id
builtId | The string containign the account and the contact |
ref | True to get a referenced pointer |
virtual ClientContact* findContact | ( | const String & | account, |
const String & | id, | ||
bool | ref = false |
||
) | [virtual] |
Find an account's contact
account | The account's id |
id | The contact's id |
ref | True to get a referenced pointer |
virtual void removeAccount | ( | const String & | id | ) | [virtual] |
Remove an account
id | The account's id |