![]() |
Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
|
#include <IPowerSyscall.h>
Public Member Functions | |
CPowerSyscallWithoutEvents () | |
bool | Suspend () override |
bool | Hibernate () override |
bool | PumpPowerEvents (IPowerEventsCallback *callback) override |
Pump power related events back to xbmc. More... | |
![]() | |
int | CountPowerFeatures () override |
![]() | |
virtual | ~IPowerSyscall ()=default |
virtual bool | Powerdown ()=0 |
virtual bool | Reboot ()=0 |
virtual bool | CanPowerdown ()=0 |
virtual bool | CanSuspend ()=0 |
virtual bool | CanHibernate ()=0 |
virtual bool | CanReboot ()=0 |
virtual int | BatteryLevel ()=0 |
Additional Inherited Members | |
![]() | |
static IPowerSyscall * | CreateInstance () |
Called by power manager to create platform power system adapter. More... | |
static void | RegisterPowerSyscall (CreatePowerSyscallFunc createFunc) |
![]() | |
static const int | MAX_COUNT_POWER_FEATURES = 4 |
|
inline |
Implements IPowerSyscall.
|
inlineoverridevirtual |
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.