QXmpp Version: 1.10.0
QXmppVersionIq.h
1// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPVERSIONIQ_H
6#define QXMPPVERSIONIQ_H
7
8#include "QXmppIq.h"
9
14
15class QXMPP_EXPORT QXmppVersionIq : public QXmppIq
16{
17public:
18 QString name() const;
19 void setName(const QString &name);
20
21 QString os() const;
22 void setOs(const QString &os);
23
24 QString version() const;
25 void setVersion(const QString &version);
26
28 static bool isVersionIq(const QDomElement &element);
29 static bool checkIqType(const QString &tagName, const QString &xmlNamespace);
31
32protected:
34 void parseElementFromChild(const QDomElement &element) override;
35 void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
37
38private:
39 QString m_name;
40 QString m_os;
41 QString m_version;
42};
43
44#endif
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:23
The QXmppVersionIq class represents an IQ for conveying a software version as defined by XEP-0092: So...
Definition: QXmppVersionIq.h:16