/* KWin - the KDE window manager This file is part of the KDE project. SPDX-FileCopyrightText: 2017 Martin Flöser SPDX-FileCopyrightText: 2018 Vlad Zahorodnii SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include #include #include namespace KWin { class Window; class IdleInhibition : public QObject { Q_OBJECT public: explicit IdleInhibition(QObject *parent = nullptr); ~IdleInhibition() override; void registerClient(Window *client); private Q_SLOTS: void slotWorkspaceCreated(); void slotDesktopChanged(); private: void inhibit(Window *client); void uninhibit(Window *client); void update(Window *client); QMap m_connections; }; }