summaryrefslogtreecommitdiff
path: root/src/xmpp/adhoc_commands_handler.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-05-31 17:06:36 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-05-31 17:06:36 +0200
commit4e27298b3a6389781893589b37f66260d6a34707 (patch)
tree5b33fe906f698c4b2789197d51d3712daf791489 /src/xmpp/adhoc_commands_handler.hpp
parentf5b61f0feba271770474c4d540d7bf48a6c2b180 (diff)
downloadbiboumi-4e27298b3a6389781893589b37f66260d6a34707.tar.gz
biboumi-4e27298b3a6389781893589b37f66260d6a34707.tar.bz2
biboumi-4e27298b3a6389781893589b37f66260d6a34707.tar.xz
biboumi-4e27298b3a6389781893589b37f66260d6a34707.zip
Add an ad-hoc command to disconnect some users
Diffstat (limited to 'src/xmpp/adhoc_commands_handler.hpp')
-rw-r--r--src/xmpp/adhoc_commands_handler.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/xmpp/adhoc_commands_handler.hpp b/src/xmpp/adhoc_commands_handler.hpp
index 6e00188..f443325 100644
--- a/src/xmpp/adhoc_commands_handler.hpp
+++ b/src/xmpp/adhoc_commands_handler.hpp
@@ -13,10 +13,12 @@
#include <string>
#include <map>
+class XmppComponent;
+
class AdhocCommandsHandler
{
public:
- explicit AdhocCommandsHandler();
+ explicit AdhocCommandsHandler(XmppComponent* xmpp_component);
~AdhocCommandsHandler();
/**
* Returns the list of available commands.
@@ -37,6 +39,11 @@ public:
XmlNode&& handle_request(const std::string& executor_jid, XmlNode command_node);
private:
/**
+ * A pointer to the XmppComponent, to access to basically anything in the
+ * gateway.
+ */
+ XmppComponent* xmpp_component;
+ /**
* The list of all available commands.
*/
const std::map<const std::string, const AdhocCommand> commands;