File indexing completed on 2025-03-16 11:20:34
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 KWaylandServer 0012 { 0013 class FakeInputDevice; 0014 } 0015 0016 namespace KWin 0017 { 0018 0019 class KWIN_EXPORT FakeInputDevice : public InputDevice 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 explicit FakeInputDevice(KWaylandServer::FakeInputDevice *device, QObject *parent = nullptr); 0025 0026 QString sysName() const override; 0027 QString name() const override; 0028 0029 bool isEnabled() const override; 0030 void setEnabled(bool enabled) override; 0031 0032 LEDs leds() const override; 0033 void setLeds(LEDs leds) override; 0034 0035 bool isKeyboard() const override; 0036 bool isAlphaNumericKeyboard() const override; 0037 bool isPointer() const override; 0038 bool isTouchpad() const override; 0039 bool isTouch() const override; 0040 bool isTabletTool() const override; 0041 bool isTabletPad() const override; 0042 bool isTabletModeSwitch() const override; 0043 bool isLidSwitch() const override; 0044 0045 private: 0046 QString m_name; 0047 }; 0048 0049 } // namespace KWin