5#ifndef QXMPPSTREAMERROR_P_H
6#define QXMPPSTREAMERROR_P_H
9#include "QXmppStreamError.h"
14class QXmlStreamWriter;
16namespace QXmpp::Private {
19struct 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; }
StreamError
Definition: QXmppStreamError.h:15