1 | // Copyright (C) 2016 Jolla Ltd. |
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 QCONTINUINGANIMATIONGROUPJOB_P_H |
5 | #define QCONTINUINGANIMATIONGROUPJOB_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 purely as an |
12 | // implementation detail. 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 "private/qanimationgroupjob_p.h" |
19 | |
20 | QT_REQUIRE_CONFIG(qml_animation); |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | class Q_QML_PRIVATE_EXPORT QContinuingAnimationGroupJob : public QAnimationGroupJob |
25 | { |
26 | Q_DISABLE_COPY(QContinuingAnimationGroupJob) |
27 | public: |
28 | QContinuingAnimationGroupJob(); |
29 | ~QContinuingAnimationGroupJob(); |
30 | |
31 | int duration() const override { return -1; } |
32 | |
33 | protected: |
34 | void updateCurrentTime(int currentTime) override; |
35 | void updateState(QAbstractAnimationJob::State newState, QAbstractAnimationJob::State oldState) override; |
36 | void updateDirection(QAbstractAnimationJob::Direction direction) override; |
37 | void uncontrolledAnimationFinished(QAbstractAnimationJob *animation) override; |
38 | void debugAnimation(QDebug d) const override; |
39 | }; |
40 | |
41 | QT_END_NAMESPACE |
42 | |
43 | #endif // QCONTINUINGANIMATIONGROUPJOB_P_H |
44 | |