The QMqttStringPair class represents the string pair data type of the MQTT 5.0 standard. 更多...
头: | #include <QMqttStringPair> |
qmake: | QT += mqtt |
Since: | Qt 5.12 |
该类在 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.
Returns the name of the string pair.
另请参阅 setName ().
Sets the name to n .
另请参阅 name ().
Sets the value to v .
另请参阅 value ().
Returns the value of the string pair.
另请参阅 setValue ().
返回
true
if this instance does not match
other
.
返回
true
if this instance matches
other
.