File indexing completed on 2024-05-19 05:32:35

0001 /*
0002     SPDX-FileCopyrightText: 2017 Martin Flöser <mgraesslin@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 #pragma once
0007 
0008 #include "kwin_export.h"
0009 
0010 #include <QObject>
0011 
0012 struct wl_resource;
0013 
0014 namespace KWin
0015 {
0016 class Display;
0017 class IdleInhibitManagerV1InterfacePrivate;
0018 
0019 /**
0020  * The IdleInhibitorManagerInterface is used by clients to inhibit idle on a
0021  * SurfaceInterface. Whether a SurfaceInterface inhibits idle is exposes through
0022  * @link{SurfaceInterface::inhibitsIdle}.
0023  */
0024 class KWIN_EXPORT IdleInhibitManagerV1Interface : public QObject
0025 {
0026     Q_OBJECT
0027 
0028 public:
0029     explicit IdleInhibitManagerV1Interface(Display *display, QObject *parent = nullptr);
0030     ~IdleInhibitManagerV1Interface() override;
0031 
0032 private:
0033     std::unique_ptr<IdleInhibitManagerV1InterfacePrivate> d;
0034 };
0035 
0036 }