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 
8 class MythMainWindow;
9 struct zwp_idle_inhibit_manager_v1;
10 struct 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:
28  MythMainWindow* m_window { nullptr };
31  zwp_idle_inhibit_manager_v1* m_manager { nullptr };
32  zwp_idle_inhibitor_v1* m_inhibitor { nullptr };
33 };
34 
35 #endif
mythwaylandextras.h
MythScreenSaverWayland::~MythScreenSaverWayland
~MythScreenSaverWayland() override
Definition: mythscreensaverwayland.cpp:17
MythWaylandRegistry
std::map< const wl_interface *, void * > MythWaylandRegistry
Definition: mythwaylandextras.h:17
MythScreenSaverWayland::Asleep
bool Asleep() override
Definition: mythscreensaverwayland.cpp:82
MythScreenSaver
Base Class for screensavers.
Definition: mythscreensaver.h:14
MythWaylandDevice
A simple wrapper to retrieve the major Wayland objects from the Qt Wayland native interface.
Definition: mythwaylandextras.h:27
MythScreenSaverWayland::m_registry
MythWaylandRegistry m_registry
Definition: mythscreensaverwayland.h:29
MythScreenSaverWayland::m_manager
zwp_idle_inhibit_manager_v1 * m_manager
Definition: mythscreensaverwayland.h:31
mythscreensaver.h
MythScreenSaverWayland::m_window
MythMainWindow * m_window
Definition: mythscreensaverwayland.h:28
MythScreenSaverWayland::Restore
void Restore() override
Definition: mythscreensaverwayland.cpp:69
MythScreenSaverWayland::m_inhibitor
zwp_idle_inhibitor_v1 * m_inhibitor
Definition: mythscreensaverwayland.h:32
MythScreenSaverWayland::Disable
void Disable() override
Definition: mythscreensaverwayland.cpp:61
MythScreenSaverWayland::m_device
MythWaylandDevice * m_device
Definition: mythscreensaverwayland.h:30
MythScreenSaverWayland::MythScreenSaverWayland
MythScreenSaverWayland(QObject *Parent, MythMainWindow *MainWindow)
Definition: mythscreensaverwayland.cpp:10
MythScreenSaverWayland
Definition: mythscreensaverwayland.h:12
MythScreenSaverWayland::Reset
void Reset() override
Definition: mythscreensaverwayland.cpp:77
MythMainWindow
Definition: mythmainwindow.h:35
MythScreenSaverWayland::WindowReady
void WindowReady()
Signalled when MythMainWindow has completed initialisation.
Definition: mythscreensaverwayland.cpp:33