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

#include <AndroidPowerSyscall.h>

Inheritance diagram for CAndroidPowerSyscall:
CPowerSyscallWithoutEvents CAbstractPowerSyscall IPowerSyscall

Public Member Functions

 CAndroidPowerSyscall ()=default
 
 ~CAndroidPowerSyscall () override=default
 
bool Powerdown () override
 
bool Suspend () override
 
bool Hibernate () override
 
bool Reboot () override
 
bool CanPowerdown () override
 
bool CanSuspend () override
 
bool CanHibernate () override
 
bool CanReboot () override
 
int BatteryLevel () override
 
bool PumpPowerEvents (IPowerEventsCallback *callback) override
 Pump power related events back to xbmc.
 
void SetSuspended ()
 
void SetResumed ()
 
- 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 IPowerSyscallCreateInstance ()
 
static void Register ()
 
- 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

◆ CAndroidPowerSyscall()

CAndroidPowerSyscall::CAndroidPowerSyscall ( )
default

◆ ~CAndroidPowerSyscall()

CAndroidPowerSyscall::~CAndroidPowerSyscall ( )
overridedefault

Member Function Documentation

◆ BatteryLevel()

int CAndroidPowerSyscall::BatteryLevel ( void )
overridevirtual

Implements IPowerSyscall.

◆ CanHibernate()

bool CAndroidPowerSyscall::CanHibernate ( void )
inlineoverridevirtual

Implements IPowerSyscall.

◆ CanPowerdown()

bool CAndroidPowerSyscall::CanPowerdown ( void )
inlineoverridevirtual

Implements IPowerSyscall.

◆ CanReboot()

bool CAndroidPowerSyscall::CanReboot ( void )
inlineoverridevirtual

Implements IPowerSyscall.

◆ CanSuspend()

bool CAndroidPowerSyscall::CanSuspend ( void )
inlineoverridevirtual

Implements IPowerSyscall.

◆ CreateInstance()

IPowerSyscall * CAndroidPowerSyscall::CreateInstance ( )
static

◆ Hibernate()

bool CAndroidPowerSyscall::Hibernate ( void )
inlineoverridevirtual

Implements IPowerSyscall.

◆ Powerdown()

bool CAndroidPowerSyscall::Powerdown ( void )
inlineoverridevirtual

Implements IPowerSyscall.

◆ PumpPowerEvents()

bool CAndroidPowerSyscall::PumpPowerEvents ( IPowerEventsCallback * callback)
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.

Parameters
callbackthe callback to signal to

Implements IPowerSyscall.

◆ Reboot()

bool CAndroidPowerSyscall::Reboot ( void )
inlineoverridevirtual

Implements IPowerSyscall.

◆ Register()

void CAndroidPowerSyscall::Register ( )
static

◆ SetResumed()

void CAndroidPowerSyscall::SetResumed ( )
inline

◆ SetSuspended()

void CAndroidPowerSyscall::SetSuspended ( )
inline

◆ Suspend()

bool CAndroidPowerSyscall::Suspend ( void )
inlineoverridevirtual

Implements IPowerSyscall.


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