QXmppExtendedAddress Class
Represents an extended address as defined by XEP-0033: Extended Stanza Addressing. More...
| Header: | #include <QXmppStanza.h> |
Public Functions
| QXmppExtendedAddress() | |
| QXmppExtendedAddress(const QXmppExtendedAddress &other) | |
| QXmppExtendedAddress(QXmppExtendedAddress &&) | |
| QString | description() const |
| bool | isDelivered() const |
| bool | isValid() const |
| QString | jid() const |
| void | setDelivered(bool delivered) |
| void | setDescription(const QString &description) |
| void | setJid(const QString &jid) |
| void | setType(const QString &type) |
| QString | type() const |
| QXmppExtendedAddress & | operator=(QXmppExtendedAddress &&) |
| QXmppExtendedAddress & | operator=(const QXmppExtendedAddress &other) |
Detailed Description
Extended addresses maybe of different types: some are defined by XEP-0033: Extended Stanza Addressing, others are defined in separate XEPs (for instance XEP-0146: Remote Controlling Clients). That is why the "type" property is a string rather than an enumerated type.
Member Function Documentation
QXmppExtendedAddress::QXmppExtendedAddress()
Constructs an empty extended address.
QXmppExtendedAddress::QXmppExtendedAddress(const QXmppExtendedAddress &other)
Default copy-constructur
QXmppExtendedAddress::QXmppExtendedAddress(QXmppExtendedAddress &&)
Default move-constructur
QString QXmppExtendedAddress::description() const
Returns the human-readable description of the address.
See also setDescription().
bool QXmppExtendedAddress::isDelivered() const
Returns whether the stanza has been delivered to this address.
bool QXmppExtendedAddress::isValid() const
Returns true if this address is valid. The extended address is considered to be valid if at least type and JID fields are non-empty.
QString QXmppExtendedAddress::jid() const
Returns the JID of the address.
See also setJid().
void QXmppExtendedAddress::setDelivered(bool delivered)
Sets whether the stanza has been delivered to this address.
See also isDelivered().
void QXmppExtendedAddress::setDescription(const QString &description)
Sets the human-readable description of the address.
See also description().
void QXmppExtendedAddress::setJid(const QString &jid)
Sets the JID of the address.
jid.
See also jid().
void QXmppExtendedAddress::setType(const QString &type)
Sets the type of the address.
See also type().
QString QXmppExtendedAddress::type() const
Returns the type of the address.
See also setType().
QXmppExtendedAddress &QXmppExtendedAddress::operator=(QXmppExtendedAddress &&)
Default assignment operator
QXmppExtendedAddress &QXmppExtendedAddress::operator=(const QXmppExtendedAddress &other)
Default assignment operator