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

#include <PowerManager.h>

Inheritance diagram for CPowerManager:
IPowerEventsCallback

Public Member Functions

 CPowerManager ()
 
 ~CPowerManager () override
 
void Initialize ()
 
void SetDefaults ()
 
bool Powerdown ()
 
bool Suspend ()
 
bool Hibernate ()
 
bool Reboot ()
 
bool CanPowerdown ()
 
bool CanSuspend ()
 
bool CanHibernate ()
 
bool CanReboot ()
 
int BatteryLevel ()
 
void ProcessEvents ()
 
IPowerSyscallGetPowerSyscall () const
 
- Public Member Functions inherited from IPowerEventsCallback
virtual ~IPowerEventsCallback ()=default
 

Static Public Member Functions

static void SettingOptionsShutdownStatesFiller (const std::shared_ptr< const CSetting > &setting, std::vector< IntegerSettingOption > &list, int &current, void *data)
 

Constructor & Destructor Documentation

◆ CPowerManager()

CPowerManager::CPowerManager ( )

◆ ~CPowerManager()

CPowerManager::~CPowerManager ( )
overridedefault

Member Function Documentation

◆ BatteryLevel()

int CPowerManager::BatteryLevel ( )

◆ CanHibernate()

bool CPowerManager::CanHibernate ( )

◆ CanPowerdown()

bool CPowerManager::CanPowerdown ( )

◆ CanReboot()

bool CPowerManager::CanReboot ( )

◆ CanSuspend()

bool CPowerManager::CanSuspend ( )

◆ GetPowerSyscall()

IPowerSyscall * CPowerManager::GetPowerSyscall ( ) const
inline

◆ Hibernate()

bool CPowerManager::Hibernate ( )

◆ Initialize()

void CPowerManager::Initialize ( )

◆ Powerdown()

bool CPowerManager::Powerdown ( )

◆ ProcessEvents()

void CPowerManager::ProcessEvents ( )

◆ Reboot()

bool CPowerManager::Reboot ( )

◆ SetDefaults()

void CPowerManager::SetDefaults ( )

◆ SettingOptionsShutdownStatesFiller()

void CPowerManager::SettingOptionsShutdownStatesFiller ( const std::shared_ptr< const CSetting > & setting,
std::vector< IntegerSettingOption > & list,
int & current,
void * data )
static

◆ Suspend()

bool CPowerManager::Suspend ( )

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