summaryrefslogtreecommitdiffstats
path: root/ksmserver/shutdowndlg.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2016-04-24 19:34:38 +1000
committerMichele Calgaro <michele.calgaro@yahoo.it>2016-04-24 19:34:38 +1000
commite972ff07d575958a22b952bcc957e5bac1863965 (patch)
tree6da9bff65eca942554eba8ea5ea2d38f38ff27f3 /ksmserver/shutdowndlg.h
parent700426d3ab40fa9c1e1bb80fe559b0e03ea1f8de (diff)
downloadtdebase-e972ff07d575958a22b952bcc957e5bac1863965.tar.gz
tdebase-e972ff07d575958a22b952bcc957e5bac1863965.zip
ksmserver: Added support for hybrid suspend (aka suspend to RAM + suspend to disk).
This relates to bug 2601. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ksmserver/shutdowndlg.h')
-rw-r--r--ksmserver/shutdowndlg.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/ksmserver/shutdowndlg.h b/ksmserver/shutdowndlg.h
index a3864e616..25ee60f77 100644
--- a/ksmserver/shutdowndlg.h
+++ b/ksmserver/shutdowndlg.h
@@ -44,6 +44,17 @@ class TDEAction;
#include <hal/libhal.h>
#endif // COMPILE_HALBACKEND
+namespace SuspendType {
+enum SuspendType {
+ NotSpecified = 0,
+ Freeze,
+ Standby,
+ Suspend,
+ Hibernate,
+ HybridSuspend
+};
+};
+
// The (singleton) widget that makes/fades the desktop gray.
class KSMShutdownFeedback : public TQWidget
{
@@ -76,7 +87,6 @@ private:
int m_rowsDone;
KPixmapIO m_pmio;
bool m_greyImageCreated;
-
};
// The (singleton) widget that shows either pretty pictures or a black screen during logout
@@ -138,6 +148,7 @@ public slots:
void slotSuspend();
void slotHibernate();
void slotFreeze();
+ void slotHybridSuspend();
protected:
~KSMShutdownDlg();