| 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 QOSCMESSAGE_P_H |
| 6 | #define QOSCMESSAGE_P_H |
| 7 | |
| 8 | #include <QtCore/QByteArray> |
| 9 | #include <QtCore/QVariant> |
| 10 | #include <QtCore/QList> |
| 11 | |
| 12 | |
| 13 | QT_BEGIN_NAMESPACE |
| 14 | |
| 15 | class QOscMessage |
| 16 | { |
| 17 | QOscMessage(); // for QList, don't use |
| 18 | friend class QList<QOscMessage>; |
| 19 | public: |
| 20 | explicit QOscMessage(const QByteArray &data); |
| 21 | |
| 22 | bool isValid() const { return m_isValid; } |
| 23 | |
| 24 | QByteArray addressPattern() const { return m_addressPattern; } |
| 25 | QVariantList arguments() const { return m_arguments; } |
| 26 | |
| 27 | private: |
| 28 | bool m_isValid; |
| 29 | QByteArray m_addressPattern; |
| 30 | QVariantList m_arguments; |
| 31 | }; |
| 32 | Q_DECLARE_TYPEINFO(QOscMessage, Q_RELOCATABLE_TYPE); |
| 33 | |
| 34 | QT_END_NAMESPACE |
| 35 | |
| 36 | #endif |
| 37 |
