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