QMqttAuthenticationProperties Class
La classe QMqttAuthenticationProperties rappresenta le opzioni di configurazione durante il processo di autenticazione. Per saperne di più...
| Intestazione: | #include <QMqttAuthenticationProperties> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Mqtt) target_link_libraries(mytarget PRIVATE Qt6::Mqtt) |
| qmake: | QT += mqtt |
Funzioni pubbliche
| 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 |
Descrizione dettagliata
Nota: le proprietàdi autenticazione fanno parte della specifica MQTT 5.0 e non possono essere utilizzate quando ci si connette con un livello di protocollo inferiore. Per ulteriori informazioni, consultare QMqttClient::ProtocolVersion.
Documentazione delle funzioni membro
QByteArray QMqttAuthenticationProperties::authenticationData() const
Restituisce i dati di autenticazione
Vedi anche setAuthenticationData().
QString QMqttAuthenticationProperties::authenticationMethod() const
Restituisce il metodo di autenticazione.
Vedi anche setAuthenticationMethod().
QString QMqttAuthenticationProperties::reason() const
Restituisce la stringa che indica il motivo. La stringa specifica il motivo della disconnessione.
Vedi anche setReason().
void QMqttAuthenticationProperties::setAuthenticationData(const QByteArray &adata)
Imposta i dati di autenticazione su adata.
I dati di autenticazione possono essere utilizzati solo se è stato specificato un metodo di autenticazione.
Vedi anche authenticationData() e authenticationMethod().
void QMqttAuthenticationProperties::setAuthenticationMethod(const QString &method)
Imposta il metodo di autenticazione su method.
Vedi anche authenticationMethod().
void QMqttAuthenticationProperties::setReason(const QString &r)
Imposta la stringa di motivazione su “ r ”.
Vedi anche reason().
void QMqttAuthenticationProperties::setUserProperties(const QMqttUserProperties &user)
Imposta le proprietà dell'utente su user.
Vedi anche userProperties().
QMqttUserProperties QMqttAuthenticationProperties::userProperties() const
Restituisce le proprietà dell'utente.
Vedi anche 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.