QXmpp Version: 1.10.0
Stream.h
1// SPDX-FileCopyrightText: 2024 Linus Jahn <lnj@kaidan.im>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef STREAM_H
6#define STREAM_H
7
8#include <optional>
9
10#include <QString>
11
12class QDomElement;
13class QXmlStreamWriter;
14
15namespace QXmpp::Private {
16
17struct StreamOpen {
18 void toXml(QXmlStreamWriter *) const;
19
20 QString to;
21 QString from;
22 QStringView xmlns;
23};
24
25struct StarttlsRequest {
26 static std::optional<StarttlsRequest> fromDom(const QDomElement &);
27 void toXml(QXmlStreamWriter *) const;
28};
29
30struct StarttlsProceed {
31 static std::optional<StarttlsProceed> fromDom(const QDomElement &);
32 void toXml(QXmlStreamWriter *) const;
33};
34
35struct CsiActive {
36 void toXml(QXmlStreamWriter *w) const;
37};
38
39struct CsiInactive {
40 void toXml(QXmlStreamWriter *w) const;
41};
42
43} // namespace QXmpp::Private
44
45#endif // STREAM_H