diff options
Diffstat (limited to 'src/Common/SystemBackend.cpp')
-rw-r--r-- | src/Common/SystemBackend.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Common/SystemBackend.cpp b/src/Common/SystemBackend.cpp index 06a2898..2370b89 100644 --- a/src/Common/SystemBackend.cpp +++ b/src/Common/SystemBackend.cpp @@ -52,6 +52,15 @@ bool SystemBackend::getLoadInfo(const sigc::slot<void, unsigned long, unsigned l return false; } +bool SystemBackend::getFSInfo(const sigc::slot<void, const std::vector<FSInfo>& > &callback) { + for(std::set<SystemBackend*>::iterator backend = backends.begin(); backend != backends.end(); ++backend) { + if((*backend)->fsInfo(callback)) + return true; + } + + return false; +} + bool SystemBackend::shutdown(const sigc::slot<void> &callback) { for(std::set<SystemBackend*>::iterator backend = backends.begin(); backend != backends.end(); ++backend) { if((*backend)->doShutdown(callback)) |