14 #include "pubsubitem.h"
31 if( !tag || tag->
name() !=
"item" )
37 m_payload = tag->
children().front()->clone();
41 : m_payload( item.m_payload ? item.m_payload->clone() : 0 )
59 Tag* t =
new Tag(
"item" );
const TagList & children() const
void addChild(Tag *child)
The namespace for the gloox library.
const std::string & findAttribute(const std::string &name) const
bool addAttribute(Attribute *attr)
const std::string & name() const
void setPayload(Tag *tag)
Abstracts a PubSub Item (XEP-0060).
This is an abstraction of an XML element.