20 #include <QLoggingCategory>
23 #include "WindowManagerGlobal.h"
25 Q_DECLARE_LOGGING_CATEGORY(INPUTMETHODMANAGER)
31 namespace application {
32 class MirSurfaceInterface;
37 class WINDOWMANAGERQML_EXPORT InputMethodManager :
public QObject
40 Q_PROPERTY(lomiri::shell::application::MirSurfaceInterface* surface READ surface NOTIFY surfaceChanged)
44 static InputMethodManager* instance();
46 void setWindow(
Window* window);
49 void surfaceChanged(lomiri::shell::application::MirSurfaceInterface* inputMethodSurface);
52 lomiri::shell::application::MirSurfaceInterface* surface()
const;
54 Window* m_inputMethodWindow{
nullptr};