1 | // Copyright (C) 2018 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QMQTTMESSAGE_P_H |
5 | #define QMQTTMESSAGE_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 "qmqtttopicname.h" |
20 | #include "qmqttpublishproperties.h" |
21 | |
22 | #include <QtCore/QSharedData> |
23 | #include <QtCore/private/qglobal_p.h> |
24 | |
25 | QT_BEGIN_NAMESPACE |
26 | |
27 | class QMqttMessagePrivate : public QSharedData |
28 | { |
29 | public: |
30 | bool operator==(const QMqttMessagePrivate &other) const { |
31 | return m_topic == other.m_topic |
32 | && m_payload == other.m_payload |
33 | && m_id == other.m_id |
34 | && m_qos == other.m_qos |
35 | && m_duplicate == other.m_duplicate |
36 | && m_retain == other.m_retain; |
37 | } |
38 | QMqttTopicName m_topic; |
39 | QByteArray m_payload; |
40 | quint16 m_id{0}; |
41 | quint8 m_qos{0}; |
42 | bool m_duplicate{false}; |
43 | bool m_retain{false}; |
44 | QMqttPublishProperties m_publishProperties; |
45 | }; |
46 | |
47 | QT_END_NAMESPACE |
48 | |
49 | #endif // QMQTTMESSAGE_P_H |
50 |