1 | // Copyright (C) 2019 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 QT3DINPUT_INPUT_LOADPROXYDEVICEJOB_P_H |
4 | #define QT3DINPUT_INPUT_LOADPROXYDEVICEJOB_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 <Qt3DCore/qnodeid.h> |
19 | #include <private/qglobal_p.h> |
20 | |
21 | QT_BEGIN_NAMESPACE |
22 | |
23 | namespace Qt3DInput { |
24 | namespace Input { |
25 | |
26 | class InputHandler; |
27 | class LoadProxyDeviceJobPrivate; |
28 | |
29 | class Q_AUTOTEST_EXPORT LoadProxyDeviceJob : public Qt3DCore::QAspectJob |
30 | { |
31 | public: |
32 | LoadProxyDeviceJob(); |
33 | ~LoadProxyDeviceJob(); |
34 | |
35 | void setProxiesToLoad(const QList<Qt3DCore::QNodeId> &proxies); |
36 | void setInputHandler(InputHandler *handler); |
37 | |
38 | InputHandler *inputHandler() const; |
39 | QList<Qt3DCore::QNodeId> proxies() const; |
40 | |
41 | void run() final; |
42 | private: |
43 | Q_DECLARE_PRIVATE(LoadProxyDeviceJob) |
44 | |
45 | InputHandler *m_inputHandler; |
46 | QList<Qt3DCore::QNodeId> m_proxies; |
47 | }; |
48 | |
49 | typedef QSharedPointer<LoadProxyDeviceJob> LoadProxyDeviceJobPtr; |
50 | |
51 | } // namespace Input |
52 | } // namespace Qt3DInput |
53 | |
54 | QT_END_NAMESPACE |
55 | |
56 | #endif // QT3DINPUT_INPUT_LOADPROXYDEVICEJOB_P_H |
57 | |