2020-07-23 20:09:20 +00:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2017 Martin Flöser <mgraesslin@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
|
|
*/
|
|
|
|
#ifndef KWAYLAND_SERVER_IDLEINHIBIT_INTERFACE_H
|
|
|
|
#define KWAYLAND_SERVER_IDLEINHIBIT_INTERFACE_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include <KWaylandServer/kwaylandserver_export.h>
|
|
|
|
|
|
|
|
struct wl_resource;
|
|
|
|
|
|
|
|
namespace KWaylandServer
|
|
|
|
{
|
|
|
|
|
|
|
|
class Display;
|
|
|
|
class IdleInhibitManagerV1InterfacePrivate;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The IdleInhibitorManagerInterface is used by clients to inhibit idle on a
|
|
|
|
* SurfaceInterface. Whether a SurfaceInterface inhibits idle is exposes through
|
|
|
|
* @link{SurfaceInterface::inhibitsIdle}.
|
|
|
|
*
|
|
|
|
* @since 5.41
|
|
|
|
**/
|
|
|
|
class KWAYLANDSERVER_EXPORT IdleInhibitManagerV1Interface : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2020-12-09 20:13:19 +00:00
|
|
|
public:
|
2020-07-23 20:09:20 +00:00
|
|
|
explicit IdleInhibitManagerV1Interface(Display *display, QObject *parent = nullptr);
|
2020-12-09 20:13:19 +00:00
|
|
|
~IdleInhibitManagerV1Interface() override;
|
2020-07-23 20:09:20 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
QScopedPointer<IdleInhibitManagerV1InterfacePrivate> d;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|