14#include "pubsubitem.h"
31 if( !
tag ||
tag->name() !=
"item" )
34 m_id =
tag->findAttribute(
"id" );
36 if(
tag->children().size() )
37 m_payload =
tag->children().front()->clone();
41 : m_payload( item.m_payload ? item.m_payload->clone() : 0 )
59 Tag* t =
new Tag(
"item" );
void setPayload(Tag *tag)
This is an abstraction of an XML element.
bool addAttribute(Attribute *attr)
void addChild(Tag *child)
Namespace holding all the Pubsub-related structures and definitions.
The namespace for the gloox library.