QMqttAuthenticationProperties Class
La clase QMqttAuthenticationProperties representa las opciones de configuración durante el proceso de autenticación. Más...
| Cabecera: | #include <QMqttAuthenticationProperties> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Mqtt)target_link_libraries(mytarget PRIVATE Qt6::Mqtt) |
| qmake: | QT += mqtt |
Funciones públicas
| QByteArray | authenticationData() const |
| QString | authenticationMethod() const |
| QString | reason() const |
| void | setAuthenticationData(const QByteArray &adata) |
| void | setAuthenticationMethod(const QString &method) |
| void | setReason(const QString &r) |
| void | setUserProperties(const QMqttUserProperties &user) |
| QMqttUserProperties | userProperties() const |
Descripción detallada
Nota: Las propiedades de autenticación forman parte de la especificación MQTT 5.0 y no pueden utilizarse cuando se conecta con un nivel de protocolo inferior. Consulte QMqttClient::ProtocolVersion para obtener más información.
Documentación de las funciones de los miembros
QByteArray QMqttAuthenticationProperties::authenticationData() const
Devuelve los datos de autenticación
Véase también setAuthenticationData().
QString QMqttAuthenticationProperties::authenticationMethod() const
Devuelve el método de autenticación.
Véase también setAuthenticationMethod().
QString QMqttAuthenticationProperties::reason() const
Devuelve la cadena de motivo. La cadena de motivo especifica el motivo de la desconexión.
Véase también setReason().
void QMqttAuthenticationProperties::setAuthenticationData(const QByteArray &adata)
Establece los datos de autenticación en adata.
Los datos de autenticación sólo pueden utilizarse si se ha especificado un método de autenticación.
Véase también authenticationData() y authenticationMethod().
void QMqttAuthenticationProperties::setAuthenticationMethod(const QString &method)
Establece el método de autenticación en method.
Véase también authenticationMethod().
void QMqttAuthenticationProperties::setReason(const QString &r)
Establece la cadena de motivo en r.
Véase también reason().
void QMqttAuthenticationProperties::setUserProperties(const QMqttUserProperties &user)
Establece las propiedades del usuario en user.
Véase también userProperties().
QMqttUserProperties QMqttAuthenticationProperties::userProperties() const
Devuelve las propiedades del usuario.
Véase también setUserProperties().
© 2026 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.