Commit cba86c02 authored by Adrien Béraud's avatar Adrien Béraud

api: send registration state as a string

Refs #68913

Change-Id: I04e49a947740487f312f701dd2c7920a267639db
parent 2ce607fe
......@@ -532,7 +532,7 @@
<signal name="registrationStateChanged" tp:name-for-bindings="registrationStateChanged">
<arg type="s" name="accountID"/>
<arg type="i" name="registrationState"/>
<arg type="s" name="registrationState"/>
<arg type="i" name="registrationDetail">
<tp:docstring>
The optional account-type specific message code. 0 when not available.
......
......@@ -153,7 +153,7 @@ Account::setRegistrationState(RegistrationState state, unsigned detail_code, con
// Notify the client
emitSignal<DRing::ConfigurationSignal::RegistrationStateChanged>(
accountID_,
static_cast<int32_t>(registrationState_),
mapStateNumberToString(registrationState_),
detail_code,
detail_str);
......
......@@ -154,7 +154,7 @@ struct ConfigurationSignal {
};
struct RegistrationStateChanged {
constexpr static const char* name = "RegistrationStateChanged";
using cb_type = void(const std::string& /*account_id*/, int /*state*/, int /*detailsCode*/, const std::string& /*detailsStr*/);
using cb_type = void(const std::string& /*account_id*/, const std::string& /*state*/, int /*detailsCode*/, const std::string& /*detailsStr*/);
};
struct VolatileDetailsChanged {
constexpr static const char* name = "VolatileDetailsChanged";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment