|
QXmpp Version: 1.15.1
|
The QXmppStanza class is the base class for all XMPP stanzas. More...
#include <QXmppStanza.h>
Classes | |
| class | Error |
| The Error class represents a stanza error. More... | |
Public Member Functions | |
| QXmppStanza (const QString &from=QString(), const QString &to=QString()) | |
| QXmppStanza (const QXmppStanza &other) | |
| Constructs a copy of other. | |
| QXmppStanza (QXmppStanza &&) | |
| Move constructor. | |
| ~QXmppStanza () override | |
| Destroys a QXmppStanza. | |
| QXmppStanza & | operator= (const QXmppStanza &other) |
| Assigns other to this stanza. | |
| QXmppStanza & | operator= (QXmppStanza &&) |
| Move-assignment operator. | |
| QString | to () const |
| void | setTo (const QString &) |
| QString | from () const |
| void | setFrom (const QString &) |
| QString | id () const |
| void | setId (const QString &) |
| QString | lang () const |
| void | setLang (const QString &) |
| QXmppStanza::Error | error () const |
| std::optional< Error > | errorOptional () const |
| void | setError (const QXmppStanza::Error &error) |
| void | setError (const std::optional< Error > &error) |
| QXmppElementList | extensions () const |
| void | setExtensions (const QXmppElementList &elements) |
| QList< QXmppExtendedAddress > | extendedAddresses () const |
| void | setExtendedAddresses (const QList< QXmppExtendedAddress > &extendedAddresses) |
| std::optional< QXmppE2eeMetadata > | e2eeMetadata () const |
| void | setE2eeMetadata (const std::optional< QXmppE2eeMetadata > &e2eeMetadata) |
| Public Member Functions inherited from QXmppNonza | |
| virtual bool | isXmppStanza () const |
| virtual void | parse (const QDomElement &)=0 |
| virtual void | toXml (QXmlStreamWriter *writer) const =0 |
Friends | |
| class | TestClient |
The QXmppStanza class is the base class for all XMPP stanzas.
| QXmppStanza::QXmppStanza | ( | const QString & | from = QString(), |
| const QString & | to = QString() ) |
Constructs a QXmppStanza with the specified sender and recipient.
| from | |
| to |
| std::optional< QXmppE2eeMetadata > QXmppStanza::e2eeMetadata | ( | ) | const |
Returns additional data for end-to-end encryption purposes.
| QXmppStanza::Error QXmppStanza::error | ( | ) | const |
Returns the stanza's error.
If the stanza has no error a default constructed QXmppStanza::Error is returned.
| std::optional< QXmppStanza::Error > QXmppStanza::errorOptional | ( | ) | const |
Returns the stanza's error.
| QList< QXmppExtendedAddress > QXmppStanza::extendedAddresses | ( | ) | const |
Returns the stanza's extended addresses as defined by XEP-0033: Extended Stanza Addressing.
| QXmppElementList QXmppStanza::extensions | ( | ) | const |
Returns the stanza's "extensions".
Extensions are XML elements which are not handled internally by QXmpp.
| QString QXmppStanza::from | ( | ) | const |
Returns the stanza's sender JID.
| QString QXmppStanza::id | ( | ) | const |
Returns the stanza's identifier.
| QString QXmppStanza::lang | ( | ) | const |
Returns the stanza's language.
| void QXmppStanza::setE2eeMetadata | ( | const std::optional< QXmppE2eeMetadata > & | e2eeMetadata | ) |
Sets additional data for end-to-end encryption purposes.
| void QXmppStanza::setError | ( | const QXmppStanza::Error & | error | ) |
Sets the stanza's error.
| error |
| void QXmppStanza::setError | ( | const std::optional< Error > & | error | ) |
| void QXmppStanza::setExtendedAddresses | ( | const QList< QXmppExtendedAddress > & | addresses | ) |
Sets the stanza's extended addresses as defined by XEP-0033: Extended Stanza Addressing.
| void QXmppStanza::setExtensions | ( | const QXmppElementList & | extensions | ) |
Sets the stanza's "extensions".
| extensions |
| void QXmppStanza::setFrom | ( | const QString & | from | ) |
Sets the stanza's sender JID.
| from |
| void QXmppStanza::setId | ( | const QString & | id | ) |
Sets the stanza's identifier.
| id |
| void QXmppStanza::setLang | ( | const QString & | lang | ) |
Sets the stanza's language.
| lang |
| void QXmppStanza::setTo | ( | const QString & | to | ) |
Sets the stanza's recipient JID.
| to |
| QString QXmppStanza::to | ( | ) | const |
Returns the stanza's recipient JID.