gloox
0.9.9.12
|
#include <adhoccommandprovider.h>
Public Member Functions | |
virtual | ~AdhocCommandProvider () |
virtual void | handleAdhocCommand (const std::string &command, Tag *tag, const JID &from, const std::string &id)=0 |
A virtual interface for an Ad-hoc Command Provider according to XEP-0050.
Derived classes can be registered as Command Providers with the Adhoc object.
Definition at line 35 of file adhoccommandprovider.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 41 of file adhoccommandprovider.h.
|
pure virtual |
This function is called when an Ad-hoc Command needs to be handled. The callee is responsible for the whole command execution, i.e. session handling etc.
command | The name of the command to be executed. |
tag | The complete command tag. |
from | The sender of the command request. |
id | The command's id. An opaque string which should be used only as the id of the iq result or error stanza. |