MythTV  master
Public Slots | Public Member Functions | Private Attributes | List of all members
MythScreenSaverWayland Class Reference

#include <mythscreensaverwayland.h>

Inheritance diagram for MythScreenSaverWayland:
Inheritance graph
[legend]
Collaboration diagram for MythScreenSaverWayland:
Collaboration graph
[legend]

Public Slots

void WindowReady ()
 Signalled when MythMainWindow has completed initialisation. More...
 
void Disable () override
 
void Restore () override
 
void Reset () override
 
bool Asleep () override
 
- Public Slots inherited from MythScreenSaver
virtual void Disable ()=0
 
virtual void Restore ()=0
 
virtual void Reset ()=0
 
virtual bool Asleep ()=0
 

Public Member Functions

 MythScreenSaverWayland (QObject *Parent, MythMainWindow *MainWindow)
 
 ~MythScreenSaverWayland () override
 
- Public Member Functions inherited from MythScreenSaver
 MythScreenSaver (QObject *Parent)
 
 ~MythScreenSaver () override=default
 

Private Attributes

MythMainWindowm_window { nullptr }
 
MythWaylandRegistry m_registry
 
MythWaylandDevicem_device { nullptr }
 
zwp_idle_inhibit_manager_v1 * m_manager { nullptr }
 
zwp_idle_inhibitor_v1 * m_inhibitor { nullptr }
 

Detailed Description

Definition at line 12 of file mythscreensaverwayland.h.

Constructor & Destructor Documentation

◆ MythScreenSaverWayland()

MythScreenSaverWayland::MythScreenSaverWayland ( QObject *  Parent,
MythMainWindow MainWindow 
)

Definition at line 10 of file mythscreensaverwayland.cpp.

◆ ~MythScreenSaverWayland()

MythScreenSaverWayland::~MythScreenSaverWayland ( )
override

Definition at line 17 of file mythscreensaverwayland.cpp.

Member Function Documentation

◆ WindowReady

void MythScreenSaverWayland::WindowReady ( )
slot

Signalled when MythMainWindow has completed initialisation.

Note that this may be called multiple times if the main window is re-initialised but there should be no need to delete and recreate our Wayland objects as the compositor etc should not change (though this may need confirming for extreme edge cases).

Definition at line 33 of file mythscreensaverwayland.cpp.

Referenced by MythScreenSaverWayland().

◆ Disable

void MythScreenSaverWayland::Disable ( )
overrideslot

Definition at line 61 of file mythscreensaverwayland.cpp.

◆ Restore

void MythScreenSaverWayland::Restore ( )
overrideslot

Definition at line 69 of file mythscreensaverwayland.cpp.

Referenced by Reset().

◆ Reset

void MythScreenSaverWayland::Reset ( )
overrideslot

Definition at line 77 of file mythscreensaverwayland.cpp.

◆ Asleep

bool MythScreenSaverWayland::Asleep ( )
overrideslot

Definition at line 82 of file mythscreensaverwayland.cpp.

Member Data Documentation

◆ m_window

MythMainWindow* MythScreenSaverWayland::m_window { nullptr }
private

Definition at line 28 of file mythscreensaverwayland.h.

Referenced by MythScreenSaverWayland(), and WindowReady().

◆ m_registry

MythWaylandRegistry MythScreenSaverWayland::m_registry
private

Definition at line 29 of file mythscreensaverwayland.h.

Referenced by WindowReady().

◆ m_device

MythWaylandDevice* MythScreenSaverWayland::m_device { nullptr }
private

Definition at line 30 of file mythscreensaverwayland.h.

Referenced by Disable(), WindowReady(), and ~MythScreenSaverWayland().

◆ m_manager

zwp_idle_inhibit_manager_v1* MythScreenSaverWayland::m_manager { nullptr }
private

Definition at line 31 of file mythscreensaverwayland.h.

Referenced by Disable(), WindowReady(), and ~MythScreenSaverWayland().

◆ m_inhibitor

zwp_idle_inhibitor_v1* MythScreenSaverWayland::m_inhibitor { nullptr }
private

Definition at line 32 of file mythscreensaverwayland.h.

Referenced by Disable(), Restore(), and ~MythScreenSaverWayland().


The documentation for this class was generated from the following files: