#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 |
Derived classes can be registered as Command Providers with the Adhoc object.
Definition at line 35 of file adhoccommandprovider.h.
| virtual ~AdhocCommandProvider | ( | ) | [inline, virtual] |
Virtual destructor.
Definition at line 41 of file adhoccommandprovider.h.
| virtual void handleAdhocCommand | ( | const std::string & | command, | |
| Tag * | tag, | |||
| const JID & | from, | |||
| const std::string & | id | |||
| ) | [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. |
1.5.5