Skip to content
Snippets Groups Projects
Commit cba86c02 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

api: send registration state as a string

Refs #68913

Change-Id: I04e49a947740487f312f701dd2c7920a267639db
parent 2ce607fe
No related branches found
No related tags found
No related merge requests found
...@@ -532,7 +532,7 @@ ...@@ -532,7 +532,7 @@
<signal name="registrationStateChanged" tp:name-for-bindings="registrationStateChanged"> <signal name="registrationStateChanged" tp:name-for-bindings="registrationStateChanged">
<arg type="s" name="accountID"/> <arg type="s" name="accountID"/>
<arg type="i" name="registrationState"/> <arg type="s" name="registrationState"/>
<arg type="i" name="registrationDetail"> <arg type="i" name="registrationDetail">
<tp:docstring> <tp:docstring>
The optional account-type specific message code. 0 when not available. The optional account-type specific message code. 0 when not available.
......
...@@ -153,7 +153,7 @@ Account::setRegistrationState(RegistrationState state, unsigned detail_code, con ...@@ -153,7 +153,7 @@ Account::setRegistrationState(RegistrationState state, unsigned detail_code, con
// Notify the client // Notify the client
emitSignal<DRing::ConfigurationSignal::RegistrationStateChanged>( emitSignal<DRing::ConfigurationSignal::RegistrationStateChanged>(
accountID_, accountID_,
static_cast<int32_t>(registrationState_), mapStateNumberToString(registrationState_),
detail_code, detail_code,
detail_str); detail_str);
......
...@@ -154,7 +154,7 @@ struct ConfigurationSignal { ...@@ -154,7 +154,7 @@ struct ConfigurationSignal {
}; };
struct RegistrationStateChanged { struct RegistrationStateChanged {
constexpr static const char* name = "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 { struct VolatileDetailsChanged {
constexpr static const char* name = "VolatileDetailsChanged"; constexpr static const char* name = "VolatileDetailsChanged";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment