Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::AccountConfig Struct Referenceabstract

#include <account_config.h>

Inheritance diagram for jami::AccountConfig:
Inheritance graph
Collaboration diagram for jami::AccountConfig:
Collaboration graph

Public Member Functions

 AccountConfig (const std::string &type_, const std::string &id_, const std::filesystem::path &path_={})
 
virtual void fromMap (const std::map< std::string, std::string > &)
 
virtual void serialize (YAML::Emitter &out) const =0
 
void serializeDiff (YAML::Emitter &out, const AccountConfig &def) const
 
virtual std::map< std::string, std::string > toMap () const
 
virtual void unserialize (const YAML::Node &node)
 
- Public Member Functions inherited from jami::Serializable
virtual ~Serializable ()
 

Public Attributes

int activeCallLimit {-1}
 The number of concurrent calls for the account -1: Unlimited 0: Do not disturb 1: Single call +: Multi line.
 
std::vector< unsignedactiveCodecs {}
 
std::string alias {}
 A user-defined name for this account.
 
bool allModeratorsEnabled {true}
 
bool autoAnswerEnabled {false}
 If true, automatically answer calls to this account.
 
std::string customUserAgent {}
 User-agent used for registration.
 
std::set< std::string > defaultModerators {}
 
bool denySecondCallEnabled {false}
 If true, automatically deny new calls when already in one call to this account.
 
std::string deviceKey {}
 Device push notification token.
 
std::string displayName {}
 Display name when calling.
 
bool enabled {true}
 True if the account is enabled.
 
std::string hostname {}
 SIP hostname (SIP account) or DHT bootstrap nodes (Jami account)
 
const std::string id
 Account id.
 
bool isRendezVous {false}
 If true mix calls into a conference.
 
bool localModeratorsEnabled {true}
 
std::string mailbox {}
 Account mail box.
 
std::string notificationTopic {}
 Push notification topic.
 
const std::filesystem::path path
 Path where the configuration file is stored.
 
std::string platform {}
 Device push notification platform.
 
bool ringtoneEnabled {true}
 Play ringtone when receiving a call.
 
std::string ringtonePath {DEFAULT_RINGTONE_PATH}
 Ringtone file used for this account.
 
bool sendComposing {true}
 If true, send composing status (and emit to the client)
 
bool sendReadReceipt {true}
 If true, send displayed status (and emit to the client)
 
const std::string type
 Account type.
 
std::string uiCustomization {}
 information about the customization of ui
 
bool upnpEnabled {true}
 UPnP IGD controller and the mutex to access it.
 
std::string username {}
 
bool videoEnabled {true}
 Allows user to temporarily disable video calling.
 

Detailed Description

Definition at line 33 of file account_config.h.

Constructor & Destructor Documentation

◆ AccountConfig()

jami::AccountConfig::AccountConfig ( const std::string &  type_,
const std::string &  id_,
const std::filesystem::path &  path_ = {} 
)
inline

Definition at line 35 of file account_config.h.

Member Function Documentation

◆ fromMap()

void jami::AccountConfig::fromMap ( const std::map< std::string, std::string > &  details)
virtual

Reimplemented in jami::JamiAccountConfig, jami::SipAccountConfig, and jami::SipAccountBaseConfig.

Definition at line 161 of file account_config.cpp.

References libjami::Account::ConfProperties::ACTIVE_CALL_LIMIT, activeCallLimit, alias, allModeratorsEnabled, autoAnswerEnabled, jami::Conf::CONFIG_ACCOUNT_ALIAS, jami::Conf::CONFIG_ACCOUNT_AUTOANSWER, jami::Conf::CONFIG_ACCOUNT_DENY_SECOND_CALL, jami::Conf::CONFIG_ACCOUNT_DISPLAYNAME, jami::Conf::CONFIG_ACCOUNT_ENABLE, jami::Conf::CONFIG_ACCOUNT_HOSTNAME, jami::Conf::CONFIG_ACCOUNT_ISRENDEZVOUS, jami::Conf::CONFIG_ACCOUNT_MAILBOX, jami::Conf::CONFIG_ACCOUNT_SENDCOMPOSING, jami::Conf::CONFIG_ACCOUNT_SENDREADRECEIPT, jami::Conf::CONFIG_ACCOUNT_UICUSTOMIZATION, jami::Conf::CONFIG_ACCOUNT_USERAGENT, jami::Conf::CONFIG_ALL_MODERATORS_ENABLED, jami::Conf::CONFIG_DEFAULT_MODERATORS, jami::Conf::CONFIG_LOCAL_MODERATORS_ENABLED, jami::Conf::CONFIG_RINGTONE_ENABLED, jami::Conf::CONFIG_RINGTONE_PATH, jami::Conf::CONFIG_UPNP_ENABLED, jami::Conf::CONFIG_VIDEO_ENABLED, customUserAgent, defaultModerators, denySecondCallEnabled, deviceKey, displayName, jami::emitSignal(), enabled, hostname, isRendezVous, localModeratorsEnabled, mailbox, notificationTopic, jami::parseBool(), jami::parseInt(), jami::parseString(), platform, jami::PROXY_PUSH_PLATFORM_KEY, libjami::Account::ConfProperties::PROXY_PUSH_TOKEN, jami::PROXY_PUSH_TOPIC_KEY, ringtoneEnabled, ringtonePath, sendComposing, sendReadReceipt, jami::string_split_set(), uiCustomization, upnpEnabled, and videoEnabled.

Referenced by jami::SipAccountBaseConfig::fromMap().

Here is the call graph for this function:

◆ serialize()

virtual void jami::AccountConfig::serialize ( YAML::Emitter &  out) const
pure virtual

◆ serializeDiff()

◆ toMap()

std::map< std::string, std::string > jami::AccountConfig::toMap ( ) const
virtual

Reimplemented in jami::JamiAccountConfig, jami::SipAccountConfig, and jami::SipAccountBaseConfig.

Definition at line 134 of file account_config.cpp.

References libjami::Account::ConfProperties::ACTIVE_CALL_LIMIT, activeCallLimit, alias, allModeratorsEnabled, autoAnswerEnabled, jami::Conf::CONFIG_ACCOUNT_ALIAS, jami::Conf::CONFIG_ACCOUNT_AUTOANSWER, jami::Conf::CONFIG_ACCOUNT_DENY_SECOND_CALL, jami::Conf::CONFIG_ACCOUNT_DISPLAYNAME, jami::Conf::CONFIG_ACCOUNT_ENABLE, jami::Conf::CONFIG_ACCOUNT_HOSTNAME, jami::Conf::CONFIG_ACCOUNT_ISRENDEZVOUS, jami::Conf::CONFIG_ACCOUNT_MAILBOX, jami::Conf::CONFIG_ACCOUNT_SENDCOMPOSING, jami::Conf::CONFIG_ACCOUNT_SENDREADRECEIPT, jami::Conf::CONFIG_ACCOUNT_TYPE, jami::Conf::CONFIG_ACCOUNT_UICUSTOMIZATION, jami::Conf::CONFIG_ACCOUNT_USERAGENT, jami::Conf::CONFIG_ACCOUNT_USERNAME, jami::Conf::CONFIG_ALL_MODERATORS_ENABLED, jami::Conf::CONFIG_DEFAULT_MODERATORS, jami::Conf::CONFIG_LOCAL_MODERATORS_ENABLED, jami::Conf::CONFIG_RINGTONE_ENABLED, jami::Conf::CONFIG_RINGTONE_PATH, jami::Conf::CONFIG_UPNP_ENABLED, jami::Conf::CONFIG_VIDEO_ENABLED, customUserAgent, defaultModerators, denySecondCallEnabled, displayName, enabled, jami::FALSE_STR, hostname, isRendezVous, localModeratorsEnabled, mailbox, ringtoneEnabled, ringtonePath, sendComposing, sendReadReceipt, jami::string_join(), jami::TRUE_STR, type, uiCustomization, upnpEnabled, username, and videoEnabled.

Referenced by jami::Account::getAccountDetails(), and jami::SipAccountBaseConfig::toMap().

Here is the call graph for this function:

◆ unserialize()

Member Data Documentation

◆ activeCallLimit

int jami::AccountConfig::activeCallLimit {-1}

The number of concurrent calls for the account -1: Unlimited 0: Do not disturb 1: Single call +: Multi line.

Definition at line 93 of file account_config.h.

Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().

◆ activeCodecs

std::vector<unsigned> jami::AccountConfig::activeCodecs {}

Definition at line 95 of file account_config.h.

Referenced by serializeDiff(), and unserialize().

◆ alias

std::string jami::AccountConfig::alias {}

A user-defined name for this account.

Definition at line 61 of file account_config.h.

Referenced by fromMap(), jami::Account::getAlias(), serializeDiff(), toMap(), and unserialize().

◆ allModeratorsEnabled

bool jami::AccountConfig::allModeratorsEnabled {true}

◆ autoAnswerEnabled

bool jami::AccountConfig::autoAnswerEnabled {false}

If true, automatically answer calls to this account.

Definition at line 72 of file account_config.h.

Referenced by fromMap(), jami::Account::isAutoAnswerEnabled(), serializeDiff(), toMap(), and unserialize().

◆ customUserAgent

std::string jami::AccountConfig::customUserAgent {}

User-agent used for registration.

Definition at line 120 of file account_config.h.

Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().

◆ defaultModerators

std::set<std::string> jami::AccountConfig::defaultModerators {}

◆ denySecondCallEnabled

bool jami::AccountConfig::denySecondCallEnabled {false}

If true, automatically deny new calls when already in one call to this account.

Definition at line 75 of file account_config.h.

Referenced by fromMap(), jami::Account::isDenySecondCallEnabled(), serializeDiff(), toMap(), and unserialize().

◆ deviceKey

std::string jami::AccountConfig::deviceKey {}

Device push notification token.

Definition at line 139 of file account_config.h.

Referenced by fromMap(), jami::JamiAccount::isMobile(), serializeDiff(), and unserialize().

◆ displayName

std::string jami::AccountConfig::displayName {}

Display name when calling.

Definition at line 115 of file account_config.h.

Referenced by fromMap(), jami::Account::getDisplayName(), serializeDiff(), toMap(), unserialize(), and jami::JamiAccount::updateProfile().

◆ enabled

bool jami::AccountConfig::enabled {true}

True if the account is enabled.

Definition at line 69 of file account_config.h.

Referenced by fromMap(), jami::Account::isEnabled(), jami::Account::isUsable(), serializeDiff(), toMap(), and unserialize().

◆ hostname

std::string jami::AccountConfig::hostname {}

SIP hostname (SIP account) or DHT bootstrap nodes (Jami account)

Definition at line 66 of file account_config.h.

Referenced by fromMap(), jami::JamiAccountConfig::fromMap(), jami::Account::getHostname(), serializeDiff(), toMap(), and unserialize().

◆ id

const std::string jami::AccountConfig::id

Account id.

Definition at line 53 of file account_config.h.

Referenced by jami::SipAccountConfig::serialize().

◆ isRendezVous

bool jami::AccountConfig::isRendezVous {false}

If true mix calls into a conference.

Definition at line 84 of file account_config.h.

Referenced by fromMap(), jami::Account::isRendezVous(), serializeDiff(), toMap(), and unserialize().

◆ localModeratorsEnabled

bool jami::AccountConfig::localModeratorsEnabled {true}

◆ mailbox

std::string jami::AccountConfig::mailbox {}

Account mail box.

Definition at line 125 of file account_config.h.

Referenced by fromMap(), jami::Account::getMailBox(), serializeDiff(), toMap(), and unserialize().

◆ notificationTopic

std::string jami::AccountConfig::notificationTopic {}

Push notification topic.

Definition at line 148 of file account_config.h.

Referenced by fromMap(), serializeDiff(), and unserialize().

◆ path

const std::filesystem::path jami::AccountConfig::path

Path where the configuration file is stored.

Part of the context but not stored in the configuration Used to compute relative paths for configuraton fields

Definition at line 58 of file account_config.h.

Referenced by jami::JamiAccountConfig::fromMap(), jami::SipAccountConfig::fromMap(), jami::JamiAccountConfig::toMap(), and jami::JamiAccountConfig::unserialize().

◆ platform

std::string jami::AccountConfig::platform {}

Device push notification platform.

Definition at line 143 of file account_config.h.

Referenced by fromMap(), serializeDiff(), and unserialize().

◆ ringtoneEnabled

bool jami::AccountConfig::ringtoneEnabled {true}

Play ringtone when receiving a call.

Definition at line 100 of file account_config.h.

Referenced by fromMap(), jami::Account::getRingtoneEnabled(), serializeDiff(), toMap(), and unserialize().

◆ ringtonePath

std::string jami::AccountConfig::ringtonePath {DEFAULT_RINGTONE_PATH}

Ringtone file used for this account.

Definition at line 105 of file account_config.h.

Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().

◆ sendComposing

bool jami::AccountConfig::sendComposing {true}

If true, send composing status (and emit to the client)

Definition at line 81 of file account_config.h.

Referenced by fromMap(), jami::Account::isComposingEnabled(), serializeDiff(), toMap(), and unserialize().

◆ sendReadReceipt

bool jami::AccountConfig::sendReadReceipt {true}

If true, send displayed status (and emit to the client)

Definition at line 78 of file account_config.h.

Referenced by fromMap(), jami::Account::isReadReceiptEnabled(), serializeDiff(), toMap(), and unserialize().

◆ type

const std::string jami::AccountConfig::type

Account type.

Definition at line 50 of file account_config.h.

Referenced by serializeDiff(), and toMap().

◆ uiCustomization

std::string jami::AccountConfig::uiCustomization {}

information about the customization of ui

Definition at line 153 of file account_config.h.

Referenced by fromMap(), jami::JamiAccountConfig::fromMap(), serializeDiff(), toMap(), and unserialize().

◆ upnpEnabled

bool jami::AccountConfig::upnpEnabled {true}

UPnP IGD controller and the mutex to access it.

Definition at line 130 of file account_config.h.

Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().

◆ username

◆ videoEnabled

bool jami::AccountConfig::videoEnabled {true}

Allows user to temporarily disable video calling.

Definition at line 110 of file account_config.h.

Referenced by jami::Account::enableVideo(), fromMap(), jami::Account::isVideoEnabled(), serializeDiff(), toMap(), and unserialize().


The documentation for this struct was generated from the following files: