summaryrefslogtreecommitdiff
path: root/src/xmpp/adhoc_commands_handler.hpp
diff options
context:
space:
mode:
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;