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