Kirigami2

virtualkeyboardwatcher.h
1 /*
2  * SPDX-FileCopyrightText: 2018 Marco Martin <[email protected]>
3  * SPDX-FileCopyrightText: 2021 Arjen Hiemstra <[email protected]>
4  *
5  * SPDX-License-Identifier: LGPL-2.0-or-later
6  */
7 
8 #ifndef KIRIGAMI_VIRTUALKEYBOARDWATCHER
9 #define KIRIGAMI_VIRTUALKEYBOARDWATCHER
10 
11 #include <memory>
12 
13 #include <QObject>
14 
15 #include "kirigami2_export.h"
16 
17 namespace Kirigami
18 {
19 /**
20  * @class VirtualKeyboardWatcher virtualkeyboardwatcher.h <Kirigami/VirtualKeyboardWatcher>
21  *
22  * This class reports on the status of KWin's VirtualKeyboard DBus interface.
23  *
24  * @since 5.91
25  */
26 class KIRIGAMI2_EXPORT VirtualKeyboardWatcher : public QObject
27 {
28  Q_OBJECT
29 
30 public:
31  VirtualKeyboardWatcher(QObject *parent = nullptr);
33 
34  Q_PROPERTY(bool available READ available NOTIFY availableChanged)
35  bool available() const;
36  Q_SIGNAL void availableChanged();
37 
38  Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
39  bool enabled() const;
40  void setEnabled(bool newEnabled);
41  Q_SIGNAL void enabledChanged();
42 
43  Q_PROPERTY(bool active READ active WRITE setActive NOTIFY activeChanged)
44  bool active() const;
45  void setActive(bool newActive);
46  Q_SIGNAL void activeChanged();
47 
48  Q_PROPERTY(bool visible READ visible NOTIFY visibleChanged)
49  bool visible() const;
50  Q_SIGNAL void visibleChanged();
51 
52  Q_PROPERTY(bool willShowOnActive READ willShowOnActive NOTIFY willShowOnActiveChanged)
53  bool willShowOnActive() const;
54  Q_SIGNAL void willShowOnActiveChanged();
55 
56  static VirtualKeyboardWatcher *self();
57 
58 private:
59  class Private;
60  const std::unique_ptr<Private> d;
61 };
62 
63 }
64 
65 #endif // KIRIGAMI_VIRTUALKEYBOARDWATCHER
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 04:11:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.