Add an ad-hoc command to disconnect some users

This commit is contained in:
Florent Le Coz
2014-05-31 17:06:36 +02:00
parent f5b61f0feb
commit 4e27298b3a
7 changed files with 180 additions and 13 deletions
+8 -1
View File
@@ -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.
@@ -36,6 +38,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.
*/