7096e3ead8
The .clang-format file is based on the one in ECM except the following style options: - AlwaysBreakBeforeMultilineStrings - BinPackArguments - BinPackParameters - ColumnLimit - BreakBeforeBraces - KeepEmptyLinesAtTheStartOfBlocks
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
/*
|
|
KWin - the KDE window manager
|
|
This file is part of the KDE project.
|
|
|
|
SPDX-FileCopyrightText: 2017 Martin Flöser <mgraesslin@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
#pragma once
|
|
|
|
#include "inputmethod.h"
|
|
#include <QObject>
|
|
|
|
namespace KWin
|
|
{
|
|
|
|
class KWIN_EXPORT VirtualKeyboardDBus : public QObject
|
|
{
|
|
Q_OBJECT
|
|
Q_CLASSINFO("D-Bus Interface", "org.kde.kwin.VirtualKeyboard")
|
|
Q_PROPERTY(bool available READ isAvailable NOTIFY availableChanged)
|
|
Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged)
|
|
Q_PROPERTY(bool active READ isActive WRITE setActive NOTIFY activeChanged)
|
|
Q_PROPERTY(bool visible READ isVisible NOTIFY visibleChanged)
|
|
public:
|
|
explicit VirtualKeyboardDBus(InputMethod *inputMethod);
|
|
~VirtualKeyboardDBus() override;
|
|
bool isEnabled() const;
|
|
|
|
bool isVisible() const;
|
|
bool isActive() const;
|
|
bool isAvailable() const;
|
|
void setEnabled(bool enabled);
|
|
void setActive(bool active);
|
|
|
|
Q_SCRIPTABLE bool willShowOnActive() const;
|
|
|
|
Q_SIGNALS:
|
|
Q_SCRIPTABLE void enabledChanged();
|
|
Q_SCRIPTABLE void activeChanged();
|
|
Q_SCRIPTABLE void visibleChanged();
|
|
Q_SCRIPTABLE void availableChanged();
|
|
|
|
private:
|
|
InputMethod *const m_inputMethod;
|
|
};
|
|
|
|
}
|