#include <disco.h>
Inherits IqHandler.
Inheritance diagram for Disco:


Public Member Functions | |
| void | addFeature (const std::string &feature) |
| void | removeFeature (const std::string &feature) |
| const StringList & | features () const |
| void | getDiscoInfo (const JID &to, const std::string &node, DiscoHandler *dh, int context, const std::string &tid="") |
| void | getDiscoItems (const JID &to, const std::string &node, DiscoHandler *dh, int context, const std::string &tid="") |
| void | setVersion (const std::string &name, const std::string &version, const std::string &os="") |
| void | setIdentity (const std::string &category, const std::string &type) |
| void | registerDiscoHandler (DiscoHandler *dh) |
| void | removeDiscoHandler (DiscoHandler *dh) |
| void | registerNodeHandler (DiscoNodeHandler *nh, const std::string &node) |
| void | removeNodeHandler (DiscoNodeHandler *nh, const std::string &node) |
| virtual bool | handleIq (Stanza *stanza) |
| virtual bool | handleIqID (Stanza *stanza, int context) |
ClientBase will automatically instantiate a Disco object. It can be used to announce special features of your client, or its version, or...
XEP version: 2.2
Definition at line 44 of file disco.h.
|
|
Adds a feature to the list of supported Jabber features. The list will be posted as an answer to IQ queries in the "http://jabber.org/protocol/disco#info" namespace. These IQ packets will also be forwarded to the application's IqHandler, if it listens to the
|
|
|
Lets you retrieve the features this Disco instance supports.
|
|
||||||||||||||||||||||||
|
Queries the given JID for general infomation according to XEP-0030 (Service Discovery). To receive the results inherit from DiscoHandler and register with the Disco object.
|
|
||||||||||||||||||||||||
|
Queries the given JID for its items according to XEP-0030 (Service Discovery). To receive the results inherit from DiscoHandler and register with the Disco object.
|
|
|
Reimplement this function if you want to be notified about incoming IQs.
Implements IqHandler. |
|
||||||||||||
|
Reimplement this function if you want to be notified about incoming IQs with a specific value of the
Implements IqHandler. |
|
|
Use this function to register an DiscoHandler with the Disco object. This is only necessary if you want to receive Disco-set requests. Else a one-time registration happens when calling getDiscoInfo() and getDiscoItems(), respectively.
|
|
||||||||||||
|
Use this function to register a DiscoNodeHandler with the Disco object. The DiscoNodeHandler will receive disco#items queries which are directed to the corresponding node registered for the handler.
|
|
|
Unregisters the given DiscoHandler.
|
|
|
Removes the given feature from the list of advertised client features.
|
|
||||||||||||
|
Removes the node handler for the given node.
|
|
||||||||||||
|
Sets the identity of this entity. The library uses this information to answer disco#info requests with a correct identity. XEP-0030 requires an entity to have at least one identity. See XEP-0030 for more information on categories and types.
|
|
||||||||||||||||
|
Sets the version of the host application using this library. The library takes care of jabber:iq:version requests. These IQ packets will not be forwarded to the IqHandlers.
|
1.4.1