QMqttSubscriptionProperties Class

The QMqttSubscriptionProperties class represents configuration options a QMqttClient can pass to the server when subscribing to a topic filter. More...

Header: #include <QMqttSubscriptionProperties>
qmake: QT += mqtt
Since: Qt 5.12

Public Functions

~QMqttSubscriptionProperties()
void setSubscriptionIdentifier(quint32 id)
void setUserProperties(const QMqttUserProperties &user)
quint32 subscriptionIdentifier() const
QMqttUserProperties userProperties() const
QMqttSubscriptionProperties &operator=(const QMqttSubscriptionProperties &)

Detailed Description

The QMqttSubscriptionProperties class represents configuration options a QMqttClient can pass to the server when subscribing to a topic filter.

Note: Subscription 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.

Member Type Documentation

Property Documentation

Member Function Documentation

QMqttSubscriptionProperties::~QMqttSubscriptionProperties()

Destroys the instance of QMqttSubscriptionProperties.

void QMqttSubscriptionProperties::setSubscriptionIdentifier(quint32 id)

Sets the subscription identifier to id.

See also subscriptionIdentifier().

void QMqttSubscriptionProperties::setUserProperties(const QMqttUserProperties &user)

Sets the user properties to user.

See also userProperties().

quint32 QMqttSubscriptionProperties::subscriptionIdentifier() const

Returns the subscription identifier used to describe this subscription.

See also setSubscriptionIdentifier().

QMqttUserProperties QMqttSubscriptionProperties::userProperties() const

Returns the user specified properties.

See also setUserProperties().

QMqttSubscriptionProperties &QMqttSubscriptionProperties::operator=(const QMqttSubscriptionProperties &)

Copy-assignment operator.

Member Variable Documentation

Related Non-Members

Macro Documentation

© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.