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
15QT_BEGIN_NAMESPACE
16
17class QMqttAuthenticationPropertiesData;
18
19class Q_MQTT_EXPORT QMqttAuthenticationProperties
20{
21public:
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
39private:
40 QSharedDataPointer<QMqttAuthenticationPropertiesData> data;
41};
42
43QT_END_NAMESPACE
44
45#endif // QMQTTAUTHENTICATIONPROPERTIES_H
46

source code of qtmqtt/src/mqtt/qmqttauthenticationproperties.h