diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-07-07 22:14:25 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-07-07 22:37:13 +0900 |
commit | c76553c4fb3ee8f839c17b4dc3c3beb3c4338eb3 (patch) | |
tree | 165203f9bcab23defadc9c1f2a56c99365b5887f /tdecore/tdehw/tderootsystemdevice.cpp | |
parent | 32566accdab31f598381e7e68330055f4a7178f1 (diff) | |
download | tdelibs-c76553c4fb3ee8f839c17b4dc3c3beb3c4338eb3.tar.gz tdelibs-c76553c4fb3ee8f839c17b4dc3c3beb3c4338eb3.zip |
tdehw: TRUE/FALSE --> true/false renaming.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdecore/tdehw/tderootsystemdevice.cpp')
-rw-r--r-- | tdecore/tdehw/tderootsystemdevice.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/tdecore/tdehw/tderootsystemdevice.cpp b/tdecore/tdehw/tderootsystemdevice.cpp index 09613778b..741751581 100644 --- a/tdecore/tdehw/tderootsystemdevice.cpp +++ b/tdecore/tdehw/tderootsystemdevice.cpp @@ -91,7 +91,7 @@ bool TDERootSystemDevice::canSetHibernationMethod() { TQString hibernationnode = "/sys/power/disk"; int rval = access (hibernationnode.ascii(), W_OK); if (rval == 0) { - return TRUE; + return true; } #ifdef WITH_TDEHWLIB_DAEMONS @@ -112,7 +112,7 @@ bool TDERootSystemDevice::canSetHibernationMethod() { } #endif // WITH_TDEHWLIB_DAEMONS - return FALSE; + return false; } bool TDERootSystemDevice::canStandby() { @@ -120,10 +120,10 @@ bool TDERootSystemDevice::canStandby() { int rval = access (statenode.ascii(), W_OK); if (rval == 0) { if (powerStates().contains(TDESystemPowerState::Standby)) { - return TRUE; + return true; } else { - return FALSE; + return false; } } @@ -145,7 +145,7 @@ bool TDERootSystemDevice::canStandby() { } #endif // WITH_TDEHWLIB_DAEMONS - return FALSE; + return false; } bool TDERootSystemDevice::canFreeze() { @@ -153,10 +153,10 @@ bool TDERootSystemDevice::canFreeze() { int rval = access (statenode.ascii(), W_OK); if (rval == 0) { if (powerStates().contains(TDESystemPowerState::Freeze)) { - return TRUE; + return true; } else { - return FALSE; + return false; } } @@ -178,7 +178,7 @@ bool TDERootSystemDevice::canFreeze() { } #endif // WITH_TDEHWLIB_DAEMONS - return FALSE; + return false; } bool TDERootSystemDevice::canSuspend() { @@ -186,10 +186,10 @@ bool TDERootSystemDevice::canSuspend() { int rval = access (statenode.ascii(), W_OK); if (rval == 0) { if (powerStates().contains(TDESystemPowerState::Suspend)) { - return TRUE; + return true; } else { - return FALSE; + return false; } } @@ -291,7 +291,7 @@ bool TDERootSystemDevice::canSuspend() { } #endif // WITH_TDEHWLIB_DAEMONS - return FALSE; + return false; } bool TDERootSystemDevice::canHibernate() { @@ -301,10 +301,10 @@ bool TDERootSystemDevice::canHibernate() { int disk_rval = access (disknode.ascii(), W_OK); if (state_rval == 0 && disk_rval == 0) { if (powerStates().contains(TDESystemPowerState::Hibernate)) { - return TRUE; + return true; } else { - return FALSE; + return false; } } @@ -406,7 +406,7 @@ bool TDERootSystemDevice::canHibernate() { } #endif // WITH_TDEHWLIB_DAEMONS - return FALSE; + return false; } bool TDERootSystemDevice::canHybridSuspend() { @@ -416,10 +416,10 @@ bool TDERootSystemDevice::canHybridSuspend() { int disk_rval = access (disknode.ascii(), W_OK); if (state_rval == 0 && disk_rval == 0) { if (powerStates().contains(TDESystemPowerState::HybridSuspend)) { - return TRUE; + return true; } else { - return FALSE; + return false; } } @@ -482,14 +482,14 @@ bool TDERootSystemDevice::canHybridSuspend() { } #endif // WITH_TDEHWLIB_DAEMONS - return FALSE; + return false; } bool TDERootSystemDevice::canPowerOff() { TDEConfig config("ksmserverrc", true); config.setGroup("General" ); if (!config.readBoolEntry( "offerShutdown", true )) { - return FALSE; + return false; } #ifdef WITH_LOGINDPOWER @@ -532,16 +532,16 @@ bool TDERootSystemDevice::canPowerOff() { // Can we power down this system? // This should probably be checked via DCOP and therefore interface with TDM // if ( DM().canShutdown() ) { - // return TRUE; + // return true; // } - return TRUE; + return true; } bool TDERootSystemDevice::canReboot() { TDEConfig config("ksmserverrc", true); config.setGroup("General" ); if (!config.readBoolEntry( "offerShutdown", true )) { - return FALSE; + return false; } #ifdef WITH_LOGINDPOWER @@ -584,9 +584,9 @@ bool TDERootSystemDevice::canReboot() { // Can we power down this system? // This should probably be checked via DCOP and therefore interface with TDM // if ( DM().canShutdown() ) { - // return TRUE; + // return true; // } - return TRUE; + return true; } void TDERootSystemDevice::setHibernationMethod(TDESystemHibernationMethod::TDESystemHibernationMethod hm) { |