PowerComponentMac.h 403 B

123456789101112131415161718
  1. #ifndef POWERCOMPONENTMAC_H
  2. #define POWERCOMPONENTMAC_H
  3. #include "PowerComponent.h"
  4. #include <IOKit/pwr_mgt/IOPMLib.h>
  5. class PowerComponentMac : public PowerComponent
  6. {
  7. public:
  8. PowerComponentMac() : PowerComponent(nullptr), m_assertion(0) { }
  9. virtual void doDisableScreensaver();
  10. virtual void doEnableScreensaver();
  11. private:
  12. IOPMAssertionID m_assertion = 0;
  13. };
  14. #endif // POWERCOMPONENTMAC_H