Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

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 23 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 28 of file pubsubitem.cpp.

Item const Item item  ) 
 

Copy constructor.

Parameters:
item The 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:
Generated on Sat Oct 31 19:54:43 2009 for gloox by  doxygen 1.4.1