QXmpp  Version:1.3.0
Signals | Public Member Functions | List of all members
QXmppVersionManager Class Reference

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:
Inheritance graph
[legend]
Collaboration diagram for QXmppVersionManager:
Collaboration graph
[legend]

Signals

void versionReceived (const QXmppVersionIq &)
 This signal is emitted when a version response is received.
 
- Signals inherited from QXmppLoggable
void setGauge (const QString &gauge, double value)
 Sets the given gauge to value.
 
void logMessage (QXmppLogger::MessageType type, const QString &msg)
 This signal is emitted to send logging messages.
 
void updateCounter (const QString &counter, qint64 amount=1)
 Updates the given counter by amount.
 

Public Member Functions

QString requestVersion (const QString &jid)
 
void setClientName (const QString &)
 
void setClientVersion (const QString &)
 
void setClientOs (const QString &)
 
QString clientName () const
 
QString clientVersion () const
 
QString clientOs () const
 
- Public Member Functions inherited from QXmppClientExtension
 QXmppClientExtension ()
 
 ~QXmppClientExtension () override
 
virtual QStringList discoveryFeatures () const
 
virtual QList< QXmppDiscoveryIq::IdentitydiscoveryIdentities () const
 
virtual bool handleStanza (const QDomElement &stanza)=0
 You need to implement this method to process incoming XMPP stanzas. More...
 
- Public Member Functions inherited from QXmppLoggable
 QXmppLoggable (QObject *parent=nullptr)
 

Additional Inherited Members

- Protected Member Functions inherited from QXmppClientExtension
QXmppClientclient ()
 
virtual void setClient (QXmppClient *client)
 
- Protected Member Functions inherited from QXmppLoggable
void debug (const QString &message)
 
void info (const QString &message)
 
void warning (const QString &message)
 
void logReceived (const QString &message)
 
void logSent (const QString &message)
 

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
It's object should not be created using it's 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.

◆ requestVersion()

QString QXmppVersionManager::requestVersion ( const QString &  jid)

Request version information from the specified XMPP entity.

Parameters
jid

◆ setClientName()

void QXmppVersionManager::setClientName ( const QString &  name)

Sets the local XMPP client's name.

Parameters
name

◆ setClientOs()

void QXmppVersionManager::setClientOs ( const QString &  os)

Sets the local XMPP client's operating system.

Parameters
os

◆ setClientVersion()

void QXmppVersionManager::setClientVersion ( const QString &  version)

Sets the local XMPP client's version.

Parameters
version

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