aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaOS.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-06-10 15:32:29 -0400
committerKen Moore <ken@pcbsd.org>2015-06-10 15:32:29 -0400
commit2bb476d52448ddc0833667feb126d7e6f2342b2d (patch)
tree7facc087a41be4cc16ce1119945470a5fc0ecad5 /libLumina/LuminaOS.h
parentAdjust the themes to use the PRIMARY colors instead of the ACCENT colors for ... (diff)
downloadlumina-2bb476d52448ddc0833667feb126d7e6f2342b2d.tar.gz
lumina-2bb476d52448ddc0833667feb126d7e6f2342b2d.tar.bz2
lumina-2bb476d52448ddc0833667feb126d7e6f2342b2d.zip
Add a new function to LuminaOS: DiskUsage()
This returns the current stats about the available disks on the system (current read/write rates on FreeBSD - not implemented on other OS's yet). Also use this new function in the systemmonitor desktop plugin.
Diffstat (limited to 'libLumina/LuminaOS.h')
-rw-r--r--libLumina/LuminaOS.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libLumina/LuminaOS.h b/libLumina/LuminaOS.h
index 738be5e4..2780c80c 100644
--- a/libLumina/LuminaOS.h
+++ b/libLumina/LuminaOS.h
@@ -1,6 +1,6 @@
//===========================================
// Lumina-DE source code
-// Copyright (c) 2014, Ken Moore
+// Copyright (c) 2014-15, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
@@ -96,6 +96,7 @@ public:
static QStringList CPUTemperatures(); //Returns: List containing the temperature of any CPU's ("50C" for example)
static int CPUUsagePercent(); //Returns: Overall percentage of the amount of CPU cycles in use (-1 for errors)
static int MemoryUsagePercent(); //Returns: Overall percentage of the amount of available memory in use (-1 for errors)
+ static QStringList DiskUsage(); //Returns: List of current read/write stats for each device
};
#endif
bgstack15