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_SIGNALS:
void versionReceived(const QXmppVersionIq &);
private:
const std::unique_ptr<QXmppVersionManagerPrivate> d;
};
#endif // QXMPPVERSIONMANAGER_H
QXmppClientExtension
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition QXmppClientExtension.h:33
QXmppClientExtension::discoveryFeatures
virtual QStringList discoveryFeatures() const
Definition QXmppClientExtension.cpp:22
QXmppClientExtension::handleStanza
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition QXmppClientExtension.cpp:51
QXmppVersionIq
The QXmppVersionIq class represents an IQ for conveying a software version as defined by XEP-0092: So...
Definition QXmppVersionIq.h:16
QXmppVersionManager
The QXmppVersionManager class makes it possible to request for the software version of an entity as d...
Definition QXmppVersionManager.h:24
QXmppVersionManager::versionReceived
void versionReceived(const QXmppVersionIq &)
This signal is emitted when a version response is received.