KWin
Loading...
Searching...
No Matches
virtualkeyboard_dbus.h
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2017 Martin Flöser <mgraesslin@kde.org>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9#pragma once
10
11#include "inputmethod.h"
12#include <QObject>
13
14namespace KWin
15{
16
17class KWIN_EXPORT VirtualKeyboardDBus : public QObject
18{
19 Q_OBJECT
20 Q_CLASSINFO("D-Bus Interface", "org.kde.kwin.VirtualKeyboard")
21 Q_PROPERTY(bool available READ isAvailable NOTIFY availableChanged)
22 Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged)
23 Q_PROPERTY(bool active READ isActive WRITE setActive NOTIFY activeChanged)
24 Q_PROPERTY(bool visible READ isVisible NOTIFY visibleChanged)
25 Q_PROPERTY(bool activeClientSupportsTextInput READ activeClientSupportsTextInput NOTIFY activeClientSupportsTextInputChanged)
26public:
29 bool isEnabled() const;
30
31 bool activeClientSupportsTextInput() const;
32 bool isVisible() const;
33 bool isActive() const;
34 bool isAvailable() const;
35 void setEnabled(bool enabled);
36 void setActive(bool active);
37
38 Q_SCRIPTABLE bool willShowOnActive() const;
39 Q_SCRIPTABLE void forceActivate();
40
41Q_SIGNALS:
42 Q_SCRIPTABLE void enabledChanged();
43 Q_SCRIPTABLE void activeChanged();
44 Q_SCRIPTABLE void visibleChanged();
45 Q_SCRIPTABLE void availableChanged();
46 Q_SCRIPTABLE void activeClientSupportsTextInputChanged();
47
49 InputMethod *const m_inputMethod;
50};
51
52}
#define private
#define explicit