File indexing completed on 2024-05-19 16:35:20
0001 /* 0002 SPDX-FileCopyrightText: 2019 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #pragma once 0008 0009 #include "kwin_export.h" 0010 0011 #include <QObject> 0012 #include <memory> 0013 0014 namespace KWaylandServer 0015 { 0016 class Display; 0017 class KeyStateInterfacePrivate; 0018 0019 /** 0020 * @brief Exposes key states to wayland clients 0021 */ 0022 class KWIN_EXPORT KeyStateInterface : public QObject 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 explicit KeyStateInterface(Display *display, QObject *parent = nullptr); 0028 ~KeyStateInterface() override; 0029 0030 private: 0031 std::unique_ptr<KeyStateInterfacePrivate> d; 0032 }; 0033 0034 }