Use a db roster to manage biboumi’s presence with the contacts

This commit is contained in:
louiz’
2017-07-16 00:16:43 +02:00
parent b233470710
commit 84034ed3dc
4 changed files with 126 additions and 4 deletions
+3
View File
@@ -36,6 +36,8 @@ public:
BiboumiComponent& operator=(const BiboumiComponent&) = delete;
BiboumiComponent& operator=(BiboumiComponent&&) = delete;
void after_handshake() override final;
/**
* Returns the bridge for the given user. If it does not exist, return
* nullptr.
@@ -87,6 +89,7 @@ public:
void send_invitation(const std::string& room_target, const std::string& jid_to, const std::string& author_nick);
void accept_subscription(const std::string& from, const std::string& to);
void ask_subscription(const std::string& from, const std::string& to);
void send_presence_to_contact(const std::string& from, const std::string& to, const std::string& type, const std::string& id="");
/**
* Handle the various stanza types
*/