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