Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <CocoaPowerSyscall.h>
Public Member Functions | |
CCocoaPowerSyscall () | |
~CCocoaPowerSyscall () override | |
bool | Powerdown () override |
bool | Suspend () override |
bool | Hibernate () override |
bool | Reboot () override |
bool | CanPowerdown () override |
bool | CanSuspend () override |
bool | CanHibernate () override |
bool | CanReboot () override |
bool | HasBattery () |
int | BatteryLevel () override |
bool | PumpPowerEvents (IPowerEventsCallback *callback) override |
Pump power related events back to xbmc. | |
Public Member Functions inherited from CPowerSyscallWithoutEvents | |
CPowerSyscallWithoutEvents () | |
bool | Suspend () override |
bool | Hibernate () override |
bool | PumpPowerEvents (IPowerEventsCallback *callback) override |
Pump power related events back to xbmc. | |
Public Member Functions inherited from CAbstractPowerSyscall | |
int | CountPowerFeatures () override |
Public Member Functions inherited from IPowerSyscall | |
virtual | ~IPowerSyscall ()=default |
Static Public Member Functions | |
static IPowerSyscall * | CreateInstance () |
static void | Register () |
Static Public Member Functions inherited from IPowerSyscall | |
static IPowerSyscall * | CreateInstance () |
Called by power manager to create platform power system adapter. | |
static void | RegisterPowerSyscall (CreatePowerSyscallFunc createFunc) |
Additional Inherited Members | |
Static Public Attributes inherited from IPowerSyscall | |
static const int | MAX_COUNT_POWER_FEATURES = 4 |
CCocoaPowerSyscall::CCocoaPowerSyscall | ( | ) |
|
override |
Implements IPowerSyscall.
Implements IPowerSyscall.
Implements IPowerSyscall.
Implements IPowerSyscall.
Implements IPowerSyscall.
|
static |
Implements IPowerSyscall.
Implements IPowerSyscall.
|
overridevirtual |
Pump power related events back to xbmc.
PumpPowerEvents is called from Application Thread and the platform implementation may signal power related events back to xbmc through the callback.
return true if an event occurred and false if not.
callback | the callback to signal to |
Implements IPowerSyscall.
Implements IPowerSyscall.
|
static |
Implements IPowerSyscall.