|
Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
|
Class handling application support for screensavers, dpms and shutdown timers. More...
#include <ApplicationPowerHandling.h>
Public Member Functions | |
| bool | IsInScreenSaver () const |
| bool | IsScreenSaverInhibited () const |
| void | ResetScreenSaver () |
| void | SetScreenSaverLockFailed () |
| void | SetScreenSaverUnlocked () |
| void | StopScreenSaverTimer () |
| const std::string & | ScreensaverIdInUse () const |
| bool | GetRenderGUI () const |
| void | SetRenderGUI (bool renderGUI) |
| int | GlobalIdleTime () |
| void | ResetSystemIdleTimer () |
| bool | IsIdleShutdownInhibited () const |
| void | ResetShutdownTimers () |
| void | StopShutdownTimer () |
| void | ResetNavigationTimer () |
| bool | IsDPMSActive () const |
| bool | ToggleDPMS (bool manual) |
| bool | WakeUpScreenSaverAndDPMS (bool bPowerOffKeyPressed=false) |
| void | OnSettingChanged (const std::shared_ptr< const CSetting > &setting) override |
| The value of the given setting has changed. | |
| void | OnSettingAction (const std::shared_ptr< const CSetting > &setting) override |
| The given setting has been activated. | |
Public Member Functions inherited from IApplicationComponent | |
| virtual | ~IApplicationComponent ()=default |
Public Member Functions inherited from ISettingCallback | |
| virtual | ~ISettingCallback ()=default |
| virtual bool | OnSettingChanging (const std::shared_ptr< const CSetting > &setting) |
| The value of the given setting is being changed. | |
| virtual bool | OnSettingUpdate (const std::shared_ptr< CSetting > &setting, const char *oldSettingId, const TiXmlNode *oldSettingNode) |
| The given setting needs to be updated. | |
| virtual void | OnSettingPropertyChanged (const std::shared_ptr< const CSetting > &setting, const char *propertyName) |
| The given property of the given setting has changed. | |
Protected Member Functions | |
| void | ActivateScreenSaver (bool forceType=false) |
| void | CheckOSScreenSaverInhibitionSetting () |
| void | CheckScreenSaverAndDPMS () |
| void | InhibitScreenSaver (bool inhibit) |
| void | ResetScreenSaverTimer () |
| bool | WakeUpScreenSaver (bool bPowerOffKeyPressed=false) |
| void | InhibitIdleShutdown (bool inhibit) |
| void | HandleShutdownMessage () |
| Helper method to determine how to handle TMSG_SHUTDOWN. | |
| void | CheckShutdown () |
| float | NavigationIdleTime () |
Protected Attributes | |
| bool | m_renderGUI {false} |
| bool | m_bInhibitScreenSaver = false |
| bool | m_bResetScreenSaver = false |
| ADDON::AddonPtr | m_pythonScreenSaver |
| bool | m_screensaverActive = false |
| int | m_iScreenSaveLock = 0 |
| std::string | m_screensaverIdInUse |
| bool | m_dpmsIsActive = false |
| bool | m_dpmsIsManual = false |
| bool | m_bInhibitIdleShutdown = false |
| CStopWatch | m_navigationTimer |
| CStopWatch | m_shutdownTimer |
| CStopWatch | m_idleTimer |
| CStopWatch | m_screenSaverTimer |
| KODI::WINDOWING::COSScreenSaverInhibitor | m_globalScreensaverInhibitor |
| KODI::WINDOWING::COSScreenSaverInhibitor | m_screensaverInhibitor |
Friends | |
| class | CApplication |
| class | CApplicationMessageHandling |
Class handling application support for screensavers, dpms and shutdown timers.
|
protected |
|
protected |
|
protected |
|
inline |
| int CApplicationPowerHandling::GlobalIdleTime | ( | ) |
|
protected |
Helper method to determine how to handle TMSG_SHUTDOWN.
|
inline |
| bool CApplicationPowerHandling::IsIdleShutdownInhibited | ( | ) | const |
|
inline |
| bool CApplicationPowerHandling::IsScreenSaverInhibited | ( | ) | const |
|
protected |
|
overridevirtual |
The given setting has been activated.
This callback is triggered whenever the given setting has been activated. This callback is only fired for CSettingAction settings.
| setting | The setting which has been activated. |
Reimplemented from ISettingCallback.
|
overridevirtual |
The value of the given setting has changed.
This callback is triggered whenever the value of a setting has been successfully changed (i.e. none of the OnSettingChanging() handlers) has reverted the change.
| setting | The setting whose value has been changed |
Reimplemented from ISettingCallback.
| void CApplicationPowerHandling::ResetNavigationTimer | ( | ) |
| void CApplicationPowerHandling::ResetScreenSaver | ( | ) |
|
protected |
| void CApplicationPowerHandling::ResetShutdownTimers | ( | ) |
| void CApplicationPowerHandling::ResetSystemIdleTimer | ( | ) |
|
inline |
|
inline |
|
inline |
| void CApplicationPowerHandling::StopScreenSaverTimer | ( | ) |
| void CApplicationPowerHandling::StopShutdownTimer | ( | ) |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |