From f8ca81e3bef55fdf4737cf15c0444b7d1ddd68d6 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Tue, 31 Mar 2020 18:03:52 +0200 Subject: QXmppStanza: Add PolicyViolation error condition The error condition as stanza error was added in RFC6120. --- src/base/QXmppStanza.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/base/QXmppStanza.h') diff --git a/src/base/QXmppStanza.h b/src/base/QXmppStanza.h index 43ae4375..a25a138e 100644 --- a/src/base/QXmppStanza.h +++ b/src/base/QXmppStanza.h @@ -143,7 +143,8 @@ public: ServiceUnavailable, ///< The service is currently not available. SubscriptionRequired, ///< The requester needs to subscribe first. UndefinedCondition, ///< An undefined condition was hit. - UnexpectedRequest ///< The request was unexpected. + UnexpectedRequest, ///< The request was unexpected. + PolicyViolation ///< The entity has violated a local server policy. \since QXmpp 1.3 }; Error(); @@ -234,4 +235,7 @@ private: static uint s_uniqeIdNo; }; +Q_DECLARE_METATYPE(QXmppStanza::Error::Type); +Q_DECLARE_METATYPE(QXmppStanza::Error::Condition); + #endif // QXMPPSTANZA_H -- cgit v1.2.3