QXmppSasl2UserAgent Class
User-agent for identifying devices across reconnects, defined in XEP-0388: Extensible SASL Profile. More...
| Header: | #include <QXmppSasl2UserAgent.h> |
| Since: | QXmpp 1.7 |
Public Functions
| QXmppSasl2UserAgent() | |
| QXmppSasl2UserAgent(QUuid deviceId, const QString &softwareName, const QString &deviceName) | |
| QUuid | deviceId() const |
| const QString & | deviceName() const |
| void | setDeviceId(QUuid id) |
| void | setDeviceName(const QString &device) |
| void | setSoftwareName(const QString &software) |
| const QString & | softwareName() const |
Detailed Description
Member Function Documentation
QXmppSasl2UserAgent::QXmppSasl2UserAgent()
Default-constructor
QXmppSasl2UserAgent::QXmppSasl2UserAgent(QUuid deviceId, const QString &softwareName, const QString &deviceName)
Constructs a new user-agent with given values.
QUuid QXmppSasl2UserAgent::deviceId() const
Returns the unique and stable ID of this device.
This ID is intended to be persistent across reconnects and reboots of the used device.
See also setDeviceId().
const QString &QXmppSasl2UserAgent::deviceName() const
Returns the name of this device (e.g. Kiva's Phone).
See also setDeviceName().
void QXmppSasl2UserAgent::setDeviceId(QUuid id)
Sets the unique and stable ID of this device to id.
This ID is intended to be persistent across reconnects and reboots of the used device.
See also deviceId().
void QXmppSasl2UserAgent::setDeviceName(const QString &device)
Sets the name of this device to device (e.g. Kiva's Phone).
See also deviceName().
void QXmppSasl2UserAgent::setSoftwareName(const QString &software)
Sets the name of the used software to software (e.g. AwesomeXMPP).
See also softwareName().
const QString &QXmppSasl2UserAgent::softwareName() const
Returns the name of the used software (e.g. AwesomeXMPP).
See also setSoftwareName().