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
21QT_BEGIN_NAMESPACE
22
23namespace Qt3DInput {
24namespace Input {
25
26class InputHandler;
27class LoadProxyDeviceJobPrivate;
28
29class Q_AUTOTEST_EXPORT LoadProxyDeviceJob : public Qt3DCore::QAspectJob
30{
31public:
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;
42private:
43 Q_DECLARE_PRIVATE(LoadProxyDeviceJob)
44
45 InputHandler *m_inputHandler;
46 QList<Qt3DCore::QNodeId> m_proxies;
47};
48
49typedef QSharedPointer<LoadProxyDeviceJob> LoadProxyDeviceJobPtr;
50
51} // namespace Input
52} // namespace Qt3DInput
53
54QT_END_NAMESPACE
55
56#endif // QT3DINPUT_INPUT_LOADPROXYDEVICEJOB_P_H
57

source code of qt3d/src/input/backend/loadproxydevicejob_p.h