File indexing completed on 2025-04-27 05:03:36
0001 /* 0002 SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "core/inputdevice.h" 0010 0011 namespace KWin 0012 { 0013 0014 class KWIN_EXPORT FakeInputDevice : public InputDevice 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 explicit FakeInputDevice(QObject *parent = nullptr); 0020 0021 QString sysName() const override; 0022 QString name() const override; 0023 0024 bool isEnabled() const override; 0025 void setEnabled(bool enabled) override; 0026 0027 LEDs leds() const override; 0028 void setLeds(LEDs leds) override; 0029 0030 bool isKeyboard() const override; 0031 bool isAlphaNumericKeyboard() const override; 0032 bool isPointer() const override; 0033 bool isTouchpad() const override; 0034 bool isTouch() const override; 0035 bool isTabletTool() const override; 0036 bool isTabletPad() const override; 0037 bool isTabletModeSwitch() const override; 0038 bool isLidSwitch() const override; 0039 0040 void setAuthenticated(bool authenticated); 0041 bool isAuthenticated() const; 0042 0043 private: 0044 QString m_name; 0045 bool m_authenticated = false; 0046 }; 0047 0048 } // namespace KWin