1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QMQTTMESSAGE_P_H
6#define QMQTTMESSAGE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include "qmqttglobal.h"
20#include "qmqtttopicname.h"
21#include "qmqttpublishproperties.h"
22
23#include <QtCore/QSharedData>
24#include <QtCore/private/qglobal_p.h>
25
26QT_BEGIN_NAMESPACE
27
28class QMqttMessagePrivate : public QSharedData
29{
30public:
31 bool operator==(const QMqttMessagePrivate &other) const {
32 return m_topic == other.m_topic
33 && m_payload == other.m_payload
34 && m_id == other.m_id
35 && m_qos == other.m_qos
36 && m_duplicate == other.m_duplicate
37 && m_retain == other.m_retain;
38 }
39 QMqttTopicName m_topic;
40 QByteArray m_payload;
41 quint16 m_id{0};
42 quint8 m_qos{0};
43 bool m_duplicate{false};
44 bool m_retain{false};
45 QMqttPublishProperties m_publishProperties;
46};
47
48QT_END_NAMESPACE
49
50#endif // QMQTTMESSAGE_P_H
51

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