summaryrefslogtreecommitdiffstats
path: root/src/mqtt/qmqttglobal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mqtt/qmqttglobal.h')
-rw-r--r--src/mqtt/qmqttglobal.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mqtt/qmqttglobal.h b/src/mqtt/qmqttglobal.h
index 1524947..dfe2971 100644
--- a/src/mqtt/qmqttglobal.h
+++ b/src/mqtt/qmqttglobal.h
@@ -50,6 +50,28 @@ enum class PayloadFormatIndicator : quint8 {
Unspecified = 0,
UTF8Encoded = 1
};
+
+enum class MessageStatus : quint8 {
+ Unknown = 0,
+ Published,
+ Acknowledged,
+ Received,
+ Released,
+ Completed
+};
+
+enum class ReasonCode : quint16 {
+ Success = 0,
+ NoMatchingSubscriber = 0x10,
+ UnspecifiedError = 0x80,
+ ImplementationSpecificError = 0x83,
+ NotAuthorized = 0x87,
+ InvalidTopicName = 0x90,
+ MessageIdInUse = 0x91,
+ MessageIdNotFound = 0x92,
+ QuotaExceeded = 0x97,
+ InvalidPayloadFormat = 0x99
+};
}
QT_END_NAMESPACE