kodi
Public Member Functions | Static Public Member Functions | List of all members
CWin32PowerSyscall Class Reference
Inheritance diagram for CWin32PowerSyscall:
Inheritance graph
[legend]
Collaboration diagram for CWin32PowerSyscall:
Collaboration graph
[legend]

Public Member Functions

virtual bool Powerdown ()
 
virtual bool Suspend ()
 
virtual bool Hibernate ()
 
virtual bool Reboot ()
 
virtual bool CanPowerdown ()
 
virtual bool CanSuspend ()
 
virtual bool CanHibernate ()
 
virtual bool CanReboot ()
 
virtual int BatteryLevel ()
 
virtual bool PumpPowerEvents (IPowerEventsCallback *callback)
 Pump power related events back to xbmc. More...
 
- Public Member Functions inherited from CAbstractPowerSyscall
int CountPowerFeatures () override
 

Static Public Member Functions

static IPowerSyscallCreateInstance ()
 
static void Register ()
 
static void SetOnResume ()
 
static void SetOnSuspend ()
 
static bool IsSuspending ()
 
- Static Public Member Functions inherited from IPowerSyscall
static IPowerSyscallCreateInstance ()
 Called by power manager to create platform power system adapter. More...
 
static void RegisterPowerSyscall (CreatePowerSyscallFunc createFunc)
 

Additional Inherited Members

- Static Public Attributes inherited from IPowerSyscall
static const int MAX_COUNT_POWER_FEATURES = 4
 

Member Function Documentation

◆ PumpPowerEvents()

bool CWin32PowerSyscall::PumpPowerEvents ( IPowerEventsCallback callback)
virtual

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.

Parameters
callbackthe callback to signal to

Implements IPowerSyscall.


The documentation for this class was generated from the following files: