13 #ifndef PUBSUBEVENT_H__
14 #define PUBSUBEVENT_H__
16 #include "stanzaextension.h"
52 : retract( remove ), item( itemid ), payload( pld )
108 {
return m_subscriptionIDs ? *m_subscriptionIDs : m_emptyStringList; }
115 {
return m_itemOperations ? *m_itemOperations : m_emptyOperationList; }
122 void addItem( ItemOperation* op );
128 const std::string&
node()
const {
return m_node; }
145 const std::string& filterString()
const;
150 return new Event( tag );
167 ItemOperationList* m_itemOperations;
168 std::string m_collection;
171 const ItemOperationList m_emptyOperationList;
This is an implementation of a PubSub Notification as a StanzaExtension.
PubSub::EventType type() const
std::list< ItemOperation * > ItemOperationList
StanzaExtension * newInstance(const Tag *tag) const
const std::string & node() const
const StringList & subscriptions() const
const ItemOperationList & items() const
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
This is an abstraction of an XML element.
The namespace for the gloox library.
std::list< std::string > StringList
ItemOperation(bool remove, const std::string &itemid, const Tag *pld=0)