Item Class Reference

Abstracts a PubSub Item (XEP-0060). More...

#include <pubsubitem.h>

List of all members.

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@camaya.net>
Since:
1.0

Definition at line 37 of file pubsubitem.h.


Constructor & Destructor Documentation

Item (  ) 

Constructs a new empty Item.

Definition at line 17 of file pubsubitem.cpp.

Item ( const Tag tag  ) 

Constructs a new Item from the given Tag.

Parameters:
tag The Tag to parse.

Definition at line 22 of file pubsubitem.cpp.

Item ( const Item item  ) 

Copy constructor.

Parameters:
item The Item to be copied.

Definition at line 34 of file pubsubitem.cpp.

~Item (  ) 

Destructor.

Definition at line 40 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 45 of file pubsubitem.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Jun 8 23:37:57 2010 for gloox by  doxygen 1.6.3