#include <adhoc.h>
Inherits DiscoNodeHandler, and IqHandler.
Inheritance diagram for Adhoc:
Public Member Functions | |
Adhoc (ClientBase *parent, Disco *disco) | |
virtual | ~Adhoc () |
virtual StringList | handleDiscoNodeFeatures (const std::string &node) |
virtual StringMap | handleDiscoNodeIdentities (const std::string &node, std::string &name) |
virtual StringMap | handleDiscoNodeItems (const std::string &node) |
virtual bool | handleIq (Stanza *stanza) |
virtual bool | handleIqID (Stanza *, int) |
void | registerAdhocCommandProvider (AdhocCommandProvider *acp, const std::string &command, const std::string &name) |
Definition at line 38 of file adhoc.h.
|
Constructor. Creates a new Adhoc client that registers as IqHandler with a ClientBase.
Definition at line 23 of file adhoc.cpp. References Disco::addFeature(), ClientBase::registerIqHandler(), and Disco::registerNodeHandler(). |
|
Virtual destructor. Definition at line 34 of file adhoc.cpp. References ClientBase::removeIqHandler(), and Disco::removeNodeHandler(). |
|
In addition to
Implements DiscoNodeHandler. |
|
In addition to
Implements DiscoNodeHandler. |
|
This function is used to gather more information on a specific node. It is called when a disco::items query arrives with a node attribute that matches the one registered for this handler. If node is empty, items for the root node (no node) shall be returned.
Implements DiscoNodeHandler. |
|
Reimplement this function if you want to be notified about incoming IQs.
Implements IqHandler. Definition at line 86 of file adhoc.cpp. References Tag::findAttribute(), Tag::findChild(), and Tag::hasChild(). |
|
Reimplement this function if you want to be notified about incoming IQs with a specific value of the
Implements IqHandler. |
|
Using this function, you can register a AdhocCommandProvider -derived object as handler for a specific Ad-hoc Command as defined in JEP-0050.
Definition at line 102 of file adhoc.cpp. References Disco::registerNodeHandler(). |