From 11a54fe7d2749e8afff6bbb078489a822f28a7af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Mon, 23 Sep 2019 14:03:28 -0400 Subject: [PATCH] account: add managerUsername to details Change-Id: I70925f1955e589372e1903915c0f3f7a728dabf2 --- src/api/account.h | 1 + src/newaccountmodel.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/api/account.h b/src/api/account.h index 927aedcc..e1c39aef 100644 --- a/src/api/account.h +++ b/src/api/account.h @@ -108,6 +108,7 @@ struct ConfProperties_t { std::string deviceId; std::string deviceName; std::string managerUri; + std::string managerUsername; bool publishedSameAsLocal; int localPort; int publishedPort; diff --git a/src/newaccountmodel.cpp b/src/newaccountmodel.cpp index 3ed441e0..ec53e1d3 100644 --- a/src/newaccountmodel.cpp +++ b/src/newaccountmodel.cpp @@ -729,6 +729,7 @@ account::Info::fromDetails(const MapStringString& details) confProperties.Registration.expire = toInt(details[ConfProperties::Registration::EXPIRE]); // Jams confProperties.managerUri = toStdString(details[ConfProperties::MANAGER_URI]); + confProperties.managerUsername = toStdString(details[ConfProperties::MANAGER_USERNAME]); } MapStringString @@ -836,6 +837,7 @@ account::ConfProperties_t::toDetails() const details[ConfProperties::Registration::EXPIRE] = toQString(this->Registration.expire); // Manager details[ConfProperties::MANAGER_URI] = toQString(this->managerUri); + details[ConfProperties::MANAGER_USERNAME] = toQString(this->managerUsername); return details; } -- GitLab