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 );
MessageEvent(const Tag *tag)
virtual const std::string & filterString() 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.
const TagList & children() const
The namespace for the gloox library.
std::list< Tag * > TagList
const std::string XMLNS_X_EVENT