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

#include <TVOSPowerSyscall.h>

Inheritance diagram for CTVOSPowerSyscall:
CPowerSyscallWithoutEvents CAbstractPowerSyscall IPowerSyscall

Public Member Functions

 CTVOSPowerSyscall ()=default
 
 ~CTVOSPowerSyscall () 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 SetOnPause ()
 
void SetOnResume ()
 
- Public Member Functions inherited from CPowerSyscallWithoutEvents
 CPowerSyscallWithoutEvents ()
 
- 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

◆ CTVOSPowerSyscall()

CTVOSPowerSyscall::CTVOSPowerSyscall ( )
default

◆ ~CTVOSPowerSyscall()

CTVOSPowerSyscall::~CTVOSPowerSyscall ( )
overridedefault

Member Function Documentation

◆ BatteryLevel()

int CTVOSPowerSyscall::BatteryLevel ( void )
overridevirtual

Implements IPowerSyscall.

◆ CanHibernate()

bool CTVOSPowerSyscall::CanHibernate ( void )
overridevirtual

Implements IPowerSyscall.

◆ CanPowerdown()

bool CTVOSPowerSyscall::CanPowerdown ( void )
overridevirtual

Implements IPowerSyscall.

◆ CanReboot()

bool CTVOSPowerSyscall::CanReboot ( void )
overridevirtual

Implements IPowerSyscall.

◆ CanSuspend()

bool CTVOSPowerSyscall::CanSuspend ( void )
overridevirtual

Implements IPowerSyscall.

◆ CreateInstance()

IPowerSyscall * CTVOSPowerSyscall::CreateInstance ( )
static

◆ Hibernate()

bool CTVOSPowerSyscall::Hibernate ( void )
overridevirtual

Reimplemented from CPowerSyscallWithoutEvents.

◆ Powerdown()

bool CTVOSPowerSyscall::Powerdown ( void )
overridevirtual

Implements IPowerSyscall.

◆ PumpPowerEvents()

bool CTVOSPowerSyscall::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

Reimplemented from CPowerSyscallWithoutEvents.

◆ Reboot()

bool CTVOSPowerSyscall::Reboot ( void )
overridevirtual

Implements IPowerSyscall.

◆ Register()

void CTVOSPowerSyscall::Register ( )
static

◆ SetOnPause()

void CTVOSPowerSyscall::SetOnPause ( )

◆ SetOnResume()

void CTVOSPowerSyscall::SetOnResume ( )

◆ Suspend()

bool CTVOSPowerSyscall::Suspend ( void )
overridevirtual

Reimplemented from CPowerSyscallWithoutEvents.


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