1 | // Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QT3DCORE_QBACKENDNODE_P_H |
5 | #define QT3DCORE_QBACKENDNODE_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 for the convenience |
12 | // of other Qt classes. 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 <Qt3DCore/qbackendnode.h> |
19 | #include <Qt3DCore/qnodeid.h> |
20 | #include <Qt3DCore/private/qt3dcore_global_p.h> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | namespace Qt3DCore { |
25 | |
26 | class QNode; |
27 | |
28 | class Q_3DCORE_PRIVATE_EXPORT QBackendNodePrivate |
29 | { |
30 | public: |
31 | QBackendNodePrivate(QBackendNode::Mode mode); |
32 | virtual ~QBackendNodePrivate(); |
33 | |
34 | void setEnabled(bool enabled); |
35 | |
36 | static QBackendNodePrivate *get(QBackendNode *n); |
37 | |
38 | Q_DECLARE_PUBLIC(QBackendNode) |
39 | QBackendNode *q_ptr; |
40 | QBackendNode::Mode m_mode; |
41 | |
42 | QNodeId m_peerId; |
43 | bool m_enabled; |
44 | |
45 | virtual void addedToEntity(QNode *frontend); |
46 | virtual void removedFromEntity(QNode *frontend); |
47 | virtual void componentAdded(QNode *frontend); |
48 | virtual void componentRemoved(QNode *frontend); |
49 | |
50 | private: |
51 | Q_DISABLE_COPY(QBackendNodePrivate) |
52 | }; |
53 | |
54 | } // Qt3D |
55 | |
56 | QT_END_NAMESPACE |
57 | |
58 | #endif // QT3DCORE_QBACKENDNODE_P_H |
59 | |