Loading...
Searching...
No Matches
QXmppVersionManager.h
// SPDX-FileCopyrightText: 2010 Manjeet Dahiya <manjeetdahiya@gmail.com>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPVERSIONMANAGER_H
#define QXMPPVERSIONMANAGER_H
#include "QXmppClientExtension.h"
class QXmppVersionIq;
class QXmppVersionManagerPrivate;
class QXMPP_EXPORT QXmppVersionManager : public QXmppClientExtension
{
Q_OBJECT
public:
QXmppVersionManager();
~QXmppVersionManager() override;
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;
QStringList discoveryFeatures() const override;
bool handleStanza(const QDomElement &element) override;
QXmppVersionIq handleIq(QXmppVersionIq &&iq);
Q_SIGNAL void versionReceived(const QXmppVersionIq &);
private:
const std::unique_ptr<QXmppVersionManagerPrivate> d;
};
#endif // QXMPPVERSIONMANAGER_H
QXmppClientExtension::discoveryFeatures
virtual QStringList discoveryFeatures() const
Definition QXmppClientExtension.cpp:22
QXmppClientExtension::QXmppClientExtension
QXmppClientExtension()
Definition QXmppClientExtension.cpp:12
QXmppClientExtension::handleStanza
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition client/compat/removed_api.cpp:44
QXmppVersionIq
The QXmppVersionIq class represents an IQ for conveying a software version as defined by XEP-0092: So...
Definition QXmppVersionIq.h:17
QXmppVersionManager::setClientVersion
void setClientVersion(const QString &)
Sets the local XMPP client's version.
Definition QXmppVersionManager.cpp:63
QXmppVersionManager::setClientName
void setClientName(const QString &)
Sets the local XMPP client's name.
Definition QXmppVersionManager.cpp:57
QXmppVersionManager::versionReceived
Q_SIGNAL void versionReceived(const QXmppVersionIq &)
This signal is emitted when a version response is received.
QXmppVersionManager::clientName
QString clientName() const
Definition QXmppVersionManager.cpp:80
QXmppVersionManager::clientVersion
QString clientVersion() const
Definition QXmppVersionManager.cpp:91
QXmppVersionManager::clientOs
QString clientOs() const
Definition QXmppVersionManager.cpp:102
QXmppVersionManager::setClientOs
void setClientOs(const QString &)
Sets the local XMPP client's operating system.
Definition QXmppVersionManager.cpp:69
QXmppVersionManager::requestVersion
QString requestVersion(const QString &jid)
Request version information from the specified XMPP entity.
Definition QXmppVersionManager.cpp:48