QXmppVersionManager Class
The QXmppVersionManager class makes it possible to request for the software version of an entity as defined by XEP-0092: Software Version. More...
| Header: | #include <QXmppVersionManager.h> |
| Inherits: | QXmppClientExtension |
- List of all members, including inherited members
- QXmppVersionManager is part of Managers.
Public Functions
| QString | clientName() const |
| QString | clientOs() const |
| QString | clientVersion() const |
| QString | requestVersion(const QString &jid) |
| void | setClientName(const QString &name) |
| void | setClientOs(const QString &os) |
| void | setClientVersion(const QString &version) |
Signals
| void | versionReceived(const QXmppVersionIq &) |
Detailed Description
Note: Its object should not be created using its constructor. Instead QXmppClient::findExtension<QXmppVersionManager>() should be used to get the instantiated object of this class.
Member Function Documentation
QString QXmppVersionManager::clientName() const
Returns the local XMPP client's name.
By default this is set to the QApplication::applicationName(), or "Based on QXmpp" if not specified.
See also setClientName().
QString QXmppVersionManager::clientOs() const
Returns the local XMPP client's operating system.
By default this equals to QSysInfo::prettyProductName() which contains the OS name and version (e.g. "Windows 8.1" or "Debian GNU/Linux buster").
See also setClientOs().
QString QXmppVersionManager::clientVersion() const
Returns the local XMPP client's version.
By default this is set to QApplication::applicationVersion(), or QXmpp's version if not specified.
See also setClientVersion().
QString QXmppVersionManager::requestVersion(const QString &jid)
Request version information from the specified XMPP entity.
jid.
void QXmppVersionManager::setClientName(const QString &name)
Sets the local XMPP client's name.
See also clientName().
void QXmppVersionManager::setClientOs(const QString &os)
Sets the local XMPP client's operating system.
os.
See also clientOs().
void QXmppVersionManager::setClientVersion(const QString &version)
Sets the local XMPP client's version.
See also clientVersion().
[signal] void QXmppVersionManager::versionReceived(const QXmppVersionIq &)
This signal is emitted when a version response is received.