aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/src-cpp/framework-OSInterface-template.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-02-01 17:10:42 -0500
committerKen Moore <ken@ixsystems.com>2018-02-01 17:10:42 -0500
commit6f251cac292ee2657ec60e0e33ba02e3d08fade8 (patch)
tree5f5d7eacbf12bff4d7dd6061a8b5b747f12a8fa8 /src-qt5/src-cpp/framework-OSInterface-template.cpp
parentFix up the single application numbering. (diff)
downloadlumina-6f251cac292ee2657ec60e0e33ba02e3d08fade8.tar.gz
lumina-6f251cac292ee2657ec60e0e33ba02e3d08fade8.tar.bz2
lumina-6f251cac292ee2657ec60e0e33ba02e3d08fade8.zip
Get the FreeBSD OSInterface class all setup.
Also test/fix some stuff in the build side of things. OSInterface no longer uses the LUtils and LXDG classes from libLumina.
Diffstat (limited to 'src-qt5/src-cpp/framework-OSInterface-template.cpp')
-rw-r--r--src-qt5/src-cpp/framework-OSInterface-template.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src-qt5/src-cpp/framework-OSInterface-template.cpp b/src-qt5/src-cpp/framework-OSInterface-template.cpp
index 6d1a7e74..c9c7775a 100644
--- a/src-qt5/src-cpp/framework-OSInterface-template.cpp
+++ b/src-qt5/src-cpp/framework-OSInterface-template.cpp
@@ -4,6 +4,12 @@
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
+// USEFUL INTERNAL FUNCTIONS: (See framework-OSInterface.h for all possibilities);
+//----------------------------------------------
+// bool verifyAppOrBin(QString chk) : Returns true is the check is a valid binary or application (*.desktop)
+// int runCmd(QString command, QStringList arguments) : return code of command is returned
+// QStringList getCmdOutput(QString command, QStringList arguments) : returns standard output of command
+//===========================================
#include <framework-OSInterface.h>
// = Battery =
@@ -15,7 +21,7 @@ double OSInterface::OS_batterySecondsLeft(){ return -1; }
// = Volume =
bool OSInterface::OS_volumeSupported(){ return false; }
int OSInterface::OS_volume(){ return -1; }
-void OSInterface::OS_setVolume(int){}
+bool OSInterface::OS_setVolume(int){ return false;}
// = Network Information =
QString OSInterface::OS_networkTypeFromDeviceName(QString name){
@@ -56,7 +62,7 @@ void OSInterface::OS_startSuspend(){}
// = Screen Brightness =
bool OSInterface::OS_brightnessSupported(){ return false; }
int OSInterface::OS_brightness(){ return -1; } //percentage: 0-100 with -1 for errors
-void OSInterface::OS_setBrightness(int){}
+bool OSInterface::OS_setBrightness(int){ return false; }
// = System Status Monitoring
bool OSInterface::OS_cpuSupported(){ return false; }
bgstack15