QXmpp: QXmppVersionManager Class Reference

QXmpp Version: 1.14.3

Loading...
Searching...
No Matches
QXmppVersionManager Class Reference
Managers

The QXmppVersionManager class makes it possible to request for the software version of an entity as defined by XEP-0092: Software Version. More...

`#include <QXmppVersionManager.h>`

Inheritance diagram for QXmppVersionManager:

## Public Member Functions
QString | requestVersion (const QString &jid)
| Request version information from the specified XMPP entity.
void | setClientName (const QString &)
| Sets the local XMPP client's name.
void | setClientVersion (const QString &)
| Sets the local XMPP client's version.
void | setClientOs (const QString &)
| Sets the local XMPP client's operating system.
QString | clientName () const
QString | clientVersion () const
QString | clientOs () const
Q_SIGNAL void | versionReceived (const QXmppVersionIq &)
| This signal is emitted when a version response is received.
Public Member Functions inherited from QXmppClientExtension
| QXmppClientExtension ()
virtual QStringList | discoveryFeatures () const
virtual QList< QXmppDiscoIdentity > | discoveryIdentities () const
virtual bool | handleStanza (const QDomElement &stanza)
| You need to implement this method to process incoming XMPP stanzas.
virtual bool | handleStanza (const QDomElement &stanza, const std::optional< QXmppE2eeMetadata > &e2eeMetadata)
| You need to implement this method to process incoming XMPP stanzas.
Public Member Functions inherited from QXmppLoggable
| QXmppLoggable (QObject *parent=nullptr)
Q_SIGNAL void | setGauge (const QString &gauge, double value)
| Sets the given gauge to value.
Q_SIGNAL void | logMessage (QXmppLogger::MessageType type, const QString &msg)
| This signal is emitted to send logging messages.
Q_SIGNAL void | updateCounter (const QString &counter, qint64 amount=1)
| Updates the given counter by amount.

## Additional Inherited Members
Protected Member Functions inherited from QXmppClientExtension
QXmppClient * | client () const
virtual void | setClient (QXmppClient *client)
virtual void | onRegistered (QXmppClient *client)
virtual void | onUnregistered (QXmppClient *client)
void | injectIq (const QDomElement &element, const std::optional< QXmppE2eeMetadata > &e2eeMetadata)
bool | injectMessage (QXmppMessage &&message)
Protected Member Functions inherited from QXmppLoggable
void | debug (const QString &message)
| Logs a debugging message.
void | info (const QString &message)
| Logs an informational message.
void | warning (const QString &message)
| Logs a warning message.
void | logReceived (const QString &message)
| Logs a received packet.
void | logSent (const QString &message)
| Logs a sent packet.

## Detailed Description

The QXmppVersionManager class makes it possible to request for the software version of an entity as defined by XEP-0092: Software Version.

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

## ◆ clientName()

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.

## ◆ clientOs()

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").

## ◆ clientVersion()

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.

The documentation for this class was generated from the following files:

- QXmppVersionManager.h
- QXmppVersionManager.cpp