summaryrefslogtreecommitdiffstats
path: root/src/Common/SystemBackend.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/SystemBackend.h')
-rw-r--r--src/Common/SystemBackend.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Common/SystemBackend.h b/src/Common/SystemBackend.h
index c531224..d9506a9 100644
--- a/src/Common/SystemBackend.h
+++ b/src/Common/SystemBackend.h
@@ -85,6 +85,9 @@ class SystemBackend {
return ret;
}
+ virtual bool doShutdown() {return false;}
+ virtual bool doReboot() {return false;}
+
virtual int getPriority() const {
return 0;
}
@@ -95,6 +98,9 @@ class SystemBackend {
static UptimeInfo getUptimeInfo();
static MemoryInfo getMemoryInfo();
static LoadInfo getLoadInfo();
+
+ static bool shutdown();
+ static bool reboot();
};
}