class ClientAccountList

A client account list. More...

Full nameTelEngine::ClientAccountList
Definition#include <yatecbase.h>
InheritsTelEngine::Mutex [public ], TelEngine::String [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

This class holds an account list

inline  ClientAccountList (const char* name)

ClientAccountList

Constructor

Parameters:
nameList'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:
idThe account's id
refTrue 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:
accountThe account's id
idThe contact's id
refTrue 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:
builtIdThe string containign the account and the contact
refTrue 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:
accountThe 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:
idThe account's id

ObjList m_accounts

m_accounts

[protected]


Generated by: paulc on bussard on Wed Oct 21 01:57:30 2009, using kdoc 2.0a54.