13 #include "messageevent.h"
21 static const char* eventValues [] = {
35 TagList::const_iterator it = l.begin();
37 for( ; it != l.end(); ++it )
39 event |= util::lookup2( (*it)->name(), eventValues );
40 if( (*it)->name() ==
"id" )
41 m_id = (*it)->cdata();
49 static const std::string filter =
"/message/x[@xmlns='" +
XMLNS_X_EVENT +
"']";
58 new Tag( x,
"offline" );
60 new Tag( x,
"delivered" );
62 new Tag( x,
"displayed" );
64 new Tag( x,
"composing" );
67 new Tag( x,
"id", m_id );
const TagList & children() const
std::list< Tag * > TagList
The namespace for the gloox library.
virtual const std::string & filterString() const
This class abstracts a stanza extension, which is usually an element in a specific namespace...
const std::string XMLNS_X_EVENT
This is an abstraction of an XML element.
MessageEvent(const Tag *tag)