18 #include "disconodehandler.h"
19 #include "discohandler.h"
20 #include "iqhandler.h"
33 class AdhocCommandProvider;
89 AdhocCommandStatusUnknown
130 virtual StringList handleDiscoNodeFeatures(
const std::string& node );
133 virtual StringMap handleDiscoNodeIdentities(
const std::string& node, std::string& name );
139 virtual bool handleIq(
Stanza *stanza );
142 virtual bool handleIqID(
Stanza *stanza,
int context );
145 virtual void handleDiscoInfoResult(
Stanza *stanza,
int context );
148 virtual void handleDiscoItemsResult(
Stanza *stanza,
int context );
151 virtual void handleDiscoError(
Stanza *stanza,
int context );
161 const std::string& name );
192 void execute(
const JID& remote,
const std::string& command,
AdhocHandler *ah,
193 const std::string& sessionid =
"",
DataForm *form = 0,
194 AdhocExecuteActions action = ActionDefault );
201 void removeAdhocCommandProvider(
const std::string& command );
204 typedef std::map<const std::string, AdhocCommandProvider*> AdhocCommandProviderMap;
205 AdhocCommandProviderMap m_adhocCommandProviders;
217 AdhocContext context;
220 typedef std::map<std::string, TrackStruct> AdhocTrackMap;
221 AdhocTrackMap m_adhocTrackMap;
223 ClientBase *m_parent;