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
+3 -1
View File
@@ -6,6 +6,8 @@
#include <functional>
#include <string>
class XmppComponent;
class AdhocCommand;
class AdhocSession;
@@ -16,7 +18,7 @@ class AdhocSession;
* TODO fix this:
* It also must call one of step_passed(), cancel() etc on the AdhocSession object.
*/
typedef std::function<void(AdhocSession&, XmlNode&)> AdhocStep;
typedef std::function<void(XmppComponent*, AdhocSession&, XmlNode&)> AdhocStep;
class AdhocSession
{