File indexing completed on 2024-04-14 14:21:00

0001 /*
0002     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0003     SPDX-FileCopyrightText: 2020 David Redondo <kde@david-redondo.de>
0004 */
0005 
0006 #ifndef WAYLANDSHORTCUTINHIBITOR_H
0007 #define WAYLANDSHORTCUTINHIBITOR_H
0008 
0009 #include "shortcutinhibition_p.h"
0010 
0011 #include <memory>
0012 
0013 class ShortcutsInhibitManager;
0014 class ShortcutsInhibitor;
0015 
0016 class WaylandInhibition : public ShortcutInhibition
0017 {
0018 public:
0019     explicit WaylandInhibition(QWindow *window);
0020     ~WaylandInhibition() override;
0021     bool shortcutsAreInhibited() const override;
0022     void enableInhibition() override;
0023     void disableInhibition() override;
0024 
0025 private:
0026     QWindow *const m_window;
0027     std::shared_ptr<ShortcutsInhibitManager> m_manager;
0028 };
0029 
0030 #endif