diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2015-11-25 14:56:11 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2015-11-28 08:14:12 +0000 |
commit | 4519e46f38df25dd61eb566ab2080896e775a531 (patch) | |
tree | ea2c714f4d7341ecdc293380ff179f6995b9d795 /src/input/backend/keyeventdispatcherjob_p.h | |
parent | c6d56b613164e506562b6a537aef499ffb4fb649 (diff) |
Reorganize Input aspect sources into backend/frontend
Change-Id: I7cb9137a6f108d557e3028dc0b72a0053d3f01d4
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/input/backend/keyeventdispatcherjob_p.h')
-rw-r--r-- | src/input/backend/keyeventdispatcherjob_p.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/src/input/backend/keyeventdispatcherjob_p.h b/src/input/backend/keyeventdispatcherjob_p.h new file mode 100644 index 000000000..1ced85881 --- /dev/null +++ b/src/input/backend/keyeventdispatcherjob_p.h @@ -0,0 +1,80 @@ +/**************************************************************************** +** +** Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). +** Contact: http://www.qt-project.org/legal +** +** This file is part of the Qt3D module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL3$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see http://www.qt.io/terms-conditions. For further +** information use the contact form at http://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPLv3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or later as published by the Free +** Software Foundation and appearing in the file LICENSE.GPL included in +** the packaging of this file. Please review the following information to +** ensure the GNU General Public License version 2.0 requirements will be +** met: http://www.gnu.org/licenses/gpl-2.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef QT3DINPUT_INPUT_KEYEVENTDISPATCHERJOB_P_H +#define QT3DINPUT_INPUT_KEYEVENTDISPATCHERJOB_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists for the convenience +// of other Qt classes. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include <Qt3DCore/qaspectjob.h> +#include <Qt3DCore/qnodeid.h> +#include <QKeyEvent> + +QT_BEGIN_NAMESPACE + +namespace Qt3DInput { +namespace Input { + +class InputHandler; + +class KeyEventDispatcherJob : public Qt3DCore::QAspectJob +{ +public: + explicit KeyEventDispatcherJob(const Qt3DCore::QNodeId &input, const QList<QKeyEvent> &events); + void setInputHandler(InputHandler *handler); + void run() Q_DECL_OVERRIDE; + +private: + InputHandler *m_inputHandler; + const Qt3DCore::QNodeId m_keyboardInput; + const QList<QKeyEvent> m_events; +}; + +} // namespace Input +} // namespace Qt3DInput + +QT_END_NAMESPACE + +#endif // QT3DINPUT_INPUT_KEYEVENTDISPATCHERJOB_P_H |