Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

EventHandler Class Reference

#include <pubsubeventhandler.h>

List of all members.

Public Member Functions

virtual ~EventHandler ()
virtual void handleNodeCreation (const JID &service, const std::string &node, const DataForm *config)=0
virtual void handleNodeRemoval (const JID &service, const std::string &node)=0
virtual void handleItemPublication (const JID &service, const std::string &node, const std::string &item, const Tag *entry)=0
virtual void handleItemRemoval (const JID &service, const std::string &node, const std::string &item)=0
virtual void handleSubscriptionChange (const JID &service, const JID &jid, const std::string &node, const std::string &reason, SubscriptionType type)=0
virtual void handleConfigurationChange (const JID &service, const std::string &node, const DataForm *config)=0
virtual void handleNodePurge (const JID &service, const std::string &node)=0


Detailed Description

Handler for PubSub event notifications.

Author:
Vincent Thomasset

Definition at line 36 of file pubsubeventhandler.h.


Constructor & Destructor Documentation

virtual ~EventHandler  )  [inline, virtual]
 

Default virtual destructor.

Definition at line 42 of file pubsubeventhandler.h.


Member Function Documentation

virtual void handleConfigurationChange const JID service,
const std::string &  node,
const DataForm config
[pure virtual]
 

Receives notifications of node configuration changes.

Parameters:
service Service hosting the node.
node Node ID of the node.
config Optional DataForm of the new configuration (may be null).

virtual void handleItemPublication const JID service,
const std::string &  node,
const std::string &  item,
const Tag entry
[pure virtual]
 

Receives notifications of item publications.

Parameters:
service Service hosting the parent node.
node Node ID of the parent node.
item Item ID of the new Item.
entry Payload of the newly published item (may be null).

virtual void handleItemRemoval const JID service,
const std::string &  node,
const std::string &  item
[pure virtual]
 

Receives notifications item removals.

Parameters:
service Service hosting the parent node.
node Node ID of the parent node.
item Item ID of the new Item.

virtual void handleNodeCreation const JID service,
const std::string &  node,
const DataForm config
[pure virtual]
 

Receives notification of node creations.

Parameters:
service Service hosting the new node.
node Node ID of the new node.
config Optional DataForm of the new configuration (may be null).

virtual void handleNodePurge const JID service,
const std::string &  node
[pure virtual]
 

Receives notifications of node purges.

Parameters:
service Service hosting the node.
node Node ID of the purged node.

virtual void handleNodeRemoval const JID service,
const std::string &  node
[pure virtual]
 

Receives notification of node destructions.

Parameters:
service Service hosting the new node.
node Node ID of the new node.

virtual void handleSubscriptionChange const JID service,
const JID jid,
const std::string &  node,
const std::string &  reason,
SubscriptionType  type
[pure virtual]
 

Receives notifications of subscription type changes.

Parameters:
service Service hosting the node.
node Node ID of the node.
jid Entity responsible for the change.
reason Reason for the change.
type New SubscriptionType.


The documentation for this class was generated from the following file:
Generated on Tue Apr 22 15:10:16 2008 for gloox by  doxygen 1.4.1