gloox
1.0.9
|
#include <pubsubresulthandler.h>
Public Member Functions | |
virtual | ~ResultHandler () |
virtual void | handleItem (const JID &service, const std::string &node, const Tag *entry)=0 |
virtual void | handleItems (const std::string &id, const JID &service, const std::string &node, const ItemList &itemList, const Error *error=0)=0 |
virtual void | handleItemPublication (const std::string &id, const JID &service, const std::string &node, const ItemList &itemList, const Error *error=0)=0 |
virtual void | handleItemDeletion (const std::string &id, const JID &service, const std::string &node, const ItemList &itemList, const Error *error=0)=0 |
virtual void | handleSubscriptionResult (const std::string &id, const JID &service, const std::string &node, const std::string &sid, const JID &jid, const SubscriptionType subType, const Error *error=0)=0 |
virtual void | handleUnsubscriptionResult (const std::string &id, const JID &service, const Error *error=0)=0 |
virtual void | handleSubscriptionOptions (const std::string &id, const JID &service, const JID &jid, const std::string &node, const DataForm *options, const std::string &sid=EmptyString, const Error *error=0)=0 |
virtual void | handleSubscriptionOptionsResult (const std::string &id, const JID &service, const JID &jid, const std::string &node, const std::string &sid=EmptyString, const Error *error=0)=0 |
virtual void | handleSubscribers (const std::string &id, const JID &service, const std::string &node, const SubscriberList *list, const Error *error=0)=0 |
virtual void | handleSubscribersResult (const std::string &id, const JID &service, const std::string &node, const SubscriberList *list, const Error *error=0)=0 |
virtual void | handleAffiliates (const std::string &id, const JID &service, const std::string &node, const AffiliateList *list, const Error *error=0)=0 |
virtual void | handleAffiliatesResult (const std::string &id, const JID &service, const std::string &node, const AffiliateList *list, const Error *error=0)=0 |
virtual void | handleNodeConfig (const std::string &id, const JID &service, const std::string &node, const DataForm *config, const Error *error=0)=0 |
virtual void | handleNodeConfigResult (const std::string &id, const JID &service, const std::string &node, const Error *error=0)=0 |
virtual void | handleNodeCreation (const std::string &id, const JID &service, const std::string &node, const Error *error=0)=0 |
virtual void | handleNodeDeletion (const std::string &id, const JID &service, const std::string &node, const Error *error=0)=0 |
virtual void | handleNodePurge (const std::string &id, const JID &service, const std::string &node, const Error *error=0)=0 |
virtual void | handleSubscriptions (const std::string &id, const JID &service, const SubscriptionMap &subMap, const Error *error=0)=0 |
virtual void | handleAffiliations (const std::string &id, const JID &service, const AffiliationMap &affMap, const Error *error=0)=0 |
virtual void | handleDefaultNodeConfig (const std::string &id, const JID &service, const DataForm *config, const Error *error=0)=0 |
A virtual interface to receive item related requests results.
Derive from this interface and pass it to item related requests.
As a general rule, methods receive an Error pointer which will be null (when the request was successful) or describe the problem. Requests asking for information will have their "pointer to information" set to null when an error occured (that is they're mutually exclusive). In both cases, gloox takes care of deleting these objects.
Definition at line 49 of file pubsubresulthandler.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 55 of file pubsubresulthandler.h.
|
pure virtual |
Receives the affiliate list for a node.
id | The reply IQ's id. |
service | Service hosting the node. |
node | ID of the queried node. |
list | Affiliation list. |
error | Affiliation list retrieval Error. |
|
pure virtual |
Receives the Affiliation map for a specific service.
id | The reply IQ's id. |
service | The queried service. |
affMap | The map of node's affiliation. |
error | Affiliation list retrieval Error. |
|
pure virtual |
Receives the default configuration for a specific node type.
id | The reply IQ's id. |
service | The queried service. |
config | Configuration form for the node type. |
error | Default node config retrieval Error. |
|
pure virtual |
Receives the payload for an item.
service | Service hosting the queried node. |
node | ID of the parent node. |
entry | The complete item Tag (do not delete). |
|
pure virtual |
Receives the result of an item removal.
id | The reply IQ's id. |
service | Service hosting the queried node. |
node | ID of the queried node. If empty, the root node has been queried. |
itemList | List of contained items. |
error | Describes the error case if the request failed. |
|
pure virtual |
Receives the result for an item publication.
id | The reply IQ's id. |
service | Service hosting the queried node. |
node | ID of the queried node. If empty, the root node has been queried. |
itemList | List of contained items. |
error | Describes the error case if the request failed. |
|
pure virtual |
Receives the list of Items for a node.
id | The reply IQ's id. |
service | Service hosting the queried node. |
node | ID of the queried node (empty for the root node). |
itemList | List of contained items. |
error | Describes the error case if the request failed. |
|
pure virtual |
Receives the configuration for a specific node.
id | The reply IQ's id. |
service | Service hosting the node. |
node | ID of the node. |
config | Configuration DataForm. |
error | Configuration retrieval Error. |
|
pure virtual |
Receives the result of a node's configuration modification.
id | The reply IQ's id. |
service | Service hosting the node. |
node | ID of the node. |
error | Configuration modification Error. |
|
pure virtual |
Receives the result of a node creation.
id | The reply IQ's id. |
service | Service hosting the node. |
node | ID of the node. |
error | Node creation Error. |
|
pure virtual |
Receives the result for a node removal.
id | The reply IQ's id. |
service | Service hosting the node. |
node | ID of the node. |
error | Node removal Error. |
|
pure virtual |
Receives the result of a node purge request.
id | The reply IQ's id. |
service | Service hosting the node. |
node | ID of the node. |
error | Node purge Error. |
|
pure virtual |
Receives the list of subscribers to a node.
id | The reply IQ's id. |
service | Service hosting the node. |
node | ID of the queried node. |
list | Subscriber list. |
error | Subscription options modification Error. |
|
pure virtual |
Receives the result of a subscriber list modification.
id | The reply IQ's id. |
service | Service hosting the node. |
node | ID of the queried node. |
list | Subscriber list. |
error | Subscriber list modification Error. |
|
pure virtual |
Receives the subscription options for a node.
id | The reply IQ's id. |
service | Service hosting the queried node. |
jid | Subscribed entity. |
node | ID of the node. |
options | Options DataForm. |
sid | An optional subscription ID. |
error | Subscription options retrieval Error. |
|
pure virtual |
Receives the result for a subscription options modification.
id | The reply IQ's id. |
service | Service hosting the queried node. |
jid | Subscribed entity. |
node | ID of the queried node. |
sid | An optional subscription ID. |
error | Subscription options modification Error. |
|
pure virtual |
Receives the subscription results. In case a problem occured, the Subscription ID and SubscriptionType becomes irrelevant.
id | The reply IQ's id. |
service | PubSub service asked for subscription. |
node | Node asked for subscription. |
sid | Subscription ID. |
jid | Subscribed entity. |
subType | Type of the subscription. |
error | Subscription Error. |
|
pure virtual |
Receives the Subscription list for a specific service.
id | The reply IQ's id. |
service | The queried service. |
subMap | The map of node's subscription. |
error | Subscription list retrieval Error. |
|
pure virtual |
Receives the unsubscription results. In case a problem occured, the subscription ID becomes irrelevant.