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

#include <PVRGUIActionsPowerManagement.h>

Inheritance diagram for PVR::CPVRGUIActionsPowerManagement:
PVR::IPVRComponent

Public Member Functions

 CPVRGUIActionsPowerManagement ()
 
 ~CPVRGUIActionsPowerManagement () override=default
 
bool CanSystemPowerdown (bool bAskUser=true) const
 Check whether the system Kodi is running on can be powered down (shutdown/reboot/suspend/hibernate) without stopping any active recordings and/or without preventing the start of recordings scheduled for now + pvrpowermanagement.backendidletime.
 
- Public Member Functions inherited from PVR::IPVRComponent
virtual ~IPVRComponent ()=default
 

Constructor & Destructor Documentation

◆ CPVRGUIActionsPowerManagement()

CPVRGUIActionsPowerManagement::CPVRGUIActionsPowerManagement ( )

◆ ~CPVRGUIActionsPowerManagement()

PVR::CPVRGUIActionsPowerManagement::~CPVRGUIActionsPowerManagement ( )
overridedefault

Member Function Documentation

◆ CanSystemPowerdown()

bool CPVRGUIActionsPowerManagement::CanSystemPowerdown ( bool bAskUser = true) const

Check whether the system Kodi is running on can be powered down (shutdown/reboot/suspend/hibernate) without stopping any active recordings and/or without preventing the start of recordings scheduled for now + pvrpowermanagement.backendidletime.

Parameters
bAskUserTrue to informs user in case of potential data loss. User can decide to allow powerdown anyway. False to not to ask user and to not confirm power down.
Returns
True if system can be safely powered down, false otherwise.

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