QMqttStringPair Class

The QMqttStringPair class represents the string pair data type of the MQTT 5.0 standard. More...

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

Public Functions

QMqttStringPair()
QMqttStringPair(const QString &name, const QString &value)
QMqttStringPair(const QMqttStringPair &)
~QMqttStringPair()
QString name() const
void setName(const QString &n)
void setValue(const QString &v)
QString value() const
bool operator!=(const QMqttStringPair &other) const
QMqttStringPair &operator=(const QMqttStringPair &)
bool operator==(const QMqttStringPair &other) const

Detailed Description

The QMqttStringPair class represents the string pair data type of the MQTT 5.0 standard.

This data type is used to hold a name-value pair.

Member Type Documentation

Property Documentation

Member Function Documentation

QMqttStringPair::QMqttStringPair()

Default constructs an instance of QMqttStringPair.

QMqttStringPair::QMqttStringPair(const QString &name, const QString &value)

Default constructs an instance of QMqttStringPair.

QMqttStringPair::QMqttStringPair(const QMqttStringPair &)

Default constructs an instance of QMqttStringPair.

QMqttStringPair::~QMqttStringPair()

Destroys the instance of QMqttStringPair.

QString QMqttStringPair::name() const

Returns the name of the string pair.

See also setName().

void QMqttStringPair::setName(const QString &n)

Sets the name to n.

See also name().

void QMqttStringPair::setValue(const QString &v)

Sets the value to v.

See also value().

QString QMqttStringPair::value() const

Returns the value of the string pair.

See also setValue().

bool QMqttStringPair::operator!=(const QMqttStringPair &other) const

Returns true if this instance does not match other.

QMqttStringPair &QMqttStringPair::operator=(const QMqttStringPair &)

Copy-assignment operator.

bool QMqttStringPair::operator==(const QMqttStringPair &other) const

Returns true if this instance matches other.

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.