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 QT3DCORE_QSCHEDULER_P_H
4#define QT3DCORE_QSCHEDULER_P_H
5
6#include <Qt3DCore/qt3dcore_global.h>
7#include <QtCore/QObject>
8#include <private/qglobal_p.h>
9
10//
11// W A R N I N G
12// -------------
13//
14// This file is not part of the Qt API. It exists for the convenience
15// of other Qt classes. This header file may change from version to
16// version without notice, or even be removed.
17//
18// We mean it.
19//
20
21QT_BEGIN_NAMESPACE
22
23namespace Qt3DCore {
24
25class QAspectManager;
26
27class Q_AUTOTEST_EXPORT QScheduler : public QObject
28{
29 Q_OBJECT
30public:
31 explicit QScheduler(QObject *parent = nullptr);
32 ~QScheduler();
33
34 void setAspectManager(QAspectManager *aspectManager);
35 QAspectManager *aspectManager() const;
36
37 virtual int scheduleAndWaitForFrameAspectJobs(qint64 time, bool dumpJobs);
38
39private:
40 QAspectManager *m_aspectManager;
41};
42
43} // namespace Qt3DCore
44
45QT_END_NAMESPACE
46
47#endif // QT3DCORE_QSCHEDULER_P_H
48

source code of qt3d/src/core/qscheduler_p.h