diff options
Diffstat (limited to 'src/mqtt/qmqttsubscription.cpp')
-rw-r--r-- | src/mqtt/qmqttsubscription.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/mqtt/qmqttsubscription.cpp b/src/mqtt/qmqttsubscription.cpp index 74e9d21..35f3e52 100644 --- a/src/mqtt/qmqttsubscription.cpp +++ b/src/mqtt/qmqttsubscription.cpp @@ -89,14 +89,22 @@ QT_BEGIN_NAMESPACE /*! \property QMqttSubscription::reason \since 5.12 - \brief This property holds the reason string after subscription has - been established. + \brief This property holds the reason string for the subscription. A reason string is used by the server to provide additional information about the subscription. It is optional for the server to send it. */ /*! + \property QMqttSubscription::reasonCode + \since 5.12 + \brief This property holds the reason code for the subscription. + + The reason code specifies the error type if a subscription has failed, + or the level of QoS for success. +*/ + +/*! \property QMqttSubscription::shared \since 5.12 \brief This property holds whether the subscription is shared. @@ -148,6 +156,12 @@ QString QMqttSubscription::reason() const return d->m_reasonString; } +QMqtt::ReasonCode QMqttSubscription::reasonCode() const +{ + Q_D(const QMqttSubscription); + return d->m_reasonCode; +} + /*! \since 5.12 |