diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2016-04-24 19:22:56 +1000 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2016-04-24 19:22:56 +1000 |
commit | 3b095cf3cd208624f0f7fdb353982185827aa6a4 (patch) | |
tree | fc1eaff5c910be87302bd2f895230109c552636a /tdecore/tdehw/tderootsystemdevice.h | |
parent | dfd961b2b9ee29c7ca05c4e288cdeaaff9b2d6e8 (diff) | |
download | tdelibs-3b095cf3cd208624f0f7fdb353982185827aa6a4.tar.gz tdelibs-3b095cf3cd208624f0f7fdb353982185827aa6a4.zip |
tdecore: Initial support for hybrid suspend (aka suspend to RAM + suspend to disk).
Update to dbus interface and hardware device manager will be commit separately.
This relates to bug 2601.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdecore/tdehw/tderootsystemdevice.h')
-rw-r--r-- | tdecore/tdehw/tderootsystemdevice.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tdecore/tdehw/tderootsystemdevice.h b/tdecore/tdehw/tderootsystemdevice.h index 7809fb09c..a28ff62a1 100644 --- a/tdecore/tdehw/tderootsystemdevice.h +++ b/tdecore/tdehw/tderootsystemdevice.h @@ -41,7 +41,8 @@ enum TDESystemPowerState { Suspend, Hibernate, PowerOff, - Reboot + Reboot, + HybridSuspend }; }; @@ -52,7 +53,8 @@ enum TDESystemHibernationMethod { Shutdown, Reboot, TestProc, - Test + Test, + Suspend }; }; @@ -124,6 +126,11 @@ class TDECORE_EXPORT TDERootSystemDevice : public TDEGenericDevice bool canHibernate(); /** + * @return TRUE if hardware and permissions allow the system to be hybrid suspended, FALSE if not + */ + bool canHybridSuspend(); + + /** * @return TRUE if permissions allow the system to be powered down, FALSE if not */ bool canPowerOff(); |