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