Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
IPowerSyscall Class Referenceabstract

#include <IPowerSyscall.h>

Inheritance diagram for IPowerSyscall:
CAbstractPowerSyscall CLogindUPowerSyscall CPowerSyscall CPowerSyscallWithoutEvents CUPowerSyscall CWin32PowerSyscall CAndroidPowerSyscall CFallbackPowerSyscall CConsoleUPowerSyscall

Public Member Functions

virtual ~IPowerSyscall ()=default
 
virtual bool Powerdown ()=0
 
virtual bool Suspend ()=0
 
virtual bool Hibernate ()=0
 
virtual bool Reboot ()=0
 
virtual bool CanPowerdown ()=0
 
virtual bool CanSuspend ()=0
 
virtual bool CanHibernate ()=0
 
virtual bool CanReboot ()=0
 
virtual int CountPowerFeatures ()=0
 
virtual int BatteryLevel ()=0
 
virtual bool PumpPowerEvents (IPowerEventsCallback *callback)=0
 Pump power related events back to xbmc. More...
 

Static Public Member Functions

static IPowerSyscallCreateInstance ()
 Called by power manager to create platform power system adapter. More...
 
static void RegisterPowerSyscall (CreatePowerSyscallFunc createFunc)
 

Static Public Attributes

static const int MAX_COUNT_POWER_FEATURES = 4
 

Constructor & Destructor Documentation

◆ ~IPowerSyscall()

virtual IPowerSyscall::~IPowerSyscall ( )
virtualdefault

Member Function Documentation

◆ BatteryLevel()

virtual int IPowerSyscall::BatteryLevel ( )
pure virtual

◆ CanHibernate()

virtual bool IPowerSyscall::CanHibernate ( )
pure virtual

◆ CanPowerdown()

virtual bool IPowerSyscall::CanPowerdown ( )
pure virtual

◆ CanReboot()

virtual bool IPowerSyscall::CanReboot ( )
pure virtual

◆ CanSuspend()

virtual bool IPowerSyscall::CanSuspend ( )
pure virtual

◆ CountPowerFeatures()

virtual int IPowerSyscall::CountPowerFeatures ( )
pure virtual

Implemented in CAbstractPowerSyscall.

◆ CreateInstance()

IPowerSyscall * IPowerSyscall::CreateInstance ( )
static

Called by power manager to create platform power system adapter.

This method used to create platfrom specified power system adapter

◆ Hibernate()

virtual bool IPowerSyscall::Hibernate ( )
pure virtual

◆ Powerdown()

virtual bool IPowerSyscall::Powerdown ( )
pure virtual

◆ PumpPowerEvents()

virtual bool IPowerSyscall::PumpPowerEvents ( IPowerEventsCallback callback)
pure 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 occured and false if not.

Parameters
callbackthe callback to signal to

Implemented in CAndroidPowerSyscall, CWin32PowerSyscall, CLogindUPowerSyscall, CUPowerSyscall, CPowerSyscall, and CPowerSyscallWithoutEvents.

◆ Reboot()

virtual bool IPowerSyscall::Reboot ( )
pure virtual

◆ RegisterPowerSyscall()

void IPowerSyscall::RegisterPowerSyscall ( CreatePowerSyscallFunc  createFunc)
static

◆ Suspend()

Member Data Documentation

◆ MAX_COUNT_POWER_FEATURES

const int IPowerSyscall::MAX_COUNT_POWER_FEATURES = 4
static

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