From 71dc41a9b7b0e939314a886383daa6fb2e297a55 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 25 Apr 2009 16:27:03 +0200 Subject: SystemBackend und UserBackend in Backend und Manager aufgeteilt --- src/modules/SystemBackendPosix.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/SystemBackendPosix.h') 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& > &callback); + void fsInfoCallback(int, const std::string &output, const sigc::slot& > &callback); protected: - virtual bool fsInfo(const sigc::slot& > &callback); + virtual bool getFSInfo(const sigc::slot& > &callback); - virtual bool doShutdown(const sigc::slot &callback) {return exec(sigc::hide(callback), "/sbin/halt");} - virtual bool doReboot(const sigc::slot &callback) {return exec(sigc::hide(callback), "/sbin/reboot");} + virtual bool shutdown(const sigc::slot &callback) {return exec(sigc::hide(callback), "/sbin/halt");} + virtual bool reboot(const sigc::slot &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; } -- cgit v1.2.3