diff options
Diffstat (limited to 'src/modules/SystemBackendPosix.h')
-rw-r--r-- | src/modules/SystemBackendPosix.h | 12 |
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; } |