QMqttStringPair Class

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

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

公共函数

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

详细描述

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

成员函数文档编制

QString QMqttStringPair:: name () const

Returns the name of the string pair.

另请参阅 setName ().

void QMqttStringPair:: setName (const QString & n )

Sets the name to n .

另请参阅 name ().

void QMqttStringPair:: setValue (const QString & v )

Sets the value to v .

另请参阅 value ().

QString QMqttStringPair:: value () const

Returns the value of the string pair.

另请参阅 setValue ().

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

返回 true if this instance does not match other .

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

返回 true if this instance matches other .