Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CWin32PowerSyscall Class Reference

#include <Win32PowerSyscall.h>

Inheritance diagram for CWin32PowerSyscall:
CAbstractPowerSyscall IPowerSyscall

Public Member Functions

 CWin32PowerSyscall ()
 
 ~CWin32PowerSyscall ()
 
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.
 
- Public Member Functions inherited from CAbstractPowerSyscall
int CountPowerFeatures () override
 
- Public Member Functions inherited from IPowerSyscall
virtual ~IPowerSyscall ()=default
 

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.
 
static void RegisterPowerSyscall (CreatePowerSyscallFunc createFunc)
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ CWin32PowerSyscall()

CWin32PowerSyscall::CWin32PowerSyscall ( )

◆ ~CWin32PowerSyscall()

CWin32PowerSyscall::~CWin32PowerSyscall ( )

Member Function Documentation

◆ BatteryLevel()

int CWin32PowerSyscall::BatteryLevel ( void )
virtual

Implements IPowerSyscall.

◆ CanHibernate()

bool CWin32PowerSyscall::CanHibernate ( void )
virtual

Implements IPowerSyscall.

◆ CanPowerdown()

bool CWin32PowerSyscall::CanPowerdown ( void )
virtual

Implements IPowerSyscall.

◆ CanReboot()

bool CWin32PowerSyscall::CanReboot ( void )
virtual

Implements IPowerSyscall.

◆ CanSuspend()

bool CWin32PowerSyscall::CanSuspend ( void )
virtual

Implements IPowerSyscall.

◆ CreateInstance()

IPowerSyscall * CWin32PowerSyscall::CreateInstance ( )
static

◆ Hibernate()

bool CWin32PowerSyscall::Hibernate ( void )
virtual

Implements IPowerSyscall.

◆ IsSuspending()

static bool CWin32PowerSyscall::IsSuspending ( )
inlinestatic

◆ Powerdown()

bool CWin32PowerSyscall::Powerdown ( void )
virtual

Implements IPowerSyscall.

◆ 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.

◆ Reboot()

bool CWin32PowerSyscall::Reboot ( void )
virtual

Implements IPowerSyscall.

◆ Register()

void CWin32PowerSyscall::Register ( )
static

◆ SetOnResume()

static void CWin32PowerSyscall::SetOnResume ( )
inlinestatic

◆ SetOnSuspend()

static void CWin32PowerSyscall::SetOnSuspend ( )
inlinestatic

◆ Suspend()

bool CWin32PowerSyscall::Suspend ( void )
virtual

Implements IPowerSyscall.


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