From 6f251cac292ee2657ec60e0e33ba02e3d08fade8 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 1 Feb 2018 17:10:42 -0500 Subject: 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. --- src-qt5/src-cpp/framework-OSInterface-template.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src-qt5/src-cpp/framework-OSInterface-template.cpp') 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 // = 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; } -- cgit