diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-11-04 00:26:20 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-11-04 00:26:20 +0900 |
commit | 12e0e7507ba21c17d6209091c682b9e7f71ad028 (patch) | |
tree | 90cd5330aa7c356a66db0afee1c41008e861a783 /src/hardware.cpp | |
parent | e0525e314afe0e2fc58e7be6597541fd2b2ab886 (diff) | |
download | tdepowersave-12e0e750.tar.gz tdepowersave-12e0e750.zip |
Renamed Sleep to Suspend, following discussion on a more consistent
naming convention for shutdown actions.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/hardware.cpp')
-rw-r--r-- | src/hardware.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/hardware.cpp b/src/hardware.cpp index 54d5027..f4efedd 100644 --- a/src/hardware.cpp +++ b/src/hardware.cpp @@ -200,9 +200,9 @@ void HardwareInfo::processKeyPressEvent(unsigned int keycode, TDEEventDevice* ed if (((edevice->eventType() == TDEEventDeviceType::ACPIPowerButton) || (edevice->eventType() == TDEEventDeviceType::ACPIOtherInput)) && (keycode == KEY_POWER)) { TQTimer::singleShot(50, this, TQT_SLOT(emitPowerButtonPressed())); - } else if (((edevice->eventType() == TDEEventDeviceType::ACPISleepButton) || (edevice->eventType() == TDEEventDeviceType::ACPIOtherInput)) + } else if (((edevice->eventType() == TDEEventDeviceType::ACPISuspendButton) || (edevice->eventType() == TDEEventDeviceType::ACPIOtherInput)) && (keycode == KEY_SLEEP)) { - TQTimer::singleShot(50, this, TQT_SLOT(emitSleepButtonPressed())); + TQTimer::singleShot(50, this, TQT_SLOT(emitSuspendButtonPressed())); } else if (((edevice->eventType() == TDEEventDeviceType::ACPISuspendButton) || (edevice->eventType() == TDEEventDeviceType::ACPIOtherInput)) && (keycode == KEY_SUSPEND)) { TQTimer::singleShot(50, this, TQT_SLOT(emitS2diskButtonPressed())); @@ -268,7 +268,7 @@ bool HardwareInfo::checkIfHandleDevice ( TQString _udi, int *type) { *type = LID; } else if (edevice->eventType() == TDEEventDeviceType::ACPIPowerButton) { *type = BUTTON_POWER; - } else if (edevice->eventType() == TDEEventDeviceType::ACPISleepButton) { + } else if (edevice->eventType() == TDEEventDeviceType::ACPISuspendButton) { *type = BUTTON_SLEEP; } else { ret = false; @@ -842,9 +842,9 @@ bool HardwareInfo::suspend( suspend_type suspend ) { } } else { if ( !suspend_states.suspend2ram ) - kdDebug() << "The machine does not support Sleep mode." << endl; + kdDebug() << "The machine does not support Suspend mode." << endl; else - kdWarning() << "Policy forbid user to trigger Sleep mode" << endl; + kdWarning() << "Policy forbid user to trigger Suspend mode" << endl; return false; } @@ -1097,9 +1097,9 @@ void HardwareInfo::emitPowerButtonPressed() { } /*! - * Function to emit the signal for the Sleep button. + * Function to emit the signal for the Suspend button. */ -void HardwareInfo::emitSleepButtonPressed() { +void HardwareInfo::emitSuspendButtonPressed() { if (sessionIsActive) { emit sleepButtonPressed(); } else { |