1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef FALLBACKINPUTMETHOD_P_H
5#define FALLBACKINPUTMETHOD_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 <QtVirtualKeyboard/qvirtualkeyboardabstractinputmethod.h>
19#include <QtCore/private/qglobal_p.h>
20
21QT_BEGIN_NAMESPACE
22namespace QtVirtualKeyboard {
23
24class Q_VIRTUALKEYBOARD_EXPORT FallbackInputMethod : public QVirtualKeyboardAbstractInputMethod
25{
26 Q_OBJECT
27
28public:
29 explicit FallbackInputMethod(QObject *parent = nullptr);
30
31 QList<QVirtualKeyboardInputEngine::InputMode> inputModes(const QString &locale) override;
32 bool setInputMode(const QString &locale, QVirtualKeyboardInputEngine::InputMode inputMode) override;
33 bool setTextCase(QVirtualKeyboardInputEngine::TextCase textCase) override;
34
35 bool keyEvent(Qt::Key key, const QString &text, Qt::KeyboardModifiers modifiers) override;
36
37 void reset() override;
38 void update() override;
39};
40
41} // namespace QtVirtualKeyboard
42QT_END_NAMESPACE
43
44#endif // FALLBACKINPUTMETHOD_P_H
45

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