MythTV master
mythscreensaverwayland.h
Go to the documentation of this file.
1#ifndef MYTHSCREENSAVERWAYLAND_H
2#define MYTHSCREENSAVERWAYLAND_H
3
4// MythTV
6#include "mythscreensaver.h"
7
9struct zwp_idle_inhibit_manager_v1;
10struct zwp_idle_inhibitor_v1;
11
13{
14 Q_OBJECT
15
16 public:
17 MythScreenSaverWayland(QObject* Parent, MythMainWindow* MainWindow);
18 ~MythScreenSaverWayland() override;
19
20 public slots:
21 void WindowReady();
22 void Disable() override;
23 void Restore() override;
24 void Reset() override;
25 bool Asleep() override;
26
27 private:
31 zwp_idle_inhibit_manager_v1* m_manager { nullptr };
32 zwp_idle_inhibitor_v1* m_inhibitor { nullptr };
33};
34
35#endif
zwp_idle_inhibit_manager_v1 * m_manager
zwp_idle_inhibitor_v1 * m_inhibitor
MythWaylandDevice * m_device
void WindowReady()
Signalled when MythMainWindow has completed initialisation.
MythScreenSaverWayland(QObject *Parent, MythMainWindow *MainWindow)
MythWaylandRegistry m_registry
Base Class for screensavers.
A simple wrapper to retrieve the major Wayland objects from the Qt Wayland native interface.
std::map< const wl_interface *, void * > MythWaylandRegistry