KWin
Loading...
Searching...
No Matches
fakeinputdevice.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "core/inputdevice.h"
10
11namespace KWin
12{
13
14class KWIN_EXPORT FakeInputDevice : public InputDevice
15{
16 Q_OBJECT
17
18public:
19 explicit FakeInputDevice(QObject *parent = nullptr);
20
21 QString sysName() const override;
22 QString name() const override;
23
24 bool isEnabled() const override;
25 void setEnabled(bool enabled) override;
26
27 LEDs leds() const override;
28 void setLeds(LEDs leds) override;
29
30 bool isKeyboard() const override;
31 bool isPointer() const override;
32 bool isTouchpad() const override;
33 bool isTouch() const override;
34 bool isTabletTool() const override;
35 bool isTabletPad() const override;
36 bool isTabletModeSwitch() const override;
37 bool isLidSwitch() const override;
38
39 void setAuthenticated(bool authenticated);
40 bool isAuthenticated() const;
41
42private:
43 QString m_name;
44 bool m_authenticated = false;
45};
46
47} // namespace KWin