summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@qt.io>2019-11-22 15:01:56 +0100
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2019-11-22 15:01:56 +0100
commit37ead173bfabc8b930a2a0571ad03a15e86cf7bb (patch)
tree182405610eff442298fc5fbc7b130082cc63a7f3
parent1eadebaf14a87d6bb2ca4705838413614b2b68a4 (diff)
parent0e360b6b6e71ec871782306ad13e4fc58ab6f852 (diff)
-rw-r--r--src/mqtt/qmqttpublishproperties.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/mqtt/qmqttpublishproperties.cpp b/src/mqtt/qmqttpublishproperties.cpp
index 77e2118..b3372b1 100644
--- a/src/mqtt/qmqttpublishproperties.cpp
+++ b/src/mqtt/qmqttpublishproperties.cpp
@@ -269,6 +269,24 @@ void QMqttPublishProperties::setContentType(const QString &type)
data->contentType = type;
}
+/*!
+ \class QMqttMessageStatusProperties
+
+ \inmodule QtMqtt
+ \since 5.12
+
+ \brief The QMqttMessageStatusProperties class represents additional
+ information provided by the server during message delivery.
+
+ Depending on the QoS level of a message being sent by QMqttClient::publish(),
+ a server reports the state of delivery. Additionally to the QMqtt::MessageStatus,
+ complementary information might be included by the server. These are exposed to
+ users via QMqttMessageStatusProperties.
+
+ \note Message status properties are part of the MQTT 5.0 specification and
+ cannot be used when connecting with a lower protocol level. See
+ QMqttClient::ProtocolVersion for more information.
+*/
QMqttMessageStatusProperties::QMqttMessageStatusProperties() : data(new QMqttMessageStatusPropertiesData)
{
@@ -281,16 +299,25 @@ QMqttMessageStatusProperties &QMqttMessageStatusProperties::operator=(const QMqt
return *this;
}
+/*!
+ Returns the reason code of a failed message delivery.
+*/
QMqtt::ReasonCode QMqttMessageStatusProperties::reasonCode() const
{
return data->reasonCode;
}
+/*!
+ Returns the reason string of a failed message delivery.
+*/
QString QMqttMessageStatusProperties::reason() const
{
return data->reasonString;
}
+/*!
+ Returns properties specified in conjunction with a message.
+*/
QMqttUserProperties QMqttMessageStatusProperties::userProperties() const
{
return data->userProperties;