1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QTQMQTTGLOBAL_H
6#define QTQMQTTGLOBAL_H
7
8#include <QtCore/qglobal.h>
9#include <QtMqtt/qtmqttexports.h>
10
11QT_BEGIN_NAMESPACE
12
13namespace QMqtt
14{
15enum class PayloadFormatIndicator : quint8 {
16 Unspecified = 0,
17 UTF8Encoded = 1
18};
19
20enum class MessageStatus : quint8 {
21 Unknown = 0,
22 Published,
23 Acknowledged,
24 Received,
25 Released,
26 Completed
27};
28
29enum class ReasonCode : quint8 {
30 Success = 0,
31 SubscriptionQoSLevel0 = 0,
32 SubscriptionQoSLevel1 = 0x01,
33 SubscriptionQoSLevel2 = 0x02,
34 NoMatchingSubscriber = 0x10,
35 NoSubscriptionExisted = 0x11,
36 ContinueAuthentication = 0x18,
37 ReAuthenticate = 0x19,
38 UnspecifiedError = 0x80,
39 MalformedPacket = 0x81,
40 ProtocolError = 0x82,
41 ImplementationSpecificError = 0x83,
42 UnsupportedProtocolVersion = 0x84,
43 InvalidClientId = 0x85,
44 InvalidUserNameOrPassword = 0x86,
45 NotAuthorized = 0x87,
46 ServerNotAvailable = 0x88,
47 ServerBusy = 0x89,
48 ClientBanned = 0x8A,
49 InvalidAuthenticationMethod = 0x8C,
50 InvalidTopicFilter = 0x8F,
51 InvalidTopicName = 0x90,
52 MessageIdInUse = 0x91,
53 MessageIdNotFound = 0x92,
54 PacketTooLarge = 0x95,
55 QuotaExceeded = 0x97,
56 InvalidPayloadFormat = 0x99,
57 RetainNotSupported = 0x9A,
58 QoSNotSupported = 0x9B,
59 UseAnotherServer = 0x9C,
60 ServerMoved = 0x9D,
61 SharedSubscriptionsNotSupported = 0x9E,
62 ExceededConnectionRate = 0x9F,
63 SubscriptionIdsNotSupported = 0xA1,
64 WildCardSubscriptionsNotSupported = 0xA2
65};
66}
67QT_END_NAMESPACE
68
69#endif //QTQMQTTGLOBAL_H
70

source code of qtmqtt/src/mqtt/qmqttglobal.h