Loading...
Searching...
No Matches
QXmppVersionIq.h
// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPVERSIONIQ_H
#define QXMPPVERSIONIQ_H
#include "QXmppIq.h"
class QXMPP_EXPORT QXmppVersionIq : public QXmppIq
{
public:
QString name() const;
void setName(const QString &name);
QString os() const;
void setOs(const QString &os);
QString version() const;
void setVersion(const QString &version);
static bool isVersionIq(const QDomElement &element);
static bool checkIqType(const QString &tagName, const QString &xmlNamespace);
protected:
void parseElementFromChild(const QDomElement &element) override;
void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
private:
QString m_name;
QString m_os;
QString m_version;
};
#endif
QXmppIq
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23
QXmppVersionIq
The QXmppVersionIq class represents an IQ for conveying a software version as defined by XEP-0092: So...
Definition QXmppVersionIq.h:16