| 1 | // Copyright (C) 2018 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | // Qt-Security score:significant reason:default |
| 4 | |
| 5 | #ifndef QMQTTAUTHENTICATIONPROPERTIES_H |
| 6 | #define QMQTTAUTHENTICATIONPROPERTIES_H |
| 7 | |
| 8 | #include <QtMqtt/qmqttglobal.h> |
| 9 | #include <QtMqtt/qmqtttype.h> |
| 10 | |
| 11 | #include <QtCore/QHash> |
| 12 | #include <QtCore/QObject> |
| 13 | #include <QtCore/QSharedDataPointer> |
| 14 | #include <QtCore/QString> |
| 15 | |
| 16 | QT_BEGIN_NAMESPACE |
| 17 | |
| 18 | class QMqttAuthenticationPropertiesData; |
| 19 | |
| 20 | class Q_MQTT_EXPORT QMqttAuthenticationProperties |
| 21 | { |
| 22 | public: |
| 23 | QMqttAuthenticationProperties(); |
| 24 | QMqttAuthenticationProperties(const QMqttAuthenticationProperties &); |
| 25 | QMqttAuthenticationProperties &operator=(const QMqttAuthenticationProperties &); |
| 26 | ~QMqttAuthenticationProperties(); |
| 27 | |
| 28 | QString authenticationMethod() const; |
| 29 | void setAuthenticationMethod(const QString &method); |
| 30 | |
| 31 | QByteArray authenticationData() const; |
| 32 | void setAuthenticationData(const QByteArray &adata); |
| 33 | |
| 34 | QString reason() const; |
| 35 | void setReason(const QString &r); |
| 36 | |
| 37 | QMqttUserProperties userProperties() const; |
| 38 | void setUserProperties(const QMqttUserProperties &user); |
| 39 | |
| 40 | private: |
| 41 | QSharedDataPointer<QMqttAuthenticationPropertiesData> data; |
| 42 | }; |
| 43 | |
| 44 | QT_END_NAMESPACE |
| 45 | |
| 46 | #endif // QMQTTAUTHENTICATIONPROPERTIES_H |
| 47 | |