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

The object used to configure an account on a server via XML-RPC, see https://wiki.linphone.org/xwiki/wiki/public/view/Lib/Features/Override%20account%20creator%20request/. More...

#include <account_creator.hh>

Inheritance diagram for linphone::AccountCreator:

Public Types

enum  TransportStatus {
  TransportStatus::Ok = 0,
  TransportStatus::Unsupported = 1
}
 Enum describing transport checking, used by the AccountCreator. More...
 
enum  DomainStatus {
  DomainStatus::Ok = 0,
  DomainStatus::Invalid = 1
}
 Enum describing domain checking, used by the AccountCreator. More...
 
enum  ActivationCodeStatus {
  ActivationCodeStatus::Ok = 0,
  ActivationCodeStatus::TooShort = 1,
  ActivationCodeStatus::TooLong = 2,
  ActivationCodeStatus::InvalidCharacters = 3
}
 Enum describing activation code checking, used by the AccountCreator. More...
 
enum  AlgoStatus {
  AlgoStatus::Ok = 0,
  AlgoStatus::NotSupported = 1
}
 Enum describing algorithm checking, used by the AccountCreator. More...
 
enum  LanguageStatus { LanguageStatus::Ok = 0 }
 Enum describing language checking, used by the AccountCreator. More...
 
enum  PasswordStatus {
  PasswordStatus::Ok = 0,
  PasswordStatus::TooShort = 1,
  PasswordStatus::TooLong = 2,
  PasswordStatus::InvalidCharacters = 3,
  PasswordStatus::MissingCharacters = 4
}
 Enum describing password checking, used by the AccountCreator. More...
 
enum  EmailStatus {
  EmailStatus::Ok = 0,
  EmailStatus::Malformed = 1,
  EmailStatus::InvalidCharacters = 2
}
 Enum describing email checking, used by the AccountCreator. More...
 
enum  UsernameStatus {
  UsernameStatus::Ok = 0,
  UsernameStatus::TooShort = 1,
  UsernameStatus::TooLong = 2,
  UsernameStatus::InvalidCharacters = 3,
  UsernameStatus::Invalid = 4
}
 Enum describing username checking, used by the AccountCreator. More...
 
enum  Backend {
  Backend::XMLRPC = 0,
  Backend::FlexiAPI = 1
}
 Enum describing backend used in the AccountCreator. More...
 
enum  PhoneNumberStatus {
  PhoneNumberStatus::Ok = 1,
  PhoneNumberStatus::TooShort = 2,
  PhoneNumberStatus::TooLong = 4,
  PhoneNumberStatus::InvalidCountryCode = 8,
  PhoneNumberStatus::Invalid = 16
}
 Enum describing phone number checking, used by the AccountCreator. More...
 
enum  Status {
  Status::RequestOk = 0,
  Status::RequestFailed = 1,
  Status::MissingArguments = 2,
  Status::MissingCallbacks = 3,
  Status::AccountCreated = 4,
  Status::AccountNotCreated = 5,
  Status::AccountExist = 6,
  Status::AccountExistWithAlias = 7,
  Status::AccountNotExist = 8,
  Status::AliasIsAccount = 9,
  Status::AliasExist = 10,
  Status::AliasNotExist = 11,
  Status::AccountActivated = 12,
  Status::AccountAlreadyActivated = 13,
  Status::AccountNotActivated = 14,
  Status::AccountLinked = 15,
  Status::AccountNotLinked = 16,
  Status::ServerError = 17,
  Status::PhoneNumberInvalid = 18,
  Status::WrongActivationCode = 19,
  Status::PhoneNumberOverused = 20,
  Status::AlgoNotSupported = 21,
  Status::UnexpectedError = 22,
  Status::NotImplementedError = 23,
  Status::RequestNotAuthorized = 24,
  Status::RequestTooManyRequests = 25
}
 Enum describing the status of server request, used by the AccountCreator. More...
 

Public Member Functions

LINPHONECXX_PUBLIC AccountCreator (void *ptr, bool takeRef=true)
 
LINPHONECXX_PUBLIC _LinphoneAccountCreator * cPtr ()
 
LINPHONECXX_PUBLIC void addListener (const std::shared_ptr< AccountCreatorListener > &listener)
 Add an application listener to the AccountCreator instance. More...
 
LINPHONECXX_PUBLIC void removeListener (const std::shared_ptr< AccountCreatorListener > &listener)
 Remove a previously added listener from the AccountCreator instance. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void setAccount (const std::shared_ptr< linphone::Account > &account)
 Assign a proxy config pointer to the LinphoneAccountCreator. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getAccountCreationRequestToken () const
 Get the account creation request token received to be used to check user validation. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void setAccountCreationRequestToken (const std::string &token)
 Set the account creation request token received to be used to check user validation. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getActivationCode () const
 Get the activation code. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED ActivationCodeStatus setActivationCode (const std::string &activationCode)
 Set the activation code. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getAlgorithm () const
 Get the algorithm configured in the account creator. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED AlgoStatus setAlgorithm (const std::string &algorithm)
 Set the supported algorithm. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status setAsDefault (bool setAsDefault)
 Set the set_as_default property. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getDisplayName () const
 Get the display name. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED UsernameStatus setDisplayName (const std::string &displayName)
 Set the display name. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getDomain () const
 Get the domain. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED DomainStatus setDomain (const std::string &domain)
 Set the domain. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getEmail () const
 Get the email. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED EmailStatus setEmail (const std::string &email)
 Set the email. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getHa1 () const
 Get the ha1. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED PasswordStatus setHa1 (const std::string &ha1)
 Set the ha1. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getLanguage () const
 Get the language use in email of SMS. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED LanguageStatus setLanguage (const std::string &lang)
 Set the language to use in email or SMS if supported. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getPassword () const
 Get the password. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED PasswordStatus setPassword (const std::string &password)
 Set the password. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getPhoneCountryCode () const
 Get the international prefix. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getPhoneNumber () const
 Get the RFC 3966 normalized phone number. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getPnParam () const
 Get the param to be used by the backend to send the push notification to the device asking for an auth token. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void setPnParam (const std::string &pnParam)
 Set the param to be used by the backend to send the push notification to the device asking for an auth token. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getPnPrid () const
 Get the prid to be used by the backend to send the push notification to the device asking for an auth token. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void setPnPrid (const std::string &pnPrid)
 Set the prid to be used by the backend to send the push notification to the device asking for an auth token. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getPnProvider () const
 Get the provider to be used by the backend to send the push notification to the device asking for an auth token. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void setPnProvider (const std::string &pnProvider)
 Set the provider to be used by the backend to send the push notification to the device asking for an auth token. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void setProxyConfig (const std::shared_ptr< linphone::ProxyConfig > &cfg)
 Assign a proxy config pointer to the LinphoneAccountCreator. More...
 
LINPHONECXX_PUBLIC std::string getRoute () const
 Get the route. More...
 
LINPHONECXX_PUBLIC Status setRoute (const std::string &route)
 Set the route. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool getSetAsDefault () const
 Get the set_as_default property. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getToken () const
 Get the authentication token set (if any) to be used to authenticate next queries, if required. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void setToken (const std::string &token)
 Set the authentication token received by push notification to be used to authenticate next queries, if required. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::TransportType getTransport () const
 Get Transport. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED TransportStatus setTransport (linphone::TransportType transport)
 Set Transport. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string getUsername () const
 Get the username. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED UsernameStatus setUsername (const std::string &username)
 Set the username. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status activateAccount ()
 Send a request to activate an account on server. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status activateAlias ()
 Send a request to activate an alias. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status createAccount ()
 Send a request to create an account on server. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::AccountcreateAccountInCore () const
 Create and configure a Account and a AuthInfo from informations set in the AccountCreator. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::ProxyConfigcreateProxyConfig () const
 Create and configure a proxy config and a authentication info for an account creator. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status createPushAccount ()
 Send a request to create a push account on server. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status isAccountActivated ()
 Send a request to know if an account is activated on server. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status isAccountExist ()
 Send a request to know the existence of account on server. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status isAccountLinked ()
 Send a request to know if an account is linked. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status isAliasUsed ()
 Send a request to know if an alias is used. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linkAccount ()
 Send a request to link an account to an alias. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status loginLinphoneAccount ()
 Send a request to get the password & algorithm of an account using the confirmation key. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status recoverAccount ()
 Send a request to recover an account. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status requestAccountCreationRequestToken ()
 Request an account creation "request_token" to be used on account creations. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status requestAccountCreationTokenUsingRequestToken ()
 Send a request to get a token to be used for account creation from a request_token. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status requestAuthToken ()
 Request an auth token to be send by the backend by push notification. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void reset ()
 Reset the account creator entries like username, password, phone number... More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED unsigned int setPhoneNumber (const std::string &phoneNumber, const std::string &countryCode)
 Set the phone number normalized. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status updateAccount ()
 Send a request to update an account. More...
 
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void useTestAdminAccount ()
 Require the account creator to use special "test admin account". More...
 

Static Public Member Functions

LINPHONECXX_PUBLIC static LINPHONECXX_DEPRECATED std::shared_ptr< linphone::AccountCreatorcreate (const std::shared_ptr< linphone::Core > &core)
 Create a AccountCreator and set Linphone Request callbacks. More...
 

Detailed Description

The object used to configure an account on a server via XML-RPC, see https://wiki.linphone.org/xwiki/wiki/public/view/Lib/Features/Override%20account%20creator%20request/.

Member Enumeration Documentation

◆ ActivationCodeStatus

Enum describing activation code checking, used by the AccountCreator.

Enumerator
Ok 

Activation code ok.

TooShort 

Activation code too short.

TooLong 

Activation code too long.

InvalidCharacters 

Contain invalid characters.

◆ AlgoStatus

Enum describing algorithm checking, used by the AccountCreator.

Enumerator
Ok 

Algorithm ok.

NotSupported 

Algorithm not supported.

◆ Backend

Enum describing backend used in the AccountCreator.

Enumerator
XMLRPC 

XMLRPC Backend.

FlexiAPI 

FlexiAPI Backend.

◆ DomainStatus

Enum describing domain checking, used by the AccountCreator.

Enumerator
Ok 

Domain ok.

Invalid 

Domain invalid.

◆ EmailStatus

Enum describing email checking, used by the AccountCreator.

Enumerator
Ok 

Email ok.

Malformed 

Email malformed.

InvalidCharacters 

Contain invalid characters.

◆ LanguageStatus

Enum describing language checking, used by the AccountCreator.

Enumerator
Ok 

Language ok.

◆ PasswordStatus

Enum describing password checking, used by the AccountCreator.

Enumerator
Ok 

Password ok.

TooShort 

Password too short.

TooLong 

Password too long.

InvalidCharacters 

Contain invalid characters.

MissingCharacters 

Missing specific characters.

◆ PhoneNumberStatus

Enum describing phone number checking, used by the AccountCreator.

Enumerator
Ok 

Phone number ok.

TooShort 

Phone number too short.

TooLong 

Phone number too long.

InvalidCountryCode 

Country code invalid.

Invalid 

Phone number invalid.

◆ Status

Enum describing the status of server request, used by the AccountCreator.

Enumerator
RequestOk 

Request status.

RequestFailed 

Request failed.

MissingArguments 

Request failed due to missing argument(s)

MissingCallbacks 

Request failed due to missing callback(s)

AccountCreated 

Account status.

AccountNotCreated 

Account not created.

AccountExist 

Account exist.

AccountExistWithAlias 

Account exist with alias.

AccountNotExist 

Account not exist.

AliasIsAccount 

Account was created with Alias.

AliasExist 

Alias exist.

AliasNotExist 

Alias not exist.

AccountActivated 

Account activated.

AccountAlreadyActivated 

Account already activated.

AccountNotActivated 

Account not activated.

AccountLinked 

Account linked.

AccountNotLinked 

Account not linked.

ServerError 

Server.

PhoneNumberInvalid 

Error cannot send SMS.

WrongActivationCode 

Error key doesn't match.

PhoneNumberOverused 

Error too many SMS sent.

AlgoNotSupported 

Error algo isn't MD5 or SHA-256.

UnexpectedError 

Generic error.

NotImplementedError 

This API isn't implemented in the current backend.

RequestNotAuthorized 

Request has been denied, probably due to invalid auth token.

RequestTooManyRequests 

Request has been denied, due to too many requests sent in given period.

◆ TransportStatus

Enum describing transport checking, used by the AccountCreator.

Enumerator
Ok 

Transport ok.

Unsupported 

Transport invalid.

◆ UsernameStatus

Enum describing username checking, used by the AccountCreator.

Enumerator
Ok 

Username ok.

TooShort 

Username too short.

TooLong 

Username too long.

InvalidCharacters 

Contain invalid characters.

Invalid 

Invalid username.

Member Function Documentation

◆ activateAccount()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::activateAccount ( )

Send a request to activate an account on server.

Returns
Status::RequestOk if the request has been sent, Status::RequestFailed otherwise
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ activateAlias()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::activateAlias ( )

Send a request to activate an alias.

Returns
Status::RequestOk if the request has been sent, Status::RequestFailed otherwise
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ addListener()

LINPHONECXX_PUBLIC void linphone::AccountCreator::addListener ( const std::shared_ptr< AccountCreatorListener > &  listener)

Add an application listener to the AccountCreator instance.

Parameters
listenerthe application listener

◆ create()

LINPHONECXX_PUBLIC static LINPHONECXX_DEPRECATED std::shared_ptr<linphone::AccountCreator> linphone::AccountCreator::create ( const std::shared_ptr< linphone::Core > &  core)
static

Create a AccountCreator and set Linphone Request callbacks.

Parameters
coreThe Core used for the XML-RPC communication
Returns
The new AccountCreator object.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ createAccount()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::createAccount ( )

Send a request to create an account on server.

Returns
Status::RequestOk if the request has been sent, Status::RequestFailed otherwise
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ createAccountInCore()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::Account> linphone::AccountCreator::createAccountInCore ( ) const

Create and configure a Account and a AuthInfo from informations set in the AccountCreator.

Returns
A Account object if successful, nullptr otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ createProxyConfig()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::ProxyConfig> linphone::AccountCreator::createProxyConfig ( ) const

Create and configure a proxy config and a authentication info for an account creator.

Returns
A ProxyConfig object if successful, nullptr otherwise.
Deprecated:
05/05/2023 Use createAccountInCore() instead.

◆ createPushAccount()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::createPushAccount ( )

Send a request to create a push account on server.

Push accounts are used in account dependent situation when account cannot send push notifications. A username and password are automatically generated, an account is automatically activated.

Returns
Status::RequestOk if the request has been sent, Status::RequestFailed otherwise
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getAccountCreationRequestToken()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getAccountCreationRequestToken ( ) const

Get the account creation request token received to be used to check user validation.

Returns
The token set, if any
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getActivationCode()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getActivationCode ( ) const

Get the activation code.

Returns
The activation code of the AccountCreator.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getAlgorithm()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getAlgorithm ( ) const

Get the algorithm configured in the account creator.

Returns
The algorithm of the AccountCreator.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getDisplayName()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getDisplayName ( ) const

Get the display name.

Returns
The display name of the AccountCreator.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getDomain()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getDomain ( ) const

Get the domain.

Returns
The domain of the AccountCreator.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getEmail()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getEmail ( ) const

Get the email.

Returns
The email of the AccountCreator.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getHa1()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getHa1 ( ) const

Get the ha1.

Returns
The ha1 of the AccountCreator.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getLanguage()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getLanguage ( ) const

Get the language use in email of SMS.

Returns
The language of the AccountCreator.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getPassword()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getPassword ( ) const

Get the password.

Returns
The password of the AccountCreator.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getPhoneCountryCode()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getPhoneCountryCode ( ) const

Get the international prefix.

Returns
The international prefix (or phone country code) of the AccountCreator.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getPhoneNumber()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getPhoneNumber ( ) const

Get the RFC 3966 normalized phone number.

Returns
The phone number of the AccountCreator.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getPnParam()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getPnParam ( ) const

Get the param to be used by the backend to send the push notification to the device asking for an auth token.

Returns
The pn_param set, if any
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getPnPrid()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getPnPrid ( ) const

Get the prid to be used by the backend to send the push notification to the device asking for an auth token.

Returns
The pn_prid set, if any
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getPnProvider()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getPnProvider ( ) const

Get the provider to be used by the backend to send the push notification to the device asking for an auth token.

Returns
The pn_provider set, if any
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getRoute()

LINPHONECXX_PUBLIC std::string linphone::AccountCreator::getRoute ( ) const

Get the route.

Returns
The route of the AccountCreator.

◆ getSetAsDefault()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::AccountCreator::getSetAsDefault ( ) const

Get the set_as_default property.

Returns
true if account will be set as default, false otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getToken()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getToken ( ) const

Get the authentication token set (if any) to be used to authenticate next queries, if required.

Returns
The token set, if any
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getTransport()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::TransportType linphone::AccountCreator::getTransport ( ) const

Get Transport.

Returns
The TransportType of the creator.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ getUsername()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::AccountCreator::getUsername ( ) const

Get the username.

Returns
The username of the AccountCreator.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ isAccountActivated()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::isAccountActivated ( )

Send a request to know if an account is activated on server.

Returns
Status::RequestOk if the request has been sent, Status::RequestFailed otherwise
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ isAccountExist()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::isAccountExist ( )

Send a request to know the existence of account on server.

Returns
Status::RequestOk if the request has been sent, Status::RequestFailed otherwise
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ isAccountLinked()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::isAccountLinked ( )

Send a request to know if an account is linked.

Returns
Status::RequestOk if the request has been sent, Status::RequestFailed otherwise
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ isAliasUsed()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::isAliasUsed ( )

Send a request to know if an alias is used.

Returns
Status::RequestOk if the request has been sent, Status::RequestFailed otherwise
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ linkAccount()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::linkAccount ( )

Send a request to link an account to an alias.

Returns
Status::RequestOk if the request has been sent, Status::RequestFailed otherwise
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ loginLinphoneAccount()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::loginLinphoneAccount ( )

Send a request to get the password & algorithm of an account using the confirmation key.

Returns
Status::RequestOk if everything is OK, or a specific error otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ recoverAccount()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::recoverAccount ( )

Send a request to recover an account.

Returns
Status::RequestOk if the request has been sent, Status::RequestFailed otherwise
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ removeListener()

LINPHONECXX_PUBLIC void linphone::AccountCreator::removeListener ( const std::shared_ptr< AccountCreatorListener > &  listener)

Remove a previously added listener from the AccountCreator instance.

Parameters
listenerthe application listener

◆ requestAccountCreationRequestToken()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::requestAccountCreationRequestToken ( )

Request an account creation "request_token" to be used on account creations.

The request_token is retrieved from the callback linphone_account_creator_cbs_get_account_creation_request_token

Returns
Status::RequestOk if everything is OK, or a specific error otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ requestAccountCreationTokenUsingRequestToken()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::requestAccountCreationTokenUsingRequestToken ( )

Send a request to get a token to be used for account creation from a request_token.

The token is retrieved from the callback linphone_account_creator_cbs_get_account_creation_token_using_request_token

Returns
Status::RequestOk if the request has been sent, Status::RequestFailed otherwise
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ requestAuthToken()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::requestAuthToken ( )

Request an auth token to be send by the backend by push notification.

Returns
Status::RequestOk if everything is OK, or a specific error otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ reset()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::AccountCreator::reset ( )

Reset the account creator entries like username, password, phone number...

Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setAccount()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::AccountCreator::setAccount ( const std::shared_ptr< linphone::Account > &  account)

Assign a proxy config pointer to the LinphoneAccountCreator.

Parameters
accountThe LinphoneAccount to associate with the LinphoneAccountCreator.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setAccountCreationRequestToken()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::AccountCreator::setAccountCreationRequestToken ( const std::string &  token)

Set the account creation request token received to be used to check user validation.

Parameters
tokenThe token to set
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setActivationCode()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED ActivationCodeStatus linphone::AccountCreator::setActivationCode ( const std::string &  activationCode)

Set the activation code.

Parameters
activationCodeThe activation code to set
Returns
ActivationCodeStatus::Ok if everything is OK, or a specific error otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setAlgorithm()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED AlgoStatus linphone::AccountCreator::setAlgorithm ( const std::string &  algorithm)

Set the supported algorithm.

Parameters
algorithmThe algorithm to use
Returns
LinphoneAccountCreatorAlgoStatusOk if everything is OK, or a specific error otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setAsDefault()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::setAsDefault ( bool  setAsDefault)

Set the set_as_default property.

Parameters
setAsDefaulttrue for the created proxy config to be set as default in Core, false otherwise
Returns
Status::RequestOk if everything is OK, or a specific error otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setDisplayName()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED UsernameStatus linphone::AccountCreator::setDisplayName ( const std::string &  displayName)

Set the display name.

Parameters
displayNameThe display name to set
Returns
UsernameStatus::Ok if everything is OK, or a specific error otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setDomain()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED DomainStatus linphone::AccountCreator::setDomain ( const std::string &  domain)

Set the domain.

Parameters
domainThe domain to set
Returns
DomainStatus::Ok if everything is OK, or a specific error otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setEmail()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED EmailStatus linphone::AccountCreator::setEmail ( const std::string &  email)

Set the email.

Parameters
emailThe email to set
Returns
EmailStatus::Ok if everything is OK, or a specific error otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setHa1()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED PasswordStatus linphone::AccountCreator::setHa1 ( const std::string &  ha1)

Set the ha1.

Parameters
ha1The ha1 to set
Returns
PasswordStatus::Ok if everything is OK, or a specific error otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setLanguage()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED LanguageStatus linphone::AccountCreator::setLanguage ( const std::string &  lang)

Set the language to use in email or SMS if supported.

Parameters
langThe language to use
Returns
LanguageStatus::Ok if everything is OK, or a specific error otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setPassword()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED PasswordStatus linphone::AccountCreator::setPassword ( const std::string &  password)

Set the password.

Parameters
passwordThe password to set
Returns
PasswordStatus::Ok if everything is OK, or specific(s) error(s) otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setPhoneNumber()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED unsigned int linphone::AccountCreator::setPhoneNumber ( const std::string &  phoneNumber,
const std::string &  countryCode 
)

Set the phone number normalized.

Parameters
phoneNumberThe phone number to set
countryCodeCountry code to associate phone number with
Returns
PhoneNumberStatus::Ok if everything is OK, or specific(s) error(s) otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setPnParam()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::AccountCreator::setPnParam ( const std::string &  pnParam)

Set the param to be used by the backend to send the push notification to the device asking for an auth token.

Parameters
pnParamThe pn_param to set
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setPnPrid()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::AccountCreator::setPnPrid ( const std::string &  pnPrid)

Set the prid to be used by the backend to send the push notification to the device asking for an auth token.

Parameters
pnPridThe pn_prid to set
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setPnProvider()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::AccountCreator::setPnProvider ( const std::string &  pnProvider)

Set the provider to be used by the backend to send the push notification to the device asking for an auth token.

Parameters
pnProviderThe pn_provider to set
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setProxyConfig()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::AccountCreator::setProxyConfig ( const std::shared_ptr< linphone::ProxyConfig > &  cfg)

Assign a proxy config pointer to the LinphoneAccountCreator.

Parameters
cfgThe LinphoneProxyConfig to associate with the LinphoneAccountCreator.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setRoute()

LINPHONECXX_PUBLIC Status linphone::AccountCreator::setRoute ( const std::string &  route)

Set the route.

Parameters
routeThe route to set
Returns
Status::RequestOk if everything is OK, or a specific error otherwise.

◆ setToken()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::AccountCreator::setToken ( const std::string &  token)

Set the authentication token received by push notification to be used to authenticate next queries, if required.

Parameters
tokenThe token to set
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setTransport()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED TransportStatus linphone::AccountCreator::setTransport ( linphone::TransportType  transport)

Set Transport.

Parameters
transportThe TransportType to set
Returns
TransportStatus::Ok if everything is OK, or a specific error otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ setUsername()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED UsernameStatus linphone::AccountCreator::setUsername ( const std::string &  username)

Set the username.

Parameters
usernameThe username to set
Returns
UsernameStatus::Ok if everything is OK, or a specific error otherwise.
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ updateAccount()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED Status linphone::AccountCreator::updateAccount ( )

Send a request to update an account.

Returns
Status::RequestOk if the request has been sent, Status::RequestFailed otherwise
Deprecated:
11/06/2024 use AccountManagerServices instead

◆ useTestAdminAccount()

LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::AccountCreator::useTestAdminAccount ( )

Require the account creator to use special "test admin account".

Warning
The "test admin account" is a special feature required for automated test, and requires the APP_EVERYONE_IS_ADMIN property to be enabled on the remote Flexisip Account Manager (FlexiAPI). This feature must never be turned on for a production-stage app.
Deprecated:
11/06/2024 use AccountManagerServices instead

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