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
20QT_BEGIN_NAMESPACE
21namespace QtVirtualKeyboard {
22
23class HangulInputMethodPrivate;
24
25class HangulInputMethod : public QVirtualKeyboardAbstractInputMethod
26{
27 Q_OBJECT
28 Q_DECLARE_PRIVATE(HangulInputMethod)
29 QML_ELEMENT
30public:
31 explicit HangulInputMethod(QObject *parent = nullptr);
32 ~HangulInputMethod();
33
34 QList<QVirtualKeyboardInputEngine::InputMode> inputModes(const QString &locale) override;
35 bool setInputMode(const QString &locale, QVirtualKeyboardInputEngine::InputMode inputMode) override;
36 bool setTextCase(QVirtualKeyboardInputEngine::TextCase textCase) override;
37
38 bool keyEvent(Qt::Key key, const QString &text, Qt::KeyboardModifiers modifiers) override;
39
40 void reset() override;
41 void update() override;
42};
43
44} // namespace QtVirtualKeyboard
45QT_END_NAMESPACE
46
47#endif // HANGULINPUTMETHOD_P_H
48

source code of qtvirtualkeyboard/src/plugins/hangul/hangulinputmethod_p.h