ZDK
|
Account information and control provider. More...
#include <IAccountProvider.h>
Public Member Functions | |
virtual ZDK::Shared::Account | CreateUserAccount ()=0 |
Creates a new user account. More... | |
virtual void | DeleteUserAccount (ZDK::Shared::Account account)=0 |
Destroys an user account. More... | |
virtual ZDK::Shared::ItemList< ZDK::Shared::Account > | ListAccounts () const =0 |
Gets a list with all active accounts. More... | |
virtual int | AccountsCount () const =0 |
Gets the count of all active accounts. More... | |
virtual ZDK::Shared::Account | GetAccount (ZDK::ZDKHandle hAccountId) const =0 |
Gets the account with the specified ID. More... | |
virtual ZDK::Shared::Account | DefaultAccount () const =0 |
virtual bool | SetAsDefaultAccount (ZDK::Shared::Account account)=0 |
virtual void | UnregisterAllAccounts ()=0 |
Unregisters all accounts. More... | |
virtual ZDK::Shared::AccountConfig | CreateAccountConfiguration ()=0 |
Creates a new empty account configuration. More... | |
virtual ZDK::Shared::MSRPConfig | CreateMSRPConfiguration ()=0 |
Creates a new empty MSRP configuration. More... | |
virtual ZDK::Shared::StunConfig | CreateStunConfiguration ()=0 |
Creates a new empty STUN configuration. More... | |
virtual ZDK::Shared::IAXConfig | CreateIAXConfiguration ()=0 |
Creates a new empty IAX configuration. More... | |
virtual ZDK::Shared::SIPConfig | CreateSIPConfiguration ()=0 |
Creates a new empty SIP configuration. More... | |
virtual ZDK::Shared::ZRTPConfig | CreateZRTPConfiguration ()=0 |
Creates a new empty ZRTP configuration. More... | |
virtual void | AddAccountProviderListener (ZDK::Shared::AccountProviderEventsHandler value)=0 |
Adds a new account provider event listener. More... | |
virtual void | DropAccountProviderListener (ZDK::Shared::AccountProviderEventsHandler value)=0 |
Removes a specific already added account provider event listener. More... | |
![]() | |
virtual ZDK::ZDKHandle | Handle () const =0 |
virtual | operator ZDK::ZDKHandle () const =0 |
virtual void | Initialize ()=0 |
virtual void | ReleaseReference ()=0 |
Account information and control provider.
Manages creation and destruction of user accounts and provides information regarding them.
|
pure virtual |
Gets the count of all active accounts.
|
pure virtual |
Adds a new account provider event listener.
All added listeners will be notified for each event.
[in] | value | The account provider event listener to be added |
|
pure virtual |
Creates a new empty account configuration.
|
pure virtual |
Creates a new empty IAX configuration.
|
pure virtual |
Creates a new empty MSRP configuration.
|
pure virtual |
Creates a new empty SIP configuration.
|
pure virtual |
Creates a new empty STUN configuration.
|
pure virtual |
Creates a new user account.
Creates a new user that can be used to register on a server for incoming calls, create outgoing calls, subscribe for presence, etc. This is a mandatory operation before using most of the library's functions.
This call will only prepare the structures for the user account. It will not be registered to the server until RegisterAccount() is called (note that registration is not a mandatory operation).
|
pure virtual |
Creates a new empty ZRTP configuration.
|
pure virtual |
Destroys an user account.
Destroys an user account object and all related structures. If the user has active calls, they will be terminated first.
[in] | account | The account to be destroyed |
|
pure virtual |
Removes a specific already added account provider event listener.
All added/left listeners will be notified for each event.
[in] | value | The account provider event listener to be removed |
|
pure virtual |
Gets the account with the specified ID.
Returns the account with the specified ID if exist, otherwise a null pointer is returned.
[in] | hAccountId | The ID of the requested account |
|
pure virtual |
|
pure virtual |
Unregisters all accounts.
If the user account is in the process of registration this function will cancel it. If the user was already registered an unregistration process will start. If there is no error the function will return immediately and the final result will be delivered via a callback.