Skip to content
Snippets Groups Projects
Commit 4b010cbc authored by Nicolas Jager's avatar Nicolas Jager Committed by Kateryna Kostiuk
Browse files

ConfigurationManagerInterface : adding signals


- add contactAdded and contactRemoved signal required by clients
using libwrap.

Change-Id: I809139cd103380605de86d61a4841d436393f67d
Reviewed-by: default avatarKateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
parent 9f4cd248
No related branches found
No related tags found
No related merge requests found
...@@ -142,6 +142,14 @@ public: ...@@ -142,6 +142,14 @@ public:
[this] (const std::string& account_id, const std::string& result) { [this] (const std::string& account_id, const std::string& result) {
Q_EMIT this->migrationEnded(QString(account_id.c_str()), QString(result.c_str())); Q_EMIT this->migrationEnded(QString(account_id.c_str()), QString(result.c_str()));
}), }),
exportable_callback<ConfigurationSignal::ContactAdded>(
[this] (const std::string& account_id, const std::string& uri, const bool& confirmed) {
Q_EMIT this->contactAdded(QString(account_id.c_str()), QString(uri.c_str()), confirmed);
}),
exportable_callback<ConfigurationSignal::ContactRemoved>(
[this] (const std::string& account_id, const std::string& uri, const bool& banned) {
Q_EMIT this->contactRemoved(QString(account_id.c_str()), QString(uri.c_str()), banned);
}),
}; };
} }
...@@ -692,6 +700,8 @@ Q_SIGNALS: // SIGNALS ...@@ -692,6 +700,8 @@ Q_SIGNALS: // SIGNALS
void nameRegistrationEnded(const QString& accountId, int status, const QString& name); void nameRegistrationEnded(const QString& accountId, int status, const QString& name);
void registeredNameFound(const QString& accountId, int status, const QString& address, const QString& name); void registeredNameFound(const QString& accountId, int status, const QString& address, const QString& name);
void migrationEnded(const QString &accountID, const QString &result); void migrationEnded(const QString &accountID, const QString &result);
void contactAdded(const QString &accountID, const QString &uri, bool banned);
void contactRemoved(const QString &accountID, const QString &uri, bool banned);
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment