diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-05-22 14:21:06 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-05-22 14:21:06 +0200 |
commit | 0480576d43fb7ddcc16de9dab0619a1424f129fd (patch) | |
tree | 633f11b0ee7b9bfe20478cd47e8d6ec397627ad5 /src/Common/SystemBackend.h | |
parent | 264cd7947d7291f78065f12824523ba6178a9936 (diff) | |
download | mad-0480576d43fb7ddcc16de9dab0619a1424f129fd.tar mad-0480576d43fb7ddcc16de9dab0619a1424f129fd.zip |
SystemBackend ?berarbeitet
Diffstat (limited to 'src/Common/SystemBackend.h')
-rw-r--r-- | src/Common/SystemBackend.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/Common/SystemBackend.h b/src/Common/SystemBackend.h index 7b9ee04..1543207 100644 --- a/src/Common/SystemBackend.h +++ b/src/Common/SystemBackend.h @@ -31,28 +31,28 @@ class SystemBackend { protected: friend class SystemManager; - virtual bool getUptimeInfo(unsigned long *uptime _UNUSED_PARAMETER_, unsigned long *idleTime _UNUSED_PARAMETER_) { - return false; + virtual void getUptimeInfo(unsigned long *uptime _UNUSED_PARAMETER_, unsigned long *idleTime _UNUSED_PARAMETER_) throw(Net::Exception) { + throw Net::Exception(Net::Exception::NOT_IMPLEMENTED); } - virtual bool getMemoryInfo(unsigned long *totalMem _UNUSED_PARAMETER_, unsigned long *freeMem _UNUSED_PARAMETER_, unsigned long *totalSwap _UNUSED_PARAMETER_, unsigned long *freeSwap _UNUSED_PARAMETER_) { - return false; + virtual void getMemoryInfo(unsigned long *totalMem _UNUSED_PARAMETER_, unsigned long *freeMem _UNUSED_PARAMETER_, unsigned long *totalSwap _UNUSED_PARAMETER_, unsigned long *freeSwap _UNUSED_PARAMETER_) throw(Net::Exception) { + throw Net::Exception(Net::Exception::NOT_IMPLEMENTED); } - virtual bool getLoadInfo(unsigned long *currentLoad _UNUSED_PARAMETER_, unsigned long *nProcesses _UNUSED_PARAMETER_, float *loadAvg1 _UNUSED_PARAMETER_, float *loadAvg5 _UNUSED_PARAMETER_, float *loadAvg15 _UNUSED_PARAMETER_) { - return false; + virtual void getLoadInfo(unsigned long *currentLoad _UNUSED_PARAMETER_, unsigned long *nProcesses _UNUSED_PARAMETER_, float *loadAvg1 _UNUSED_PARAMETER_, float *loadAvg5 _UNUSED_PARAMETER_, float *loadAvg15 _UNUSED_PARAMETER_) throw(Net::Exception) { + throw Net::Exception(Net::Exception::NOT_IMPLEMENTED); } - virtual bool getFSInfo(std::vector<SystemManager::FSInfo> *fsInfo _UNUSED_PARAMETER_) { - return false; + virtual void getFSInfo(std::vector<SystemManager::FSInfo> *fsInfo _UNUSED_PARAMETER_) throw(Net::Exception) { + throw Net::Exception(Net::Exception::NOT_IMPLEMENTED); } - virtual bool shutdown() { - return false; + virtual void shutdown() throw(Net::Exception) { + throw Net::Exception(Net::Exception::NOT_IMPLEMENTED); } - virtual bool reboot() { - return false; + virtual void reboot() throw(Net::Exception) { + throw Net::Exception(Net::Exception::NOT_IMPLEMENTED); } virtual int getPriority() const { |