MythTV  master
screensaver-osx.cpp
Go to the documentation of this file.
1 #include "screensaver-osx.h"
2 
4 {
5  IOPMAssertionCreateWithName(kIOPMAssertPreventUserIdleDisplaySleep,
6  kIOPMAssertionLevelOn,
7  CFSTR("MythTV Activity"),
8  &iopm_id);
9 }
10 
12 {
13  IOPMAssertionRelease(iopm_id);
14 }
15 
17 {
18 }
19 
21 {
22  return false;
23 }
screensaver-osx.h
ScreenSaverOSX::Reset
void Reset(void) override
Definition: screensaver-osx.cpp:16
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::Asleep
bool Asleep(void) override
Definition: screensaver-osx.cpp:20