|
Ring Daemon
|
#include <account_config.h>


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< unsigned > | activeCodecs {} |
| 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. | |
Definition at line 31 of file account_config.h.
|
inline |
Definition at line 33 of file account_config.h.
Reimplemented in jami::JamiAccountConfig, jami::SipAccountConfig, and jami::SipAccountBaseConfig.
Definition at line 157 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().

Implements jami::Serializable.
Implemented in jami::JamiAccountConfig, and jami::SipAccountConfig.
| void jami::AccountConfig::serializeDiff | ( | YAML::Emitter & | out, |
| const AccountConfig & | def | ||
| ) | const |
Definition at line 59 of file account_config.cpp.
References jami::ACCOUNT_ACTIVE_CALL_LIMIT_KEY, jami::ACCOUNT_AUTOANSWER_KEY, jami::ACCOUNT_COMPOSING_KEY, jami::ACCOUNT_ENABLE_KEY, jami::ACCOUNT_ISRENDEZVOUS_KEY, jami::ACCOUNT_READRECEIPT_KEY, jami::ACTIVE_CODEC_KEY, activeCallLimit, activeCodecs, alias, jami::ALIAS_KEY, jami::ALL_MODERATORS_ENABLED_KEY, allModeratorsEnabled, autoAnswerEnabled, customUserAgent, jami::DEFAULT_MODERATORS_KEY, defaultModerators, jami::DENY_SECOND_CALL_KEY, denySecondCallEnabled, deviceKey, jami::DISPLAY_NAME_KEY, displayName, jami::emitSignal(), enabled, hostname, jami::HOSTNAME_KEY, isRendezVous, jami::LOCAL_MODERATORS_ENABLED_KEY, localModeratorsEnabled, mailbox, jami::MAILBOX_KEY, notificationTopic, platform, jami::PROXY_PUSH_PLATFORM_KEY, jami::PROXY_PUSH_TOKEN_KEY, jami::PROXY_PUSH_TOPIC_KEY, jami::RINGTONE_ENABLED_KEY, jami::RINGTONE_PATH_KEY, ringtoneEnabled, ringtonePath, sendComposing, sendReadReceipt, SERIALIZE_CONFIG, type, jami::TYPE_KEY, jami::UI_CUSTOMIZATION, uiCustomization, jami::UPNP_ENABLED_KEY, upnpEnabled, jami::USER_AGENT_KEY, username, jami::USERNAME_KEY, jami::VIDEO_ENABLED_KEY, and videoEnabled.
Referenced by jami::SipAccountBaseConfig::serializeDiff().

|
virtual |
Reimplemented in jami::JamiAccountConfig, jami::SipAccountConfig, and jami::SipAccountBaseConfig.
Definition at line 130 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().

Implements jami::Serializable.
Reimplemented in jami::JamiAccountConfig, jami::SipAccountConfig, and jami::SipAccountBaseConfig.
Definition at line 91 of file account_config.cpp.
References jami::ACCOUNT_ACTIVE_CALL_LIMIT_KEY, jami::ACCOUNT_AUTOANSWER_KEY, jami::ACCOUNT_COMPOSING_KEY, jami::ACCOUNT_ENABLE_KEY, jami::ACCOUNT_ISRENDEZVOUS_KEY, jami::ACCOUNT_READRECEIPT_KEY, jami::ACTIVE_CODEC_KEY, activeCallLimit, activeCodecs, alias, jami::ALIAS_KEY, jami::ALL_MODERATORS_ENABLED_KEY, allModeratorsEnabled, autoAnswerEnabled, customUserAgent, jami::DEFAULT_MODERATORS_KEY, defaultModerators, jami::DENY_SECOND_CALL_KEY, denySecondCallEnabled, deviceKey, jami::DISPLAY_NAME_KEY, displayName, jami::emitSignal(), enabled, hostname, jami::HOSTNAME_KEY, isRendezVous, jami::LOCAL_MODERATORS_ENABLED_KEY, localModeratorsEnabled, mailbox, jami::MAILBOX_KEY, notificationTopic, platform, jami::PROXY_PUSH_PLATFORM_KEY, jami::PROXY_PUSH_TOKEN_KEY, jami::PROXY_PUSH_TOPIC_KEY, jami::RINGTONE_ENABLED_KEY, jami::RINGTONE_PATH_KEY, ringtoneEnabled, ringtonePath, sendComposing, sendReadReceipt, jami::split_string_to_unsigned(), jami::string_split_set(), jami::UI_CUSTOMIZATION, uiCustomization, jami::UPNP_ENABLED_KEY, upnpEnabled, jami::USER_AGENT_KEY, jami::VIDEO_ENABLED_KEY, and videoEnabled.
Referenced by jami::SipAccountBaseConfig::unserialize().

| 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 91 of file account_config.h.
Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().
| std::vector<unsigned> jami::AccountConfig::activeCodecs {} |
Definition at line 93 of file account_config.h.
Referenced by serializeDiff(), and unserialize().
| std::string jami::AccountConfig::alias {} |
A user-defined name for this account.
Definition at line 59 of file account_config.h.
Referenced by fromMap(), jami::Account::getAlias(), serializeDiff(), toMap(), and unserialize().
Definition at line 132 of file account_config.h.
Referenced by fromMap(), jami::Account::isAllModerators(), serializeDiff(), jami::Manager::setAllModerators(), toMap(), and unserialize().
If true, automatically answer calls to this account.
Definition at line 70 of file account_config.h.
Referenced by fromMap(), jami::Account::isAutoAnswerEnabled(), serializeDiff(), toMap(), and unserialize().
| std::string jami::AccountConfig::customUserAgent {} |
User-agent used for registration.
Definition at line 118 of file account_config.h.
Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().
| std::set<std::string> jami::AccountConfig::defaultModerators {} |
Definition at line 130 of file account_config.h.
Referenced by fromMap(), jami::Account::getDefaultModerators(), serializeDiff(), toMap(), and unserialize().
If true, automatically deny new calls when already in one call to this account.
Definition at line 73 of file account_config.h.
Referenced by fromMap(), jami::Account::isDenySecondCallEnabled(), serializeDiff(), toMap(), and unserialize().
| std::string jami::AccountConfig::deviceKey {} |
Device push notification token.
Definition at line 137 of file account_config.h.
Referenced by fromMap(), jami::JamiAccount::isMobile(), serializeDiff(), and unserialize().
| std::string jami::AccountConfig::displayName {} |
Display name when calling.
Definition at line 113 of file account_config.h.
Referenced by fromMap(), jami::Account::getDisplayName(), serializeDiff(), toMap(), unserialize(), and jami::JamiAccount::updateProfile().
True if the account is enabled.
Definition at line 67 of file account_config.h.
Referenced by fromMap(), jami::Account::isEnabled(), jami::Account::isUsable(), serializeDiff(), toMap(), and unserialize().
| std::string jami::AccountConfig::hostname {} |
SIP hostname (SIP account) or DHT bootstrap nodes (Jami account)
Definition at line 64 of file account_config.h.
Referenced by fromMap(), jami::JamiAccountConfig::fromMap(), jami::Account::getHostname(), serializeDiff(), toMap(), and unserialize().
| const std::string jami::AccountConfig::id |
Account id.
Definition at line 51 of file account_config.h.
Referenced by jami::SipAccountConfig::serialize().
If true mix calls into a conference.
Definition at line 82 of file account_config.h.
Referenced by fromMap(), jami::Account::isRendezVous(), serializeDiff(), toMap(), and unserialize().
Definition at line 131 of file account_config.h.
Referenced by jami::Manager::enableLocalModerators(), fromMap(), jami::Account::isLocalModeratorsEnabled(), serializeDiff(), toMap(), and unserialize().
| std::string jami::AccountConfig::mailbox {} |
Account mail box.
Definition at line 123 of file account_config.h.
Referenced by fromMap(), jami::Account::getMailBox(), serializeDiff(), toMap(), and unserialize().
| std::string jami::AccountConfig::notificationTopic {} |
Push notification topic.
Definition at line 146 of file account_config.h.
Referenced by fromMap(), serializeDiff(), and unserialize().
| 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 56 of file account_config.h.
Referenced by jami::JamiAccountConfig::fromMap(), jami::SipAccountConfig::fromMap(), jami::JamiAccountConfig::toMap(), and jami::JamiAccountConfig::unserialize().
| std::string jami::AccountConfig::platform {} |
Device push notification platform.
Definition at line 141 of file account_config.h.
Referenced by fromMap(), serializeDiff(), and unserialize().
Play ringtone when receiving a call.
Definition at line 98 of file account_config.h.
Referenced by fromMap(), jami::Account::getRingtoneEnabled(), serializeDiff(), toMap(), and unserialize().
| std::string jami::AccountConfig::ringtonePath {DEFAULT_RINGTONE_PATH} |
Ringtone file used for this account.
Definition at line 103 of file account_config.h.
Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().
If true, send composing status (and emit to the client)
Definition at line 79 of file account_config.h.
Referenced by fromMap(), jami::Account::isComposingEnabled(), serializeDiff(), toMap(), and unserialize().
If true, send displayed status (and emit to the client)
Definition at line 76 of file account_config.h.
Referenced by fromMap(), jami::Account::isReadReceiptEnabled(), serializeDiff(), toMap(), and unserialize().
| const std::string jami::AccountConfig::type |
Account type.
Definition at line 48 of file account_config.h.
Referenced by serializeDiff(), and toMap().
| std::string jami::AccountConfig::uiCustomization {} |
information about the customization of ui
Definition at line 151 of file account_config.h.
Referenced by fromMap(), jami::JamiAccountConfig::fromMap(), serializeDiff(), toMap(), and unserialize().
UPnP IGD controller and the mutex to access it.
Definition at line 128 of file account_config.h.
Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().
| std::string jami::AccountConfig::username {} |
Definition at line 61 of file account_config.h.
Referenced by jami::SipAccountConfig::Credentials::computePasswordHash(), jami::SipAccountConfig::fromMap(), jami::Account::getUsername(), jami::SipAccountConfig::serialize(), serializeDiff(), toMap(), jami::SipAccountConfig::Credentials::toMap(), jami::SipAccountConfig::toMap(), and jami::SipAccountConfig::unserialize().
Allows user to temporarily disable video calling.
Definition at line 108 of file account_config.h.
Referenced by jami::Account::enableVideo(), fromMap(), jami::Account::isVideoEnabled(), serializeDiff(), toMap(), and unserialize().