11 #include "powermanagement/IPowerSyscall.h"    13 #include <IOKit/IOMessage.h>    14 #include <IOKit/pwr_mgt/IOPMLib.h>    23   static void Register();
    25   bool Powerdown() 
override;
    26   bool Suspend() 
override;
    27   bool Hibernate() 
override;
    28   bool Reboot() 
override;
    30   bool CanPowerdown() 
override;
    31   bool CanSuspend() 
override;
    32   bool CanHibernate() 
override;
    33   bool CanReboot() 
override;
    35   int BatteryLevel() 
override;
    40           void CreateOSPowerCallBacks(
void);
    41           void DeleteOSPowerCallBacks(
void);
    42   static  void OSPowerCallBack(
void *refcon, io_service_t service, natural_t msg_type, 
void *msg_arg);
    43   static  void OSPowerSourceCallBack(
void *refcon);
    52   bool m_SentBatteryMessage;
    54   io_connect_t m_root_port;             
    55   io_object_t  m_notifier_object;       
    56   IONotificationPortRef m_notify_port;  
    57   CFRunLoopSourceRef m_power_source = NULL;
 Definition: CocoaPowerSyscall.h:16
bool PumpPowerEvents(IPowerEventsCallback *callback) override
Pump power related events back to xbmc. 
Definition: CocoaPowerSyscall.cpp:210
Definition: IPowerSyscall.h:11
Definition: IPowerSyscall.h:25
Definition: IPowerSyscall.h:82