summaryrefslogtreecommitdiff
path: root/src/xmpp/xmpp_component.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-02-26 05:02:08 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-02-26 05:02:08 +0100
commitc01befb054075ab414fd602859e5999a138aa5bf (patch)
tree37e521b9f3cc678d2cc994e2ec5f39da6ef79232 /src/xmpp/xmpp_component.hpp
parent6a2240f5935a4608e651a33c39219e912c9ea9ba (diff)
downloadbiboumi-c01befb054075ab414fd602859e5999a138aa5bf.tar.gz
biboumi-c01befb054075ab414fd602859e5999a138aa5bf.tar.bz2
biboumi-c01befb054075ab414fd602859e5999a138aa5bf.tar.xz
biboumi-c01befb054075ab414fd602859e5999a138aa5bf.zip
Implement room discovery using the LIST irc command
ref #2472
Diffstat (limited to 'src/xmpp/xmpp_component.hpp')
-rw-r--r--src/xmpp/xmpp_component.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xmpp/xmpp_component.hpp b/src/xmpp/xmpp_component.hpp
index 951d5a3..a0b06a6 100644
--- a/src/xmpp/xmpp_component.hpp
+++ b/src/xmpp/xmpp_component.hpp
@@ -26,6 +26,8 @@
#define ADHOC_NS "http://jabber.org/protocol/commands"
#define PING_NS "urn:xmpp:ping"
+class ListElement;
+
/**
* A callback called when the waited iq result is received (it is matched
* against the iq id)
@@ -229,6 +231,12 @@ public:
*/
void send_iq_result(const std::string& id, const std::string& to_jid, const std::string& from);
/**
+ * Send the channels list in one big stanza
+ */
+ void send_iq_room_list_result(const std::string& id, const std::string to_jid,
+ const std::string& from,
+ const std::vector<ListElement>& rooms_list);
+ /**
* Handle the various stanza types
*/
void handle_handshake(const Stanza& stanza);