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

#include <DPMSSupport.h>

Inheritance diagram for CDPMSSupport:
CCocoaDPMSSupport CGBMDPMSSupport CWin32DPMSSupport CX11DPMSSupport

Public Types

enum  PowerSavingMode { STANDBY , SUSPEND , OFF , NUM_MODES }
 

Public Member Functions

 CDPMSSupport ()
 
virtual ~CDPMSSupport ()=default
 
bool IsSupported () const
 
const std::vector< PowerSavingMode > & GetSupportedModes () const
 
bool IsModeSupported (PowerSavingMode mode) const
 
virtual bool EnablePowerSaving (PowerSavingMode mode)=0
 
virtual bool DisablePowerSaving ()=0
 

Protected Attributes

std::vector< PowerSavingModem_supportedModes
 

Member Enumeration Documentation

◆ PowerSavingMode

Enumerator
STANDBY 
SUSPEND 
OFF 
NUM_MODES 

Constructor & Destructor Documentation

◆ CDPMSSupport()

CDPMSSupport::CDPMSSupport ( )

◆ ~CDPMSSupport()

virtual CDPMSSupport::~CDPMSSupport ( )
virtualdefault

Member Function Documentation

◆ DisablePowerSaving()

virtual bool CDPMSSupport::DisablePowerSaving ( )
pure virtual

◆ EnablePowerSaving()

virtual bool CDPMSSupport::EnablePowerSaving ( PowerSavingMode mode)
pure virtual

◆ GetSupportedModes()

const std::vector< PowerSavingMode > & CDPMSSupport::GetSupportedModes ( ) const
inline

◆ IsModeSupported()

bool CDPMSSupport::IsModeSupported ( PowerSavingMode mode) const

◆ IsSupported()

bool CDPMSSupport::IsSupported ( ) const
inline

Member Data Documentation

◆ m_supportedModes

std::vector<PowerSavingMode> CDPMSSupport::m_supportedModes
protected

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