Liblinphone  5.4.0
Public Types | Public Member Functions | List of all members
linphone::AccountManagerServicesRequest Class Reference

Request object created by AccountManagerServices. More...

#include <account_manager_services_request.hh>

Inheritance diagram for linphone::AccountManagerServicesRequest:

Public Types

enum  Type {
  Type::SendAccountCreationTokenByPush = 0,
  Type::AccountCreationRequestToken = 1,
  Type::AccountCreationTokenFromAccountCreationRequestToken = 2,
  Type::CreateAccountUsingToken = 3,
  Type::SendPhoneNumberLinkingCodeBySms = 4,
  Type::LinkPhoneNumberUsingCode = 5,
  Type::SendEmailLinkingCodeByEmail = 6,
  Type::LinkEmailUsingCode = 7,
  Type::GetDevicesList = 8,
  Type::DeleteDevice = 9,
  GetCreationTokenAsAdmin = 100,
  GetAccountInfoAsAdmin = 101,
  DeleteAccountAsAdmin = 102
}
 List of all supported AccountManagerServicesRequest requests, allowing to know which one triggered either a callback from the AccountManagerServicesRequestListener. More...
 

Public Member Functions

LINPHONECXX_PUBLIC AccountManagerServicesRequest (void *ptr, bool takeRef=true)
 
LINPHONECXX_PUBLIC _LinphoneAccountManagerServicesRequest * cPtr ()
 
LINPHONECXX_PUBLIC void addListener (const std::shared_ptr< AccountManagerServicesRequestListener > &listener)
 Add an application listener to the AccountManagerServicesRequest instance. More...
 
LINPHONECXX_PUBLIC void removeListener (const std::shared_ptr< AccountManagerServicesRequestListener > &listener)
 Remove a previously added listener from the AccountManagerServicesRequest instance. More...
 
LINPHONECXX_PUBLIC Type getType () const
 Gets the Type representing this request. More...
 
LINPHONECXX_PUBLIC void submit ()
 Executes the request represented by AccountManagerServicesRequest.
 

Detailed Description

Request object created by AccountManagerServices.

Member Enumeration Documentation

◆ Type

List of all supported AccountManagerServicesRequest requests, allowing to know which one triggered either a callback from the AccountManagerServicesRequestListener.

Enumerator
SendAccountCreationTokenByPush 

Asks the account manager to send us an account creation token by push notification.

AccountCreationRequestToken 

Asks the account manager to create a request token to be validated in a web browser (captcha) and that can later be used to create an account creation token.

AccountCreationTokenFromAccountCreationRequestToken 

Asks the account manager to consume the account creation request token to create an account creation token.

CreateAccountUsingToken 

Uses an account creation token to create the account.

SendPhoneNumberLinkingCodeBySms 

Asks for a code to be sent by SMS to a given phone number to link that phone number with an account.

LinkPhoneNumberUsingCode 

Uses the code received by SMS to confirm the link between an account and a phone number.

SendEmailLinkingCodeByEmail 

Asks for a code to be sent by email to a given email address to link that address with an account.

LinkEmailUsingCode 

Uses the code received by email to confirm the link between an account and an email address.

GetDevicesList 

Gets the list of devices for account.

DeleteDevice 

Removes an account device.

Member Function Documentation

◆ addListener()

LINPHONECXX_PUBLIC void linphone::AccountManagerServicesRequest::addListener ( const std::shared_ptr< AccountManagerServicesRequestListener > &  listener)

Add an application listener to the AccountManagerServicesRequest instance.

Parameters
listenerthe application listener

◆ getType()

LINPHONECXX_PUBLIC Type linphone::AccountManagerServicesRequest::getType ( ) const

Gets the Type representing this request.

Returns
the Type.

◆ removeListener()

LINPHONECXX_PUBLIC void linphone::AccountManagerServicesRequest::removeListener ( const std::shared_ptr< AccountManagerServicesRequestListener > &  listener)

Remove a previously added listener from the AccountManagerServicesRequest instance.

Parameters
listenerthe application listener

The documentation for this class was generated from the following file: