MythTV  master
screensaver-osx.h
Go to the documentation of this file.
1 #ifndef MYTH_SCREENSAVER_OSX_H
2 #define MYTH_SCREENSAVER_OSX_H
3 
4 #include "screensaver.h"
5 
6 #include <IOKit/pwr_mgt/IOPMLib.h>
7 
8 class ScreenSaverOSX : public ScreenSaver
9 {
10 public:
11  ScreenSaverOSX() = default;
12  ~ScreenSaverOSX() override = default;
13 
14  void Disable(void) override; // ScreenSaver
15  void Restore(void) override; // ScreenSaver
16  void Reset(void) override; // ScreenSaver
17 
18  bool Asleep(void) override; // ScreenSaver
19 
20 protected:
21  class ScreenSaverOSXPrivate *d {nullptr};
22 
23 private:
24  ScreenSaverOSX(const ScreenSaverOSX &) = delete; // not copyable
25  ScreenSaverOSX &operator=(const ScreenSaverOSX &) = delete; // not copyable
26 
27  IOPMAssertionID iopm_id {kIOPMNullAssertionID};
28 };
29 
30 #endif // MYTH_SCREENSAVER_OSX_H
31 
ScreenSaverOSX::ScreenSaverOSX
ScreenSaverOSX()=default
screensaver.h
ScreenSaverOSX::d
class ScreenSaverOSXPrivate * d
Definition: screensaver-osx.h:21
ScreenSaverOSX::operator=
ScreenSaverOSX & operator=(const ScreenSaverOSX &)=delete
ScreenSaverOSX::Reset
void Reset(void) override
Definition: screensaver-osx.cpp:16
ScreenSaver
Base Class for screensavers.
Definition: screensaver.h:30
ScreenSaverOSX::iopm_id
IOPMAssertionID iopm_id
Definition: screensaver-osx.h:27
ScreenSaverOSX::Restore
void Restore(void) override
Definition: screensaver-osx.cpp:11
ScreenSaverOSX::Disable
void Disable(void) override
Definition: screensaver-osx.cpp:3
ScreenSaverOSX::~ScreenSaverOSX
~ScreenSaverOSX() override=default
ScreenSaverOSX::Asleep
bool Asleep(void) override
Definition: screensaver-osx.cpp:20
ScreenSaverOSX
Definition: screensaver-osx.h:8