1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef GESTURERECOGNIZER_P_H
5#define GESTURERECOGNIZER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QObject>
19#include <QVariantMap>
20#include <QtVirtualKeyboard/qvirtualkeyboardtrace.h>
21#include <QtVirtualKeyboard/qvirtualkeyboard_global.h>
22#include <QtCore/private/qglobal_p.h>
23
24QT_BEGIN_NAMESPACE
25namespace QtVirtualKeyboard {
26
27class Q_VIRTUALKEYBOARD_EXPORT GestureRecognizer : public QObject
28{
29 Q_OBJECT
30public:
31 explicit GestureRecognizer(QObject *parent = nullptr);
32
33 virtual QVariantMap recognize(const QList<QVirtualKeyboardTrace *> traceList) = 0;
34};
35
36} // namespace QtVirtualKeyboard
37QT_END_NAMESPACE
38
39#endif // GESTURERECOGNIZER_P_H
40

source code of qtvirtualkeyboard/src/virtualkeyboard/gesturerecognizer_p.h