diff options
author | Ken Moore <ken@ixsystems.com> | 2017-02-27 11:36:53 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-02-27 11:36:53 -0500 |
commit | 9ec94b09e6f80300ff793990c7caaa7585ed698a (patch) | |
tree | 0a37fde1bf970b1d3b478b49a07854f9df71df3c /src-qt5 | |
parent | Silence a compile warning in LDesktopUtils (unused variable) (diff) | |
download | lumina-9ec94b09e6f80300ff793990c7caaa7585ed698a.tar.gz lumina-9ec94b09e6f80300ff793990c7caaa7585ed698a.tar.bz2 lumina-9ec94b09e6f80300ff793990c7caaa7585ed698a.zip |
Silence some compile warnings in all the various OS templates.
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/core/libLumina/LuminaOS-Debian.cpp | 6 | ||||
-rw-r--r-- | src-qt5/core/libLumina/LuminaOS-DragonFly.cpp | 6 | ||||
-rw-r--r-- | src-qt5/core/libLumina/LuminaOS-Gentoo.cpp | 6 | ||||
-rw-r--r-- | src-qt5/core/libLumina/LuminaOS-Linux.cpp | 6 | ||||
-rw-r--r-- | src-qt5/core/libLumina/LuminaOS-NetBSD.cpp | 12 | ||||
-rw-r--r-- | src-qt5/core/libLumina/LuminaOS-OpenBSD.cpp | 6 | ||||
-rw-r--r-- | src-qt5/core/libLumina/LuminaOS-Slackware.cpp | 6 | ||||
-rw-r--r-- | src-qt5/core/libLumina/LuminaOS-kFreeBSD.cpp | 13 | ||||
-rw-r--r-- | src-qt5/core/libLumina/LuminaOS-template.cpp | 22 |
9 files changed, 51 insertions, 32 deletions
diff --git a/src-qt5/core/libLumina/LuminaOS-Debian.cpp b/src-qt5/core/libLumina/LuminaOS-Debian.cpp index 4acbe7d8..cb55e5ee 100644 --- a/src-qt5/core/libLumina/LuminaOS-Debian.cpp +++ b/src-qt5/core/libLumina/LuminaOS-Debian.cpp @@ -158,14 +158,16 @@ QString LOS::systemPendingUpdates(){ } //System Shutdown -void LOS::systemShutdown(bool skipupdates){ //start poweroff sequence +void LOS::systemShutdown(bool){ //start poweroff sequence + //INPUT: skip updates (true/false) QProcess::startDetached("dbus-send --system --print-reply \ --dest=org.freedesktop.login1 /org/freedesktop/login1 \ org.freedesktop.login1.Manager.PowerOff boolean:true"); } //System Restart -void LOS::systemRestart(bool skipupdates){ //start reboot sequence +void LOS::systemRestart(bool){ //start reboot sequence + //INPUT: skip updates (true/false) QProcess::startDetached("dbus-send --system --print-reply \ --dest=org.freedesktop.login1 /org/freedesktop/login1 \ org.freedesktop.login1.Manager.Reboot boolean:true"); diff --git a/src-qt5/core/libLumina/LuminaOS-DragonFly.cpp b/src-qt5/core/libLumina/LuminaOS-DragonFly.cpp index ac25815f..6cd72e03 100644 --- a/src-qt5/core/libLumina/LuminaOS-DragonFly.cpp +++ b/src-qt5/core/libLumina/LuminaOS-DragonFly.cpp @@ -234,12 +234,14 @@ QString LOS::systemPendingUpdates(){ } //System Shutdown -void LOS::systemShutdown(bool skipupdates){ //start poweroff sequence +void LOS::systemShutdown(bool){ //start poweroff sequence + //INPUT: skip updates (true/false) QProcess::startDetached("shutdown -p now"); } //System Restart -void LOS::systemRestart(bool skipupdates){ //start reboot sequence +void LOS::systemRestart(bool){ //start reboot sequence + //INPUT: skip updates (true/false) QProcess::startDetached("shutdown -r now"); } diff --git a/src-qt5/core/libLumina/LuminaOS-Gentoo.cpp b/src-qt5/core/libLumina/LuminaOS-Gentoo.cpp index b92d1b02..40163aab 100644 --- a/src-qt5/core/libLumina/LuminaOS-Gentoo.cpp +++ b/src-qt5/core/libLumina/LuminaOS-Gentoo.cpp @@ -158,14 +158,16 @@ QString LOS::systemPendingUpdates(){ } //System Shutdown -void LOS::systemShutdown(bool skipupdates){ //start poweroff sequence +void LOS::systemShutdown(bool){ //start poweroff sequence + //INPUT: skip updates (true/false) QProcess::startDetached("dbus-send --system --print-reply \ --dest=org.freedesktop.login1 /org/freedesktop/login1 \ org.freedesktop.login1.Manager.PowerOff boolean:true"); } //System Restart -void LOS::systemRestart(bool skipupdates){ //start reboot sequence +void LOS::systemRestart(bool){ //start reboot sequence + //INPUT: skip updates (true/false) QProcess::startDetached("dbus-send --system --print-reply \ --dest=org.freedesktop.login1 /org/freedesktop/login1 \ org.freedesktop.login1.Manager.Reboot boolean:true"); diff --git a/src-qt5/core/libLumina/LuminaOS-Linux.cpp b/src-qt5/core/libLumina/LuminaOS-Linux.cpp index 9d5980eb..678dee95 100644 --- a/src-qt5/core/libLumina/LuminaOS-Linux.cpp +++ b/src-qt5/core/libLumina/LuminaOS-Linux.cpp @@ -150,12 +150,14 @@ QString LOS::systemPendingUpdates(){ } //System Shutdown -void LOS::systemShutdown(bool skipupdates){ //start poweroff sequence +void LOS::systemShutdown(bool){ //start poweroff sequence + //INPUT: skip updates (true/false) QProcess::startDetached("shutdown -P -h now"); } //System Restart -void LOS::systemRestart(bool skipupdates){ //start reboot sequence +void LOS::systemRestart(bool){ //start reboot sequence + //INPUT: skip updates (true/false) QProcess::startDetached("shutdown -r now"); } diff --git a/src-qt5/core/libLumina/LuminaOS-NetBSD.cpp b/src-qt5/core/libLumina/LuminaOS-NetBSD.cpp index 75feb345..b05185e9 100644 --- a/src-qt5/core/libLumina/LuminaOS-NetBSD.cpp +++ b/src-qt5/core/libLumina/LuminaOS-NetBSD.cpp @@ -43,7 +43,7 @@ int LOS::ScreenBrightness(){ } //Set screen brightness -void LOS::setScreenBrightness(int percent){ +void LOS::setScreenBrightness(int){ //percent: 0-100 //not implemented yet } @@ -54,12 +54,12 @@ int LOS::audioVolume(){ } //Set the current volume -void LOS::setAudioVolume(int percent){ +void LOS::setAudioVolume(int){ //percent: 0-100 //not implemented yet } //Change the current volume a set amount (+ or -) -void LOS::changeAudioVolume(int percentdiff){ +void LOS::changeAudioVolume(int){ //percent difference (+ or -) //not implemented yet } @@ -91,12 +91,14 @@ QString LOS::systemPendingUpdates(){ } //System Shutdown -void LOS::systemShutdown(bool skipupdates){ //start poweroff sequence +void LOS::systemShutdown(bool){ //start poweroff sequence + //INPUT: skip updates (true/false) QProcess::startDetached("shutdown -p now"); } //System Restart -void LOS::systemRestart(bool skipupdates){ //start reboot sequence +void LOS::systemRestart(bool){ //start reboot sequence + //INPUT: skip updates (true/false) QProcess::startDetached("shutdown -r now"); } diff --git a/src-qt5/core/libLumina/LuminaOS-OpenBSD.cpp b/src-qt5/core/libLumina/LuminaOS-OpenBSD.cpp index b208c314..10f58ea5 100644 --- a/src-qt5/core/libLumina/LuminaOS-OpenBSD.cpp +++ b/src-qt5/core/libLumina/LuminaOS-OpenBSD.cpp @@ -170,12 +170,14 @@ QString LOS::systemPendingUpdates(){ } //System Shutdown -void LOS::systemShutdown(bool skipupdates){ //start poweroff sequence +void LOS::systemShutdown(bool){ //start poweroff sequence + //INPUT: skip updates (true/false) QProcess::startDetached("shutdown -p now"); } //System Restart -void LOS::systemRestart(bool skipupdates){ //start reboot sequence +void LOS::systemRestart(bool){ //start reboot sequence + //INPUT: skip updates (true/false) QProcess::startDetached("shutdown -r now"); } diff --git a/src-qt5/core/libLumina/LuminaOS-Slackware.cpp b/src-qt5/core/libLumina/LuminaOS-Slackware.cpp index 6a7bee10..5e2c6561 100644 --- a/src-qt5/core/libLumina/LuminaOS-Slackware.cpp +++ b/src-qt5/core/libLumina/LuminaOS-Slackware.cpp @@ -150,12 +150,14 @@ QString LOS::systemPendingUpdates(){ } //System Shutdown -void LOS::systemShutdown(bool skipupdates){ //start poweroff sequence +void LOS::systemShutdown(bool){ //start poweroff sequence + //INPUT: skip updates (true/false) QProcess::startDetached("dbus-send --system --print-reply=literal --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop"); } //System Restart -void LOS::systemRestart(bool skipupdates){ //start reboot sequence +void LOS::systemRestart(bool){ //start reboot sequence + //INPUT: skip updates (true/false) QProcess::startDetached("dbus-send --system --print-reply=literal --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart"); } diff --git a/src-qt5/core/libLumina/LuminaOS-kFreeBSD.cpp b/src-qt5/core/libLumina/LuminaOS-kFreeBSD.cpp index 62bbdb1c..5ec9751e 100644 --- a/src-qt5/core/libLumina/LuminaOS-kFreeBSD.cpp +++ b/src-qt5/core/libLumina/LuminaOS-kFreeBSD.cpp @@ -95,7 +95,7 @@ int LOS::audioVolume(){ //Returns: audio volume as a percentage (0-100, with -1 } //Set the current volume -void LOS::setAudioVolume(int percent){ +void LOS::setAudioVolume(int){ //percent: 0-100 return; } @@ -137,12 +137,14 @@ QString LOS::systemPendingUpdates(){ } //System Shutdown -void LOS::systemShutdown(bool skipupdates){ //start poweroff sequence +void LOS::systemShutdown(bool){ //start poweroff sequence + //INPUT: skip updates (true/false) QProcess::startDetached("shutdown -h now"); } //System Restart -void LOS::systemRestart(bool skipupdates){ //start reboot sequence +void LOS::systemRestart(bool){ //start reboot sequence + //INPUT: skip updates (true/false) QProcess::startDetached("shutdown -r now"); } @@ -177,12 +179,12 @@ int LOS::batterySecondsLeft(){ //Returns: estimated number of seconds remaining } //File Checksums -QStringList LOS::Checksums(QStringList filepaths){ //Return: checksum of the input file +QStringList LOS::Checksums(QStringList){ //Return: checksum of the input file return QStringList(); } //file system capacity -QString LOS::FileSystemCapacity(QString dir) { //Return: percentage capacity as give by the df command +QString LOS::FileSystemCapacity(QString) { //Return: percentage capacity as give by the df command return QString(); } @@ -202,4 +204,3 @@ QStringList LOS::DiskUsage(){ //Returns: List of current read/write stats for ea return QStringList(); //not implemented yet } #endif -#endif diff --git a/src-qt5/core/libLumina/LuminaOS-template.cpp b/src-qt5/core/libLumina/LuminaOS-template.cpp index c6dedf3b..90aab15c 100644 --- a/src-qt5/core/libLumina/LuminaOS-template.cpp +++ b/src-qt5/core/libLumina/LuminaOS-template.cpp @@ -9,7 +9,7 @@ #include <unistd.h> #include <stdio.h> // Needed for BUFSIZ -QString LOS::OSName(){ return "Sample"; } +QString LOS::OSName(){ return "Unknown"; } //OS-specific prefix(s) // NOTE: PREFIX, L_ETCDIR, L_SHAREDIR are defined in the OS-detect.pri project file and passed in @@ -39,7 +39,7 @@ int LOS::ScreenBrightness(){ } //Set screen brightness -void LOS::setScreenBrightness(int percent){ +void LOS::setScreenBrightness(int){ //percent: 0-100 //not implemented yet } @@ -50,12 +50,12 @@ int LOS::audioVolume(){ } //Set the current volume -void LOS::setAudioVolume(int percent){ +void LOS::setAudioVolume(int){ //percent: 0-100 //not implemented yet } //Change the current volume a set amount (+ or -) -void LOS::changeAudioVolume(int percentdiff){ +void LOS::changeAudioVolume(int){ //percent difference from current (+ or -) //not implemented yet } @@ -84,12 +84,14 @@ QString LOS::systemPendingUpdates(){ } //System Shutdown -void LOS::systemShutdown(bool skipupdates){ //start poweroff sequence +void LOS::systemShutdown(bool){ //start poweroff sequence + //INPUT: skip updates (true/false) QProcess::startDetached("shutdown -p now"); } //System Restart -void LOS::systemRestart(bool skipupdates){ //start reboot sequence +void LOS::systemRestart(bool){ //start reboot sequence + //INPUT: skip updates (true/false) QProcess::startDetached("shutdown -r now"); } @@ -124,12 +126,14 @@ int LOS::batterySecondsLeft(){ //Returns: estimated number of seconds remaining } //File Checksums -QStringList LOS::Checksums(QStringList filepaths){ //Return: checksum of the input file - return QStringList(); +QStringList LOS::Checksums(QStringList){ //QStringList filepaths + //Return: checksum of the input file + return QStringList(); } //file system capacity -QString LOS::FileSystemCapacity(QString dir) { //Return: percentage capacity as give by the df command +QString LOS::FileSystemCapacity(QString) { //QString directory path + //Return: percentage capacity as give by the df command return QString(); } |