kodi
Public Member Functions | List of all members
PVR::CPVRGUIActionsPowerManagement Class Reference
Inheritance diagram for PVR::CPVRGUIActionsPowerManagement:
Inheritance graph
[legend]
Collaboration diagram for PVR::CPVRGUIActionsPowerManagement:
Collaboration graph
[legend]

Public Member Functions

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. More...
 

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: