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 QT3DINPUT_INPUT_ASSIGNKEYBOARDFOCUSJOB_P_H |
4 | #define QT3DINPUT_INPUT_ASSIGNKEYBOARDFOCUSJOB_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 <Qt3DInput/qkeyboarddevice.h> |
18 | #include <Qt3DCore/qaspectjob.h> |
19 | #include <Qt3DCore/qnodeid.h> |
20 | #include <private/qglobal_p.h> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | namespace Qt3DInput { |
25 | namespace Input { |
26 | |
27 | class InputHandler; |
28 | class AssignKeyboardFocusJobPrivate; |
29 | |
30 | class AssignKeyboardFocusJob : public Qt3DCore::QAspectJob |
31 | { |
32 | public: |
33 | explicit AssignKeyboardFocusJob(Qt3DCore::QNodeId keyboardDevice); |
34 | void setInputHandler(InputHandler *handler); |
35 | void run() override; |
36 | |
37 | private: |
38 | Q_DECLARE_PRIVATE(AssignKeyboardFocusJob) |
39 | |
40 | InputHandler *m_inputHandler; |
41 | const Qt3DCore::QNodeId m_keyboardDevice; |
42 | }; |
43 | |
44 | } // namespace Input |
45 | } // namespace Qt3DInput |
46 | |
47 | QT_END_NAMESPACE |
48 | |
49 | #endif // QT3DINPUT_INPUT_ASSIGNKEYBOARDFOCUSJOB_P_H |
50 | |