The QXmppStanza class is the base class for all XMPP stanzas.
More...
#include <QXmppStanza.h>
The QXmppStanza class is the base class for all XMPP stanzas.
◆ QXmppStanza()
QXmppStanza::QXmppStanza |
( |
const QString & |
from = QString() , |
|
|
const QString & |
to = QString() |
|
) |
| |
Constructs a QXmppStanza with the specified sender and recipient.
- Parameters
-
◆ e2eeMetadata()
Returns additional data for end-to-end encryption purposes.
- Since
- QXmpp 1.5
◆ error()
Returns the stanza's error.
If the stanza has no error a default constructed QXmppStanza::Error is returned.
◆ errorOptional()
Returns the stanza's error.
- Since
- QXmpp 1.5
◆ extendedAddresses()
◆ extensions()
QXmppElementList QXmppStanza::extensions |
( |
| ) |
const |
Returns the stanza's "extensions".
Extensions are XML elements which are not handled internally by QXmpp.
◆ from()
QString QXmppStanza::from |
( |
| ) |
const |
Returns the stanza's sender JID.
◆ id()
QString QXmppStanza::id |
( |
| ) |
const |
Returns the stanza's identifier.
◆ lang()
QString QXmppStanza::lang |
( |
| ) |
const |
Returns the stanza's language.
◆ setE2eeMetadata()
void QXmppStanza::setE2eeMetadata |
( |
const std::optional< QXmppE2eeMetadata > & |
e2eeMetadata | ) |
|
Sets additional data for end-to-end encryption purposes.
- Since
- QXmpp 1.5
◆ setError() [1/2]
Sets the stanza's error.
- Parameters
-
◆ setError() [2/2]
void QXmppStanza::setError |
( |
const std::optional< Error > & |
error | ) |
|
Sets the stanza's error.
If you set an empty optional, this will remove the error.
- Since
- QXmpp 1.5
◆ setExtendedAddresses()
◆ setExtensions()
void QXmppStanza::setExtensions |
( |
const QXmppElementList & |
extensions | ) |
|
Sets the stanza's "extensions".
- Parameters
-
◆ setFrom()
void QXmppStanza::setFrom |
( |
const QString & |
from | ) |
|
Sets the stanza's sender JID.
- Parameters
-
◆ setId()
void QXmppStanza::setId |
( |
const QString & |
id | ) |
|
Sets the stanza's identifier.
- Parameters
-
◆ setLang()
void QXmppStanza::setLang |
( |
const QString & |
lang | ) |
|
Sets the stanza's language.
- Parameters
-
◆ setTo()
void QXmppStanza::setTo |
( |
const QString & |
to | ) |
|
Sets the stanza's recipient JID.
- Parameters
-
◆ to()
QString QXmppStanza::to |
( |
| ) |
const |
Returns the stanza's recipient JID.
The documentation for this class was generated from the following files: