gloox  1.0
Public Member Functions | List of all members
Item Class Reference

#include <pubsubitem.h>

Public Member Functions

 Item ()
 Item (const Tag *tag)
 Item (const Item &item)
 ~Item ()
const Tagpayload () const
const std::string & id () const
Tagtag () const

Detailed Description

Abstracts a PubSub Item (XEP-0060).

XEP Version: 1.12

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
Since
1.0

Definition at line 37 of file pubsubitem.h.

Constructor & Destructor Documentation

Item ( )

Constructs a new empty Item.

Definition at line 23 of file pubsubitem.cpp.

Item ( const Tag tag)

Constructs a new Item from the given Tag.

Parameters
tagThe Tag to parse.

Definition at line 28 of file pubsubitem.cpp.

Item ( const Item item)

Copy constructor.

Parameters
itemThe Item to be copied.

Definition at line 40 of file pubsubitem.cpp.

~Item ( )

Destructor.

Definition at line 46 of file pubsubitem.cpp.

Member Function Documentation

const std::string& id ( ) const
inline

Returns the item ID.

Returns
The item ID.

Definition at line 72 of file pubsubitem.h.

const Tag* payload ( ) const
inline

Returns the Item's payload.

Returns
The layload.

Definition at line 66 of file pubsubitem.h.

Tag * tag ( ) const

Creates and returns a Tag representation of the Item.

Returns
An XML representation of the Item.

Definition at line 51 of file pubsubitem.cpp.


The documentation for this class was generated from the following files: