From 766c56a693e8b1bd4293459bb256abdc0515a0b5 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 9 Jun 2009 19:01:02 +0200 Subject: Teile der Namespaces Common und Net in den neuen Namespace Core verschoben --- .../SystemBackendPosix/SystemBackendPosix.cpp | 20 ++++++++++---------- src/modules/SystemBackendPosix/SystemBackendPosix.h | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'src/modules/SystemBackendPosix') diff --git a/src/modules/SystemBackendPosix/SystemBackendPosix.cpp b/src/modules/SystemBackendPosix/SystemBackendPosix.cpp index 35e6c4f..4eb5807 100644 --- a/src/modules/SystemBackendPosix/SystemBackendPosix.cpp +++ b/src/modules/SystemBackendPosix/SystemBackendPosix.cpp @@ -19,7 +19,7 @@ #include "SystemBackendPosix.h" -#include +#include #include #include @@ -29,12 +29,12 @@ namespace Modules { boost::shared_ptr SystemBackendPosix::backend; -void SystemBackendPosix::getFSInfo(std::vector *fsInfo) throw(Net::Exception) { - Net::ThreadManager::get()->detach(); +void SystemBackendPosix::getFSInfo(std::vector *fsInfo) throw(Core::Exception) { + Core::ThreadManager::get()->detach(); FILE *pipe = popen("/bin/df -P -k", "r"); if(!pipe) - throw(Net::Exception(Net::Exception::NOT_AVAILABLE)); + throw(Core::Exception(Core::Exception::NOT_AVAILABLE)); char buffer[1024]; std::string output; @@ -78,18 +78,18 @@ void SystemBackendPosix::getFSInfo(std::vector *f return; } -void SystemBackendPosix::shutdown() throw(Net::Exception) { - Net::ThreadManager::get()->detach(); +void SystemBackendPosix::shutdown() throw(Core::Exception) { + Core::ThreadManager::get()->detach(); if(system("/sbin/halt") != 0) - throw(Net::Exception(Net::Exception::NOT_AVAILABLE)); + throw(Core::Exception(Core::Exception::NOT_AVAILABLE)); } -void SystemBackendPosix::reboot() throw(Net::Exception) { - Net::ThreadManager::get()->detach(); +void SystemBackendPosix::reboot() throw(Core::Exception) { + Core::ThreadManager::get()->detach(); if(system("/sbin/reboot") != 0) - throw(Net::Exception(Net::Exception::NOT_AVAILABLE)); + throw(Core::Exception(Core::Exception::NOT_AVAILABLE)); } } diff --git a/src/modules/SystemBackendPosix/SystemBackendPosix.h b/src/modules/SystemBackendPosix/SystemBackendPosix.h index e462b43..4aec7dd 100644 --- a/src/modules/SystemBackendPosix/SystemBackendPosix.h +++ b/src/modules/SystemBackendPosix/SystemBackendPosix.h @@ -38,10 +38,10 @@ class SystemBackendPosix : public Common::SystemBackend { static boost::shared_ptr backend; protected: - virtual void getFSInfo(std::vector *fsInfo) throw(Net::Exception); + virtual void getFSInfo(std::vector *fsInfo) throw(Core::Exception); - virtual void shutdown() throw(Net::Exception); - virtual void reboot() throw(Net::Exception); + virtual void shutdown() throw(Core::Exception); + virtual void reboot() throw(Core::Exception); public: static void registerBackend() { -- cgit v1.2.3