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