QXmpp: QXmppNonza.h Source File

QXmpp Version: 1.14.3

Loading...
Searching...
No Matches
QXmppNonza.h
1// SPDX-FileCopyrightText: 2021 Linus Jahn <lnj@kaidan.im>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPNONZA_H
6#define QXMPPNONZA_H
7
8#include "QXmppGlobal.h"
9
10class QXmlStreamWriter;
11class QDomElement;
12
13 class QXmppNonza
14{
15public:
16 QXmppNonza() = default;
17 virtual ~QXmppNonza() = default;
18
19 virtual inline bool isXmppStanza() const { return false; }
20 virtual void parse(const QDomElement &) = 0;
21 virtual void toXml(QXmlStreamWriter *writer) const = 0;
22};
23
24#endif // QXMPPNONZA_H
QXmppNonza::parse
virtual void parse(const QDomElement &)=0
QXmppNonza::toXml
virtual void toXml(QXmlStreamWriter *writer) const =0
QXmppNonza::isXmppStanza
virtual bool isXmppStanza() const
Definition QXmppNonza.h:19