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

#include <ConsoleUPowerSyscall.h>

Inheritance diagram for CConsoleUPowerSyscall:
CUPowerSyscall CAbstractPowerSyscall IPowerSyscall

Public Member Functions

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

Static Public Member Functions

static bool HasConsoleKitAndUPower ()
- Static Public Member Functions inherited from CUPowerSyscall
static bool HasUPower ()
- 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
- Protected Member Functions inherited from CUPowerSyscall
void UpdateCapabilities ()
- Protected Attributes inherited from CUPowerSyscall
bool m_CanPowerdown
bool m_CanSuspend
bool m_CanHibernate
bool m_CanReboot

Constructor & Destructor Documentation

◆ CConsoleUPowerSyscall()

CConsoleUPowerSyscall::CConsoleUPowerSyscall ( )

Member Function Documentation

◆ HasConsoleKitAndUPower()

bool CConsoleUPowerSyscall::HasConsoleKitAndUPower ( )

◆ Powerdown()

bool CConsoleUPowerSyscall::Powerdown ( void )

Implements IPowerSyscall.

◆ Reboot()

bool CConsoleUPowerSyscall::Reboot ( void )

Implements IPowerSyscall.

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