From 049a94d791e84a065eec0ca27e1f40a338b5db52 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 9 Sep 2015 12:12:50 -0400 Subject: Add a new function to LuminaOS: systemPerformingUpdates() This returns true if the system is in the middle of applying updates and cannot be powered off at the present time. --- libLumina/LuminaOS-kFreeBSD.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libLumina/LuminaOS-kFreeBSD.cpp') diff --git a/libLumina/LuminaOS-kFreeBSD.cpp b/libLumina/LuminaOS-kFreeBSD.cpp index 91de843c..d651de4d 100644 --- a/libLumina/LuminaOS-kFreeBSD.cpp +++ b/libLumina/LuminaOS-kFreeBSD.cpp @@ -123,6 +123,11 @@ bool LOS::userHasShutdownAccess(){ return true; //not implemented yet } +//Check for whether the system is safe to power off (no updates being perfomed) +bool LOS::systemPerformingUpdates(){ + return false; //Not implemented yet +} + //System Shutdown void LOS::systemShutdown(){ //start poweroff sequence QProcess::startDetached("shutdown -h now"); -- cgit