#include <stanza.h>
Inherited by IQ, Message, Presence, and Subscription.
Inheritance diagram for Stanza:

Public Member Functions | |
| virtual | ~Stanza () |
| const JID & | from () const |
| const JID & | to () const |
| const std::string & | id () const |
| const Error * | error () const |
| const std::string & | xmlLang () const |
| void | addExtension (const StanzaExtension *se) |
| const StanzaExtension * | findExtension (int type) const |
| template<class T> | |
| const T * | findExtension (int type) const |
| const StanzaExtensionList & | extensions () const |
| void | removeExtensions () |
| virtual Tag * | tag () const =0 |
Protected Member Functions | |
| Stanza (Tag *tag) | |
| Stanza (const JID &to) | |
Definition at line 33 of file stanza.h.
|
|
Virtual destructor. Definition at line 42 of file stanza.cpp. |
|
|
Creates a new Stanza, taking from and to addresses from the given Tag.
Definition at line 31 of file stanza.cpp. |
|
|
Creates a new Stanza object and initializes the receiver's JID.
Definition at line 26 of file stanza.cpp. |
|
|
Use this function to add a StanzaExtension to this Stanza.
Definition at line 52 of file stanza.cpp. |
|
|
A convenience function that returns the stanza error condition, if any.
Definition at line 47 of file stanza.cpp. |
|
|
Returns the list of the Stanza's extensions.
|
|
|
Finds a StanzaExtension of a particular type. Example: const MyExtension* c = presence.findExtension<MyExtension>( ExtMyExt );
|
|
|
Finds a StanzaExtension of a particular type.
Definition at line 57 of file stanza.cpp. |
|
|
Returns the JID the stanza comes from.
|
|
|
Returns the id of the stanza, if set.
|
|
|
Removes (deletes) all the stanza's extensions. Definition at line 64 of file stanza.cpp. |
|
|
Creates a Tag representation of the Stanza. The Tag is completely independent of the Stanza and will not be updated when the Stanza is modified. Implemented in IQ, Message, Presence, and Subscription. |
|
|
Returns the receiver of the stanza.
|
|
|
Retrieves the value of the xml:lang attribute of this stanza. Default is 'en'.
|
1.4.1