QXmpp: QXmppVersionManager.h Source File

QXmpp Version: 1.14.3

Loading...
Searching...
No Matches
QXmppVersionManager.h
1// SPDX-FileCopyrightText: 2010 Manjeet Dahiya <manjeetdahiya@gmail.com>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPVERSIONMANAGER_H
6#define QXMPPVERSIONMANAGER_H
7
8#include "QXmppClientExtension.h"
9
10class QXmppVersionIq;
11class QXmppVersionManagerPrivate;
12
23 class QXMPP_EXPORT QXmppVersionManager : public QXmppClientExtension
24{
25 Q_OBJECT
26
27public:
28 QXmppVersionManager();
29 ~QXmppVersionManager() override;
30
31 QString requestVersion(const QString &jid);
32
33 void setClientName(const QString &);
34 void setClientVersion(const QString &);
35 void setClientOs(const QString &);
36
37 QString clientName() const;
38 QString clientVersion() const;
39 QString clientOs() const;
40
42 QStringList discoveryFeatures() const override;
43 bool handleStanza(const QDomElement &element) override;
44 QXmppVersionIq handleIq(QXmppVersionIq &&iq);
46
48 Q_SIGNAL void versionReceived(const QXmppVersionIq &);
49
50private:
51 const std::unique_ptr<QXmppVersionManagerPrivate> d;
52};
53
54#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