1// Copyright (C) 2020 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#ifndef QT3DLOGIC_LOGIC_CALLBACKJOB_P_H
4#define QT3DLOGIC_LOGIC_CALLBACKJOB_P_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists for the convenience
11// of other Qt classes. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <Qt3DCore/qaspectjob.h>
18#include <private/qglobal_p.h>
19
20QT_BEGIN_NAMESPACE
21
22namespace Qt3DLogic {
23namespace Logic {
24
25class Manager;
26
27class CallbackJob : public Qt3DCore::QAspectJob
28{
29public:
30 CallbackJob();
31 void setManager(Manager *manager);
32
33 void run() override;
34 bool isRequired() override;
35 void postFrame(Qt3DCore::QAspectEngine *aspectEngine) override;
36
37private:
38 Manager *m_logicManager;
39};
40
41} // namespace Logic
42} // namespace Qt3DLogic
43
44QT_END_NAMESPACE
45
46#endif // QT3DLOGIC_LOGIC_CALLBACKJOB_P_H
47

source code of qt3d/src/logic/callbackjob_p.h