1 | // Copyright (C) 2017 The Qt Company 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 QT3DANIMATION_QANIMATIONCALLBACK_H |
5 | #define QT3DANIMATION_QANIMATIONCALLBACK_H |
6 | |
7 | #include <Qt3DAnimation/qt3danimation_global.h> |
8 | #include <Qt3DCore/qnode.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | namespace Qt3DAnimation { |
13 | |
14 | class Q_3DANIMATIONSHARED_EXPORT QAnimationCallback |
15 | { |
16 | public: |
17 | enum Flag { |
18 | OnOwningThread = 0x0, |
19 | OnThreadPool = 0x01 |
20 | }; |
21 | Q_DECLARE_FLAGS(Flags, Flag) |
22 | |
23 | virtual ~QAnimationCallback(); |
24 | |
25 | virtual void valueChanged(const QVariant &value) = 0; |
26 | }; |
27 | |
28 | } // namespace Qt3DAnimation |
29 | |
30 | Q_DECLARE_OPERATORS_FOR_FLAGS(Qt3DAnimation::QAnimationCallback::Flags) |
31 | |
32 | QT_END_NAMESPACE |
33 | |
34 | #endif // QT3DANIMATION_QANIMATIONCALLBACK_H |
35 | |