gloox
1.0.1
|
#include <pubsubevent.h>
Classes | |
struct | ItemOperation |
Public Types | |
typedef std::list < ItemOperation * > | ItemOperationList |
Public Member Functions | |
Event (const Tag *event) | |
Event (const std::string &node, PubSub::EventType type) | |
virtual | ~Event () |
PubSub::EventType | type () const |
const StringList & | subscriptions () const |
const ItemOperationList & | items () const |
void | addItem (ItemOperation *op) |
const std::string & | node () const |
const JID & | jid () |
bool | subscription () |
const std::string & | filterString () const |
StanzaExtension * | newInstance (const Tag *tag) const |
Tag * | tag () const |
virtual StanzaExtension * | clone () const |
Public Member Functions inherited from StanzaExtension | |
StanzaExtension (int type) | |
virtual | ~StanzaExtension () |
int | extensionType () const |
This is an implementation of a PubSub Notification as a StanzaExtension.
Definition at line 34 of file pubsubevent.h.
typedef std::list<ItemOperation*> ItemOperationList |
A list of ItemOperations.
Definition at line 69 of file pubsubevent.h.
PubSub event notification Stanza Extension.
event | A tag to parse. |
Definition at line 39 of file pubsubevent.cpp.
Event | ( | const std::string & | node, |
PubSub::EventType | type | ||
) |
PubSub event notification Stanza Extension.
node | The node's ID for which the notification is sent. |
type | The event's type. |
Definition at line 141 of file pubsubevent.cpp.
|
virtual |
Virtual destructor.
Definition at line 150 of file pubsubevent.cpp.
void addItem | ( | ItemOperation * | op | ) |
Add an item to the list of ItemOperations for EventItems(Retract) notification. After calling, the PubSub::Event object owns the ItemOperation and will free it.
op | An ItemOperation to add. |
Definition at line 166 of file pubsubevent.cpp.
|
virtual |
Returns an identical copy of the current StanzaExtension.
Implements StanzaExtension.
Definition at line 257 of file pubsubevent.cpp.
|
virtual |
Returns an XPath expression that describes a path to child elements of a stanza that an extension handles.
Implements StanzaExtension.
Definition at line 174 of file pubsubevent.cpp.
|
inline |
Returns the list of ItemOperations for EventItems(Retract) notification.
Definition at line 107 of file pubsubevent.h.
|
inline |
Returns the subscribe/unsubscribed JID. Only set for subscription notifications (type() == EventSubscription).
Definition at line 128 of file pubsubevent.h.
|
inlinevirtual |
Returns a new Instance of the derived type. Usually, for a derived class FooExtension, the implementation of this function looks like:
Implements StanzaExtension.
Definition at line 141 of file pubsubevent.h.
|
inline |
Returns the node's ID for which the notification is sent.
Definition at line 121 of file pubsubevent.h.
|
inline |
Returns the subscription state. Only set for subscription notifications (type() == EventSubscription).
Definition at line 135 of file pubsubevent.h.
|
inline |
Returns the list of subscription IDs for which this notification is valid.
Definition at line 100 of file pubsubevent.h.
|
virtual |
Returns a Tag representation of the extension.
Implements StanzaExtension.
Definition at line 180 of file pubsubevent.cpp.
|
inline |