1 | // Copyright (C) 2015 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 QT3DLOGIC_QLOGICASPECT_P_H |
5 | #define QT3DLOGIC_QLOGICASPECT_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 <QtCore/qsharedpointer.h> |
19 | |
20 | #include <Qt3DCore/private/qabstractaspect_p.h> |
21 | #include <Qt3DLogic/private/callbackjob_p.h> |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | namespace Qt3DLogic { |
26 | |
27 | namespace Logic { |
28 | class Executor; |
29 | class Manager; |
30 | } |
31 | |
32 | class QLogicAspectPrivate : public Qt3DCore::QAbstractAspectPrivate |
33 | { |
34 | QLogicAspectPrivate(); |
35 | |
36 | Q_DECLARE_PUBLIC(QLogicAspect) |
37 | |
38 | void onEngineAboutToShutdown() override; |
39 | void registerBackendTypes(); |
40 | |
41 | qint64 m_time; |
42 | QScopedPointer<Logic::Manager> m_manager; |
43 | QScopedPointer<Logic::Executor> m_executor; |
44 | QSharedPointer<Logic::CallbackJob> m_callbackJob; |
45 | }; |
46 | |
47 | } // namespace Qt3DLogic |
48 | |
49 | QT_END_NAMESPACE |
50 | |
51 | #endif // QT3DLOGIC_QLOGICASPECT_P_H |
52 | |
53 | |