diff options
author | Ken Moore <ken@pcbsd.org> | 2014-09-12 11:43:21 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-09-12 11:43:21 -0400 |
commit | eaad2f3b8da84e6ac1e879f2995207162588f1ff (patch) | |
tree | fc168c145a36db404502b7cf74d1f5f10aa12a39 /libLumina/LuminaOS-template.cpp | |
parent | Update the *.desktop "Exec=" compliance to the standards as of 9/9/2014 in Lu... (diff) | |
download | lumina-eaad2f3b8da84e6ac1e879f2995207162588f1ff.tar.gz lumina-eaad2f3b8da84e6ac1e879f2995207162588f1ff.tar.bz2 lumina-eaad2f3b8da84e6ac1e879f2995207162588f1ff.zip |
Move all the OS-specific path PREFIX settings into LuminaOS so that we don't have all the different defines all over the place.
Diffstat (limited to 'libLumina/LuminaOS-template.cpp')
-rw-r--r-- | libLumina/LuminaOS-template.cpp | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/libLumina/LuminaOS-template.cpp b/libLumina/LuminaOS-template.cpp index be70e1a5..88d1b72e 100644 --- a/libLumina/LuminaOS-template.cpp +++ b/libLumina/LuminaOS-template.cpp @@ -9,54 +9,59 @@ #include <unistd.h> #include <stdio.h> // Needed for BUFSIZ +//OS-specific prefix(s) +QString LOS::AppPrefix(){ return "/usr/local/"; } //Prefix for applications +QString LOS::SysPrefix(){ return "/usr/"; } //Prefix for system + // ==== ExternalDevicePaths() ==== QStringList LOS::ExternalDevicePaths(){ //Returns: QStringList[<type>::::<filesystem>::::<path>] //Note: <type> = [USB, HDRIVE, DVD, SDCARD, UNKNOWN] - //Not implemented yet for Linux + //Not implemented yet return QStringList(); } //Read screen brightness information int LOS::ScreenBrightness(){ //Returns: Screen Brightness as a percentage (0-100, with -1 for errors) - return -1; //not implemented yet for Linux + return -1; //not implemented yet } //Set screen brightness void LOS::setScreenBrightness(int percent){ - //not implemented yet for Linux + //not implemented yet } //Read the current volume -int LOS::audioVolume(){ //Returns: audio volume as a percentage (0-100, with -1 for errors) - return -1; //Not implemented yet for Linux +int LOS::audioVolume(){ + //Returns: audio volume as a percentage (0-100, with -1 for errors) + return -1; //Not implemented yet } //Set the current volume void LOS::setAudioVolume(int percent){ - //not implemented yet for Linux + //not implemented yet } //Change the current volume a set amount (+ or -) void LOS::changeAudioVolume(int percentdiff){ - //not implemented yet for Linux + //not implemented yet } //Check if a graphical audio mixer is installed bool LOS::hasMixerUtility(){ - return false; //not implemented yet for Linux + return false; //not implemented yet } //Launch the graphical audio mixer utility void LOS::startMixerUtility(){ - //not implemented yet for Linux + //not implemented yet } //System Shutdown void LOS::systemShutdown(){ //start poweroff sequence - QProcess::startDetached("shutdown -h now"); + QProcess::startDetached("shutdown -p now"); } //System Restart @@ -66,22 +71,22 @@ void LOS::systemRestart(){ //start reboot sequence //Battery Availability bool LOS::hasBattery(){ - return false; //not implemented yet for Linux + return false; //not implemented yet } //Battery Charge Level int LOS::batteryCharge(){ //Returns: percent charge (0-100), anything outside that range is counted as an error - return -1; //not implemented yet for Linux + return -1; //not implemented yet } //Battery Charging State bool LOS::batteryIsCharging(){ - return false; //not implemented yet for Linux + return false; //not implemented yet } //Battery Time Remaining int LOS::batterySecondsLeft(){ //Returns: estimated number of seconds remaining - return 0; //not implemented yet for Linux + return 0; //not implemented yet } #endif |