summaryrefslogtreecommitdiffstats
path: root/ksmserver/shutdowndlg.h
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2024-06-09 22:04:25 +0300
committerMavridis Philippe <[email protected]>2024-08-01 13:02:12 +0300
commitdb3f842c545ce838e40a50e8025268c833c9fc57 (patch)
tree2767fd9b56d84928b6c3f946cf8953f44e1159f4 /ksmserver/shutdowndlg.h
parent18d7e66404ccf8c4dcfb1c5f07103e258b576e7e (diff)
downloadtdebase-db3f842c545ce838e40a50e8025268c833c9fc57.tar.gz
tdebase-db3f842c545ce838e40a50e8025268c833c9fc57.zip
KSMServer: improve suspend code
1. Some code deduplication. Suspending is now handled via the public method `suspend(int)` which is DCOP-accessible and maps SuspendType values to corresponding TDEHWLib TDESystemPowerState values, and the internal method `suspendInternal(int)` which performs the chosen suspend and optionally locks the screen beforehand. 2. Options are now read from power-managerrc on startup and stored in memory to avoid reading the configuration file every time a suspend is requested. 3. SuspendType is now a member of KSMServer class (instead of KSMShutdownDlg) 4. A new DCOP-accessible method `suspendOptions()` returns a TQStringList of all available suspend options. Signed-off-by: Mavridis Philippe <[email protected]> (cherry picked from commit d88718ee027e329565d2d97c5cadde4aa1b83166)
Diffstat (limited to 'ksmserver/shutdowndlg.h')
-rw-r--r--ksmserver/shutdowndlg.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/ksmserver/shutdowndlg.h b/ksmserver/shutdowndlg.h
index 1c3e00e3b..5a9d652f2 100644
--- a/ksmserver/shutdowndlg.h
+++ b/ksmserver/shutdowndlg.h
@@ -34,17 +34,6 @@ class TDEAction;
#include <config.h>
-namespace SuspendType {
-enum SuspendType {
- NotSpecified = 0,
- Freeze,
- Standby,
- Suspend,
- Hibernate,
- HybridSuspend
-};
-};
-
// The (singleton) widget that makes/fades the desktop gray.
class KSMShutdownFeedback : public TQWidget
{
@@ -149,7 +138,6 @@ private:
TQString m_bootOption;
TQPopupMenu *targets;
TQStringList rebootOptions;
- bool m_lockOnResume;
int* m_selection;
};