|
gloox 1.0
|
An abstraction of an IQ stanza. More...
#include <iq.h>

Public Types | |
| enum | IqType { Get = 0, Set, Result, Error, Invalid } |
Public Member Functions | |
| IQ (IqType type, const JID &to, const std::string &id=EmptyString) | |
| virtual | ~IQ () |
| IqType | subtype () const |
| virtual Tag * | tag () const |
| enum IqType |
Describes the different valid IQ types.
| Get |
The stanza is a request for information or requirements. |
| Set |
The stanza provides required data, sets new values, or replaces existing values. |
| Result |
The stanza is a response to a successful get or set request. |
| Error |
An error has occurred regarding processing or delivery of a previously-sent get or set (see Stanza Errors (Section 9.3)). |
| Invalid |
The stanza is invalid |
| IQ | ( | IqType | type, |
| const JID & | to, | ||
| const std::string & | id = EmptyString |
||
| ) |
Creates an IQ Query.
| type | The desired IqType. |
| to | The intended receiver. |
| id | The request's ID. Usually obtained from ClientBase::getID(). Optional, will be added by ClientBase if the IQ is sent by means of send( IQ&, IqHandler*, int, bool ) . You should only need to pass this when creating a reply (i.e. an IQ of type Result or Error). |
| IqType subtype | ( | ) | const [inline] |
| Tag * tag | ( | ) | const [virtual] |
1.7.4