QXmpp
Version: 1.15.1
Toggle main menu visibility
Loading...
Searching...
No Matches
QXmppStanza_p.h
1
// SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
2
//
3
// SPDX-License-Identifier: LGPL-2.1-or-later
4
5
#ifndef QXMPPSTANZA_P_H
6
#define QXMPPSTANZA_P_H
7
8
#include "QXmppStanza.h"
9
10
#include "Enums.h"
11
12
//
13
// W A R N I N G
14
// -------------
15
//
16
// This file is not part of the QXmpp API. It exists for the convenience
17
// of the QXmppStanza class.
18
//
19
// This header file may change from version to version without notice,
20
// or even be removed.
21
//
22
// We mean it.
23
//
24
25
namespace
QXmpp::Private {
26
27
template
<>
28
struct
Enums::Data<QXmppStanza::Error::Condition> {
29
using
enum
QXmppStanza::Error::Condition
;
30
QT_WARNING_PUSH
31
QT_WARNING_DISABLE_DEPRECATED
32
static
constexpr
auto
Values = makeValues<QXmppStanza::Error::Condition>({
33
{ NoCondition, {} },
34
{ BadRequest, u
"bad-request"
},
35
{ Conflict, u
"conflict"
},
36
{ FeatureNotImplemented, u
"feature-not-implemented"
},
37
{ Forbidden, u
"forbidden"
},
38
{ Gone, u
"gone"
},
39
{ InternalServerError, u
"internal-server-error"
},
40
{ ItemNotFound, u
"item-not-found"
},
41
{ JidMalformed, u
"jid-malformed"
},
42
{ NotAcceptable, u
"not-acceptable"
},
43
{ NotAllowed, u
"not-allowed"
},
44
{ NotAuthorized, u
"not-authorized"
},
45
{ PaymentRequired, u
"payment-required"
},
46
{ RecipientUnavailable, u
"recipient-unavailable"
},
47
{ Redirect, u
"redirect"
},
48
{ RegistrationRequired, u
"registration-required"
},
49
{ RemoteServerNotFound, u
"remote-server-not-found"
},
50
{ RemoteServerTimeout, u
"remote-server-timeout"
},
51
{ ResourceConstraint, u
"resource-constraint"
},
52
{ ServiceUnavailable, u
"service-unavailable"
},
53
{ SubscriptionRequired, u
"subscription-required"
},
54
{ UndefinedCondition, u
"undefined-condition"
},
55
{ UnexpectedRequest, u
"unexpected-request"
},
56
{ PolicyViolation, u
"policy-violation"
},
57
});
58
QT_WARNING_POP
59
};
60
61
template
<>
62
struct
Enums::Data<QXmppStanza::Error::Type> {
63
using
enum
QXmppStanza::Error::Type
;
64
static
constexpr
auto
NullValue = NoType;
65
static
constexpr
auto
Values = makeValues<QXmppStanza::Error::Type>({
66
{ NoType, {} },
67
{ Cancel, u
"cancel"
},
68
{ Continue, u
"continue"
},
69
{ Modify, u
"modify"
},
70
{ Auth, u
"auth"
},
71
{ Wait, u
"wait"
},
72
});
73
};
74
75
}
// namespace QXmpp::Private
76
77
#endif
QXmppStanza::Error::Type
Type
Definition
QXmppStanza.h:118
QXmppStanza::Error::Condition
Condition
A detailed condition of the error.
Definition
QXmppStanza.h:128
src
base
QXmppStanza_p.h
Generated by
1.17.0