aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaOS-Debian.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-09-09 12:12:50 -0400
committerKen Moore <moorekou@gmail.com>2015-09-09 12:12:50 -0400
commit049a94d791e84a065eec0ca27e1f40a338b5db52 (patch)
tree25b8ec5d9b8c02c246e979f2e61c02307f898b4a /libLumina/LuminaOS-Debian.cpp
parentMake sure that drag events only happen with left/right mouse clicks, and clea... (diff)
downloadlumina-049a94d791e84a065eec0ca27e1f40a338b5db52.tar.gz
lumina-049a94d791e84a065eec0ca27e1f40a338b5db52.tar.bz2
lumina-049a94d791e84a065eec0ca27e1f40a338b5db52.zip
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.
Diffstat (limited to 'libLumina/LuminaOS-Debian.cpp')
-rw-r--r--libLumina/LuminaOS-Debian.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libLumina/LuminaOS-Debian.cpp b/libLumina/LuminaOS-Debian.cpp
index 85dd657e..593e3d24 100644
--- a/libLumina/LuminaOS-Debian.cpp
+++ b/libLumina/LuminaOS-Debian.cpp
@@ -144,6 +144,11 @@ bool LOS::userHasShutdownAccess(){
/org/freedesktop/login1 org.freedesktop.login1.Manager.CanPowerOff");
}
+//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("dbus-send --system --print-reply \
bgstack15