Skip to content
Snippets Groups Projects
Commit f354e8b2 authored by Pierre Lespagnol's avatar Pierre Lespagnol Committed by Larbi Gharib
Browse files

newaccountmodel: add missing config properties

Change-Id: I2a5394745fc10bd83660fbd239acfe725e2643c6
parent 30872929
Branches
No related tags found
No related merge requests found
......@@ -113,6 +113,10 @@ struct ConfProperties_t
bool accountPublish;
int registrationExpire;
bool keepAliveEnabled;
QString bootstrapListUrl;
QString dhtProxyListUrl;
QString defaultModerators;
bool localModeratorsEnabled;
VectorMapStringString credentials;
struct Audio_t
{
......
......@@ -834,6 +834,10 @@ account::Info::fromDetails(const MapStringString& details)
confProperties.accountDiscovery = toBool(details[ConfProperties::ACCOUNT_PEER_DISCOVERY]);
confProperties.accountPublish = toBool(details[ConfProperties::ACCOUNT_PUBLISH]);
confProperties.keepAliveEnabled = toBool(details[ConfProperties::KEEP_ALIVE_ENABLED]);
confProperties.bootstrapListUrl = QString(details[ConfProperties::BOOTSTRAP_LIST_URL]);
confProperties.dhtProxyListUrl = QString(details[ConfProperties::DHT_PROXY_LIST_URL]);
confProperties.defaultModerators = QString(details[ConfProperties::DEFAULT_MODERATORS]);
confProperties.localModeratorsEnabled = toBool(details[ConfProperties::LOCAL_MODERATORS_ENABLED]);
// Audio
confProperties.Audio.audioPortMax = toInt(details[ConfProperties::Audio::PORT_MAX]);
confProperties.Audio.audioPortMin = toInt(details[ConfProperties::Audio::PORT_MIN]);
......@@ -947,6 +951,10 @@ account::ConfProperties_t::toDetails() const
details[ConfProperties::ACCOUNT_PEER_DISCOVERY] = toQString(this->accountDiscovery);
details[ConfProperties::ACCOUNT_PUBLISH] = toQString(this->accountPublish);
details[ConfProperties::KEEP_ALIVE_ENABLED] = toQString(this->keepAliveEnabled);
details[ConfProperties::BOOTSTRAP_LIST_URL] = this->bootstrapListUrl;
details[ConfProperties::DHT_PROXY_LIST_URL] = this->dhtProxyListUrl;
details[ConfProperties::DEFAULT_MODERATORS] = this->defaultModerators;
details[ConfProperties::LOCAL_MODERATORS_ENABLED] = toQString(this->localModeratorsEnabled);
// Audio
details[ConfProperties::Audio::PORT_MAX] = toQString(this->Audio.audioPortMax);
details[ConfProperties::Audio::PORT_MIN] = toQString(this->Audio.audioPortMin);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment