1// Copyright (C) 2014 Robin Burchell <robin.burchell@viroteck.net>
2// Copyright (C) 2016 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QOSCBUNDLE_P_H
6#define QOSCBUNDLE_P_H
7
8#include "qoscmessage_p.h"
9
10#include <QtCore/QList>
11
12QT_BEGIN_NAMESPACE
13
14class QByteArray;
15
16class QOscBundle
17{
18 QOscBundle(); // for QList, don't use
19 friend class QList<QOscBundle>;
20public:
21 explicit QOscBundle(const QByteArray &data);
22
23 bool isValid() const { return m_isValid; }
24 QList<QOscBundle> bundles() const { return m_bundles; }
25 QList<QOscMessage> messages() const { return m_messages; }
26
27private:
28 bool m_isValid;
29 bool m_immediate;
30 quint32 m_timeEpoch;
31 quint32 m_timePico;
32 QList<QOscBundle> m_bundles;
33 QList<QOscMessage> m_messages;
34};
35Q_DECLARE_TYPEINFO(QOscBundle, Q_RELOCATABLE_TYPE);
36
37QT_END_NAMESPACE
38
39#endif // QOSCBUNDLE_P_H
40

source code of qtbase/src/plugins/generic/tuiotouch/qoscbundle_p.h