#include <PVRGUIActionsPowerManagement.h>
◆ CPVRGUIActionsPowerManagement()
CPVRGUIActionsPowerManagement::CPVRGUIActionsPowerManagement |
( |
| ) |
|
◆ ~CPVRGUIActionsPowerManagement()
PVR::CPVRGUIActionsPowerManagement::~CPVRGUIActionsPowerManagement |
( |
| ) |
|
|
overridedefault |
◆ 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
-
bAskUser | True 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: