summaryrefslogtreecommitdiffstats
path: root/src/Common/SystemBackend.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-09-25 13:36:02 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-09-25 13:36:02 +0200
commitaf0f84058d322d68cbbff98ef272dd2bcd0f692c (patch)
tree23b1fb83790f2100ae2d16eb0af71122e88cba0a /src/Common/SystemBackend.h
parent3a8e13c8ef66a4fdb06b2051bd7ab95ca24cc81c (diff)
downloadmad-af0f84058d322d68cbbff98ef272dd2bcd0f692c.tar
mad-af0f84058d322d68cbbff98ef272dd2bcd0f692c.zip
Daemon-Host kann jetzt heruntergefahren und neu gestartet werden
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();
};
}