1 | // Copyright (C) 2017 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QWAYLANDINPUTMETHODCONTROL_P_H |
5 | #define QWAYLANDINPUTMETHODCONTROL_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 <QtWaylandCompositor/qtwaylandcompositorglobal.h> |
19 | #include <QtWaylandCompositor/qwaylandinputmethodcontrol.h> |
20 | |
21 | #include <QtCore/private/qobject_p.h> |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | class QWaylandCompositor; |
26 | class QWaylandSeat; |
27 | class QWaylandSurface; |
28 | class QWaylandTextInput; |
29 | #if QT_WAYLAND_TEXT_INPUT_V4_WIP |
30 | class QWaylandTextInputV4; |
31 | #endif // QT_WAYLAND_TEXT_INPUT_V4_WIP |
32 | class QWaylandQtTextInputMethod; |
33 | |
34 | class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandInputMethodControlPrivate : public QObjectPrivate |
35 | { |
36 | Q_DECLARE_PUBLIC(QWaylandInputMethodControl) |
37 | |
38 | public: |
39 | explicit QWaylandInputMethodControlPrivate(QWaylandSurface *surface); |
40 | |
41 | QWaylandTextInput *textInput() const; |
42 | #if QT_WAYLAND_TEXT_INPUT_V4_WIP |
43 | QWaylandTextInputV4 *textInputV4() const; |
44 | #endif // QT_WAYLAND_TEXT_INPUT_V4_WIP |
45 | QWaylandQtTextInputMethod *textInputMethod() const; |
46 | |
47 | QWaylandCompositor *compositor = nullptr; |
48 | QWaylandSeat *seat = nullptr; |
49 | QWaylandSurface *surface = nullptr; |
50 | bool enabled = false; |
51 | }; |
52 | |
53 | QT_END_NAMESPACE |
54 | |
55 | #endif // QWAYLANDINPUTMETHODCONTROL_P_H |
56 | |