#include <pubsubmanager.h>
Inherits IqHandler.
Inheritance diagram for Manager:

Public Member Functions | |
| Manager (ClientBase *parent) | |
| virtual | ~Manager () |
| const std::string | subscribe (const JID &service, const std::string &node, ResultHandler *handler, const JID &jid=JID(), SubscriptionObject type=SubscriptionNodes, int depth=1, const std::string &expire=EmptyString) |
| const std::string | unsubscribe (const JID &service, const std::string &node, const std::string &subid, ResultHandler *handler, const JID &jid=JID()) |
| const std::string | getSubscriptions (const JID &service, ResultHandler *handler) |
| const std::string | getAffiliations (const JID &service, ResultHandler *handler) |
| const std::string | getSubscriptionOptions (const JID &service, const JID &jid, const std::string &node, ResultHandler *handler) |
| const std::string | setSubscriptionOptions (const JID &service, const JID &jid, const std::string &node, DataForm *df, ResultHandler *handler) |
| void | getAffiliations (const JID &service, const std::string &node, ResultHandler *handler) |
| const std::string | requestItems (const JID &service, const std::string &node, const std::string &subid, int maxItems, ResultHandler *handler) |
| const std::string | requestItems (const JID &service, const std::string &node, const std::string &subid, const ItemList &items, ResultHandler *handler) |
| const std::string | publishItem (const JID &service, const std::string &node, ItemList &items, DataForm *options, ResultHandler *handler) |
| const std::string | deleteItem (const JID &service, const std::string &node, const ItemList &items, bool notify, ResultHandler *handler) |
| const std::string | createNode (const JID &service, const std::string &node, DataForm *config, ResultHandler *handler) |
| const std::string | deleteNode (const JID &service, const std::string &node, ResultHandler *handler) |
| const std::string | getDefaultNodeConfig (const JID &service, NodeType type, ResultHandler *handler) |
| const std::string | purgeNode (const JID &service, const std::string &node, ResultHandler *handler) |
| const std::string | getSubscribers (const JID &service, const std::string &node, ResultHandler *handler) |
| const std::string | setSubscribers (const JID &service, const std::string &node, const SubscriberList &list, ResultHandler *handler) |
| const std::string | getAffiliates (const JID &service, const std::string &node, ResultHandler *handler) |
| const std::string | setAffiliates (const JID &service, const std::string &node, const AffiliateList &list, ResultHandler *handler) |
| const std::string | getNodeConfig (const JID &service, const std::string &node, ResultHandler *handler) |
| const std::string | setNodeConfig (const JID &service, const std::string &node, DataForm *config, ResultHandler *handler) |
| bool | removeID (const std::string &id) |
| virtual bool | handleIq (const IQ &iq) |
| virtual void | handleIqID (const IQ &iq, int context) |
To receive PubSub events:
m_client->registerStanzaExtension( new PubSub::Event() );
const PubSub::Event* pse = msg.findExtension<PubSub::Event>( ExtPubSubEvent ); if( pse ) { // use the Event } else { // no Event }
Vincent Thomasset <vthomasset@gmail.com>
Definition at line 78 of file pubsubmanager.h.
|
|
Initialize the manager.
Definition at line 556 of file pubsubmanager.cpp. |
|
|
Default virtual destructor. Definition at line 91 of file pubsubmanager.h. |
|
||||||||||||||||||||
|
Creates a new node.
Definition at line 785 of file pubsubmanager.cpp. |
|
||||||||||||||||||||||||
|
Delete an item from a node.
Definition at line 761 of file pubsubmanager.cpp. |
|
||||||||||||||||
|
Deletes a node.
Definition at line 808 of file pubsubmanager.cpp. |
|
||||||||||||||||
|
Requests the affiliate list for a node.
Definition at line 388 of file pubsubmanager.h. |
|
||||||||||||||||
|
Requests the affiliation list for a node.
|
|
||||||||||||
|
Requests the affiliation list from a service.
Definition at line 158 of file pubsubmanager.h. |
|
||||||||||||||||
|
Retrieves the default configuration for a specific NodeType.
Definition at line 829 of file pubsubmanager.cpp. |
|
||||||||||||||||
|
Retrieve the configuration (options) of a node.
Definition at line 423 of file pubsubmanager.h. |
|
||||||||||||||||
|
Requests the subscriber list for a node.
Definition at line 352 of file pubsubmanager.h. |
|
||||||||||||||||||||
|
Requests subscription options.
Definition at line 177 of file pubsubmanager.h. |
|
||||||||||||
|
Requests the subscription list from a service.
Definition at line 141 of file pubsubmanager.h. |
|
|
Reimplement this function if you want to be notified about incoming IQs.
Implements IqHandler. Definition at line 465 of file pubsubmanager.h. |
|
||||||||||||
|
Reimplement this function if you want to be notified about incoming IQs with a specific value of the
Implements IqHandler. Definition at line 961 of file pubsubmanager.cpp. |
|
||||||||||||||||||||||||
|
Publish an item to a node. The Tag to publish is destroyed by the function before returning.
Definition at line 734 of file pubsubmanager.cpp. |
|
||||||||||||||||
|
Removes all the items from a node.
Definition at line 926 of file pubsubmanager.cpp. |
|
|
Removes an ID from our tracking lists.
Definition at line 947 of file pubsubmanager.cpp. |
|
||||||||||||||||||||||||
|
Requests specific items from a node.
Definition at line 710 of file pubsubmanager.cpp. |
|
||||||||||||||||||||||||
|
Requests items from a node.
Definition at line 686 of file pubsubmanager.cpp. |
|
||||||||||||||||||||
|
Modifies the affiliate list for a node.
Definition at line 406 of file pubsubmanager.h. |
|
||||||||||||||||||||
|
Changes a node's configuration (options).
Definition at line 439 of file pubsubmanager.h. |
|
||||||||||||||||||||
|
Modifies the subscriber list for a node. This function SHOULD only set the subscriber list to those which needs modification.
Definition at line 371 of file pubsubmanager.h. |
|
||||||||||||||||||||||||
|
Modifies subscription options.
Definition at line 195 of file pubsubmanager.h. |
|
||||||||||||||||||||||||||||||||
|
Subscribe to a node.
Definition at line 585 of file pubsubmanager.cpp. |
|
||||||||||||||||||||||||
|
Unsubscribe from a node.
Definition at line 637 of file pubsubmanager.cpp. |
1.4.1