5 #ifndef QXMPPSTREAMERROR_P_H 6 #define QXMPPSTREAMERROR_P_H 8 #include "QXmppError.h" 9 #include "QXmppStreamError.h" 14 class QXmlStreamWriter;
19 struct StreamErrorElement {
24 bool operator==(
const SeeOtherHost &o)
const {
return host == o.host && port == o.port; }
27 using Condition = std::variant<StreamError, SeeOtherHost>;
30 static std::variant<StreamErrorElement, QXmppError> fromDom(
const QDomElement &);
35 bool operator==(
const StreamErrorElement &o)
const {
return condition == o.condition && text == o.text; }
40 #endif // QXMPPSTREAMERROR_P_H StreamError
Definition: QXmppStreamError.h:15
Definition: Algorithms.h:12