summaryrefslogtreecommitdiffstats
path: root/src/modules/SystemBackendPosix.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-04-25 16:27:03 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-04-25 16:27:03 +0200
commit71dc41a9b7b0e939314a886383daa6fb2e297a55 (patch)
tree583d3b0ef8aeb01b94cb9b3297a3976705f99e6a /src/modules/SystemBackendPosix.h
parentc6f8a170e642b5b1a28bd85857f715846bbadbb4 (diff)
downloadmad-71dc41a9b7b0e939314a886383daa6fb2e297a55.tar
mad-71dc41a9b7b0e939314a886383daa6fb2e297a55.zip
SystemBackend und UserBackend in Backend und Manager aufgeteilt
Diffstat (limited to 'src/modules/SystemBackendPosix.h')
-rw-r--r--src/modules/SystemBackendPosix.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/SystemBackendPosix.h b/src/modules/SystemBackendPosix.h
index a307f22..b12af6b 100644
--- a/src/modules/SystemBackendPosix.h
+++ b/src/modules/SystemBackendPosix.h
@@ -55,13 +55,13 @@ class SystemBackendPosix : private Common::SystemBackend {
setChildHandler();
}
- void fsInfoCallback(int, const std::string &output, const sigc::slot<void, const std::vector<FSInfo>& > &callback);
+ void fsInfoCallback(int, const std::string &output, const sigc::slot<void, const std::vector<Common::SystemManager::FSInfo>& > &callback);
protected:
- virtual bool fsInfo(const sigc::slot<void, const std::vector<FSInfo>& > &callback);
+ virtual bool getFSInfo(const sigc::slot<void, const std::vector<Common::SystemManager::FSInfo>& > &callback);
- virtual bool doShutdown(const sigc::slot<void> &callback) {return exec(sigc::hide(callback), "/sbin/halt");}
- virtual bool doReboot(const sigc::slot<void> &callback) {return exec(sigc::hide(callback), "/sbin/reboot");}
+ virtual bool shutdown(const sigc::slot<void> &callback) {return exec(sigc::hide(callback), "/sbin/halt");}
+ virtual bool reboot(const sigc::slot<void> &callback) {return exec(sigc::hide(callback), "/sbin/reboot");}
public:
~SystemBackendPosix();
@@ -71,14 +71,14 @@ class SystemBackendPosix : private Common::SystemBackend {
return;
backend = new SystemBackendPosix();
- SystemBackend::registerBackend(backend);
+ Common::SystemManager::get()->registerBackend(backend);
}
static void unregisterBackend() {
if(!backend)
return;
- SystemBackend::unregisterBackend(backend);
+ Common::SystemManager::get()->unregisterBackend(backend);
delete backend;
backend = 0;
}