QXmpp  Version: 1.10.4
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 
12 class QDomElement;
13 class QXmlStreamWriter;
14 
15 namespace QXmpp::Private {
16 
17 struct StreamOpen {
18  void toXml(QXmlStreamWriter *) const;
19 
20  QString to;
21  QString from;
22  QStringView xmlns;
23 };
24 
25 struct StarttlsRequest {
26  static std::optional<StarttlsRequest> fromDom(const QDomElement &);
27  void toXml(QXmlStreamWriter *) const;
28 };
29 
30 struct StarttlsProceed {
31  static std::optional<StarttlsProceed> fromDom(const QDomElement &);
32  void toXml(QXmlStreamWriter *) const;
33 };
34 
35 struct CsiActive {
36  void toXml(QXmlStreamWriter *w) const;
37 };
38 
39 struct CsiInactive {
40  void toXml(QXmlStreamWriter *w) const;
41 };
42 
43 } // namespace QXmpp::Private
44 
45 #endif // STREAM_H
Definition: Algorithms.h:12