| 1 | /* |
|---|---|
| 2 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
| 3 | SPDX-FileCopyrightText: 2020 David Redondo <kde@david-redondo.de> |
| 4 | */ |
| 5 | |
| 6 | #ifndef WAYLANDSHORTCUTINHIBITOR_H |
| 7 | #define WAYLANDSHORTCUTINHIBITOR_H |
| 8 | |
| 9 | #include "shortcutinhibition_p.h" |
| 10 | |
| 11 | #include <memory> |
| 12 | |
| 13 | class ShortcutsInhibitManager; |
| 14 | class ShortcutsInhibitor; |
| 15 | |
| 16 | class WaylandInhibition : public ShortcutInhibition |
| 17 | { |
| 18 | public: |
| 19 | explicit WaylandInhibition(QWindow *window); |
| 20 | ~WaylandInhibition() override; |
| 21 | bool shortcutsAreInhibited() const override; |
| 22 | void enableInhibition() override; |
| 23 | void disableInhibition() override; |
| 24 | |
| 25 | private: |
| 26 | QWindow *const m_window; |
| 27 | std::shared_ptr<ShortcutsInhibitManager> m_manager; |
| 28 | }; |
| 29 | |
| 30 | #endif |
| 31 |
