1 | // Copyright (C) 2018 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QMQTTPUBLISHPROPERTIES_P_H |
5 | #define QMQTTPUBLISHPROPERTIES_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 "qmqttglobal.h" |
19 | #include "qmqttpublishproperties.h" |
20 | |
21 | #include <QtCore/QSharedData> |
22 | #include <QtCore/private/qglobal_p.h> |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | class QMqttPublishPropertiesData : public QSharedData |
27 | { |
28 | public: |
29 | QString responseTopic; |
30 | QString contentType; |
31 | QByteArray correlationData; |
32 | quint32 messageExpiry{0}; |
33 | QList<quint32> subscriptionIdentifier; |
34 | QMqttPublishProperties::PublishPropertyDetails details{QMqttPublishProperties::None}; |
35 | quint16 topicAlias{0}; |
36 | QMqtt::PayloadFormatIndicator payloadIndicator{QMqtt::PayloadFormatIndicator::Unspecified}; |
37 | QMqttUserProperties userProperties; |
38 | }; |
39 | |
40 | class QMqttMessageStatusPropertiesData : public QSharedData |
41 | { |
42 | public: |
43 | QMqttUserProperties userProperties; |
44 | QString reasonString; |
45 | QMqtt::ReasonCode reasonCode{QMqtt::ReasonCode::Success}; |
46 | }; |
47 | |
48 | QT_END_NAMESPACE |
49 | |
50 | #endif // QMQTTPUBLISHPROPERTIES_P_H |
51 |