#include <disco.h>
An abstraction of a Disco query element (from Service Discovery, XEP-0030) in the disco::items namespace, implemented as a StanzaExtension.
- Author
- Jakob Schröter js@ca.nosp@m.maya.nosp@m..net
- Since
- 1.0
Definition at line 275 of file disco.h.
◆ Items()
Creates an empty Items object, suitable for making disco::items requests.
- Parameters
-
node | The node identifier to query (optional). |
Definition at line 186 of file disco.cpp.
◆ ~Items()
Virtual destructor.
Definition at line 209 of file disco.cpp.
◆ clone()
◆ filterString()
const std::string & filterString |
( |
| ) |
const |
|
virtual |
Returns an XPath expression that describes a path to child elements of a stanza that an extension handles.
- Returns
- The extension's filter string.
Implements StanzaExtension.
Definition at line 221 of file disco.cpp.
◆ items()
Returns the entity's/node's items.
- Returns
- A list of pointers to Item objects.
Definition at line 311 of file disco.h.
◆ newInstance()
Returns a new Instance of the derived type. Usually, for a derived class FooExtension, the implementation of this function looks like:
{
return new FooExtension(
tag );
}
virtual Tag * tag() const
StanzaExtension(int type)
- Returns
- The derived extension's new instance.
Implements StanzaExtension.
Definition at line 317 of file disco.h.
◆ node()
const std::string& node |
( |
| ) |
const |
|
inline |
Returns the queried node identifier, if any.
- Returns
- The node identifier. May be empty.
Definition at line 305 of file disco.h.
◆ setItems()
This function can be used to set the entity's/node's items.
- Parameters
-
items | A list of pointers to the entity's/node's items. |
- Note
- The Item objects pointed to will be owned by the Items object. The list should neither be used again nor should the Item objects be deleted.
Definition at line 214 of file disco.cpp.
◆ tag()
The documentation for this class was generated from the following files: