#include <pubsubitem.h>
Abstracts a PubSub Item (XEP-0060).
XEP Version: 1.12
- Author
- Jakob Schröter js@ca.nosp@m.maya.nosp@m..net
- Since
- 1.0
Definition at line 37 of file pubsubitem.h.
◆ Item() [1/3]
◆ Item() [2/3]
◆ Item() [3/3]
| Item |
( |
const Item & | item | ) |
|
Copy constructor.
- Parameters
-
| item | The Item to be copied. |
Definition at line 40 of file pubsubitem.cpp.
◆ ~Item()
◆ id()
| const std::string & id |
( |
| ) |
const |
|
inline |
Returns the item ID.
- Returns
- The item ID.
Definition at line 78 of file pubsubitem.h.
◆ payload()
| const Tag * payload |
( |
| ) |
const |
|
inline |
Returns the Item's payload.
- Returns
- The layload.
Definition at line 66 of file pubsubitem.h.
◆ setID()
| void setID |
( |
const std::string & | id | ) |
|
|
inline |
Sets the item's ID.
- Parameters
-
Definition at line 84 of file pubsubitem.h.
◆ setPayload()
| void setPayload |
( |
Tag * | tag | ) |
|
Sets the item's payload.
- Parameters
-
Definition at line 51 of file pubsubitem.cpp.
◆ tag()
Creates and returns a Tag representation of the Item.
- Returns
- An XML representation of the Item.
Definition at line 57 of file pubsubitem.cpp.
The documentation for this class was generated from the following files: