1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QMQTTSUBSCRIPTION_P_H
5#define QMQTTSUBSCRIPTION_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qmqttsubscription.h"
19#include <QtCore/private/qobject_p.h>
20
21QT_BEGIN_NAMESPACE
22
23class QMqttSubscriptionPrivate : public QObjectPrivate
24{
25 Q_DECLARE_PUBLIC(QMqttSubscription)
26public:
27 QMqttSubscriptionPrivate();
28 ~QMqttSubscriptionPrivate() override = default;
29 QMqttClient *m_client{nullptr};
30 QMqttTopicFilter m_topic;
31 QString m_reasonString;
32 QMqttUserProperties m_userProperties;
33 QString m_sharedSubscriptionName;
34 QMqttSubscription::SubscriptionState m_state{QMqttSubscription::Unsubscribed};
35 QMqtt::ReasonCode m_reasonCode{QMqtt::ReasonCode::Success};
36 quint8 m_qos{0};
37 bool m_shared{false};
38};
39
40QT_END_NAMESPACE
41
42#endif // QMQTTSUBSCRIPTION_P_H
43

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