15 #include "annotations.h"
16 #include "clientbase.h"
24 m_annotationsHandler( 0 )
34 Tag *s =
new Tag(
"storage" );
39 AnnotationsList::const_iterator it = aList.begin();
40 for( ; it != aList.end(); ++it )
42 Tag *n =
new Tag( s,
"note", (*it).note );
61 Tag::TagList::const_iterator it = l.begin();
62 for( ; it != l.end(); ++it )
64 if( (*it)->name() ==
"note" )
66 const std::string& jid = (*it)->findAttribute(
"jid" );
67 const std::string& note = (*it)->cdata();
69 if( !jid.empty() && !note.empty() )
71 const std::string& cdate = (*it)->findAttribute(
"cdate" );
72 const std::string& mdate = (*it)->findAttribute(
"mdate" );
78 aList.push_back( item );
83 if( m_annotationsHandler )
93 m_annotationsHandler = ah;
98 m_annotationsHandler = 0;