1 | // Copyright (C) 2017 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 QT3DANIMATION_ANIMATION_FINDRUNNINGCLIPANIMATORSJOB_P_H |
5 | #define QT3DANIMATION_ANIMATION_FINDRUNNINGCLIPANIMATORSJOB_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/qaspectjob.h> |
19 | #include <Qt3DAnimation/private/handle_types_p.h> |
20 | #include <QtCore/qlist.h> |
21 | |
22 | #if defined(QT_BUILD_INTERNAL) |
23 | class tst_FindRunningClipAnimatorsJob; |
24 | #endif |
25 | |
26 | QT_BEGIN_NAMESPACE |
27 | |
28 | namespace Qt3DAnimation { |
29 | namespace Animation { |
30 | |
31 | class Handler; |
32 | |
33 | class Q_AUTOTEST_EXPORT FindRunningClipAnimatorsJob : public Qt3DCore::QAspectJob |
34 | { |
35 | public: |
36 | FindRunningClipAnimatorsJob(); |
37 | |
38 | void setHandler(Handler *handler) { m_handler = handler; } |
39 | Handler *handler() const { return m_handler; } |
40 | |
41 | void setDirtyClipAnimators(const QVector<HClipAnimator> &animationClipHandles); |
42 | |
43 | protected: |
44 | void run() override; |
45 | |
46 | private: |
47 | QVector<HClipAnimator> m_clipAnimatorHandles; |
48 | Handler *m_handler; |
49 | |
50 | #if defined(QT_BUILD_INTERNAL) |
51 | friend class ::tst_FindRunningClipAnimatorsJob; |
52 | #endif |
53 | }; |
54 | |
55 | } // namespace Animation |
56 | } // namespace Qt3DAnimation |
57 | |
58 | QT_END_NAMESPACE |
59 | |
60 | #endif // QT3DANIMATION_ANIMATION_FINDRUNNINGCLIPANIMATORSJOB_P_H |
61 | |