public class AccountProvider
extends java.lang.Object
Constructor and Description |
---|
AccountProvider(long handle)
Constructor storing the pointer/address to the underlying native object
|
Modifier and Type | Method and Description |
---|---|
int |
accountsCount()
Gets the count of all active accounts
|
void |
addAccountProviderListener(AccountProviderEventsHandler value)
Adds a new account provider event listener
All added listeners will be notified for each event.
|
AccountConfig |
createAccountConfiguration()
Creates a new empty account configuration
|
IAXConfig |
createIAXConfiguration()
Creates a new empty IAX configuration
|
MSRPConfig |
createMSRPConfiguration()
Creates a new empty MSRP configuration
|
PushConfig |
createPushConfiguration()
Creates a new empty Push configuration
|
SIPConfig |
createSIPConfiguration()
Creates a new empty SIP configuration
|
HeaderField |
createSIPHeaderField(java.lang.String name,
java.util.List<java.lang.String> values,
SipMethodTypes method)
Creates a SIP header
|
StunConfig |
createStunConfiguration()
Creates a new empty STUN configuration
|
Account |
createUserAccount()
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.
|
ZRTPConfig |
createZRTPConfiguration()
Creates a new empty ZRTP configuration
|
Account |
defaultAccount()
Gets the default account
|
void |
deleteUserAccount(Account account)
Destroys an user account
Destroys an user account object and all related structures.
|
void |
dropAccountProviderListener(AccountProviderEventsHandler value)
Removes a specific already added account provider event listener
All added/left listeners will be notified for each event.
|
protected void |
finalize()
Ensures the underlying native object destruction
|
Account |
getAccount(long hAccountId)
Gets the account with the specified ID
Returns the account with the specified ID if exist, otherwise a null pointer is returned.
|
long |
handle()
Gets the pointer/address to the underlying native object
|
java.util.List<Account> |
listAccounts()
Gets a list with all active accounts
|
boolean |
setAsDefaultAccount(Account account)
Sets the default account
|
void |
unregisterAllAccounts()
Unregisters all accounts
If the user account is in the process of registration this function will cancel it.
|
public AccountProvider(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public java.util.List<Account> listAccounts()
Account
public int accountsCount()
public Account defaultAccount()
public Account createUserAccount()
Account
public void deleteUserAccount(Account account)
account
- The account to be destroyedpublic Account getAccount(long hAccountId)
hAccountId
- The ID of the requested accountpublic boolean setAsDefaultAccount(Account account)
account
- The default accountpublic void unregisterAllAccounts()
AccountEventsHandler
public AccountConfig createAccountConfiguration()
AccountConfig
public MSRPConfig createMSRPConfiguration()
MSRPConfig
public StunConfig createStunConfiguration()
StunConfig
public IAXConfig createIAXConfiguration()
IAXConfig
public SIPConfig createSIPConfiguration()
SIPConfig
public ZRTPConfig createZRTPConfiguration()
ZRTPConfig
public PushConfig createPushConfiguration()
PushConfig
public HeaderField createSIPHeaderField(java.lang.String name, java.util.List<java.lang.String> values, SipMethodTypes method)
name
- The NAME of the headervalues
- List with header VALUESmethod
- SIP METHOD this header to be added toSipMethodTypes
public void addAccountProviderListener(AccountProviderEventsHandler value)
value
- The account provider event listener to be addeddropAccountProviderListener
public void dropAccountProviderListener(AccountProviderEventsHandler value)
value
- The account provider event listener to be removedaddConferenceProviderListener