8#include "QXmppConstants_p.h"
16class QXmlStreamReader;
17namespace QXmpp::Private {
21namespace QXmpp::Private {
24 static StreamOpen fromXml(QXmlStreamReader &reader);
25 void toXml(XmlWriter &)
const;
34struct StarttlsRequest {
35 static constexpr std::tuple XmlTag = { u
"starttls", ns_tls };
36 static std::optional<StarttlsRequest> fromDom(
const QDomElement &);
37 void toXml(XmlWriter &)
const;
40struct StarttlsProceed {
41 static constexpr std::tuple XmlTag = { u
"proceed", ns_tls };
42 static std::optional<StarttlsProceed> fromDom(
const QDomElement &);
43 void toXml(XmlWriter &)
const;
50 static constexpr std::tuple XmlTag = { u
"bind", ns_bind };
51 static std::optional<BindElement> fromDom(
const QDomElement &el);
52 void toXml(XmlWriter &w)
const;
56 static constexpr std::tuple XmlTag = { u
"active", ns_csi };
57 void toXml(XmlWriter &)
const;
61 static constexpr std::tuple XmlTag = { u
"inactive", ns_csi };
62 void toXml(XmlWriter &)
const;
67Q_DECLARE_METATYPE(QXmpp::Private::StreamOpen)