diff options
Diffstat (limited to 'tdecore/tdehw/tderootsystemdevice.h')
-rw-r--r-- | tdecore/tdehw/tderootsystemdevice.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/tdecore/tdehw/tderootsystemdevice.h b/tdecore/tdehw/tderootsystemdevice.h index 2e866e65d..e74d2dcf1 100644 --- a/tdecore/tdehw/tderootsystemdevice.h +++ b/tdecore/tdehw/tderootsystemdevice.h @@ -43,10 +43,19 @@ enum TDESystemPowerState { PowerOff, Reboot, HybridSuspend, + Mem, // Used temporarily to detect suspend-to-RAM capability Disk // Used temporarily to detect hibernation and hybrid suspend capability }; }; +namespace TDESystemSuspendMode { +enum TDESystemSuspendMode { + SuspendToIdle, // a.k.a. Freeze + Standby, + SuspendToRAM // a.k.a. Suspend +}; +}; + namespace TDESystemHibernationMethod { enum TDESystemHibernationMethod { Unsupported, @@ -60,6 +69,7 @@ enum TDESystemHibernationMethod { }; typedef TQValueList<TDESystemPowerState::TDESystemPowerState> TDESystemPowerStateList; +typedef TQValueList<TDESystemSuspendMode::TDESystemSuspendMode> TDESystemSuspendModeList; typedef TQValueList<TDESystemHibernationMethod::TDESystemHibernationMethod> TDESystemHibernationMethodList; class TDECORE_EXPORT TDERootSystemDevice : public TDEGenericDevice @@ -87,16 +97,6 @@ class TDECORE_EXPORT TDERootSystemDevice : public TDEGenericDevice TDESystemPowerStateList powerStates(); /** - * @return a TDESystemHibernationMethodList with all available hibernation methods - */ - TDESystemHibernationMethodList hibernationMethods(); - - /** - * @return a TDESystemHibernationMethod::TDESystemHibernationMethod with the current hibernation method - */ - TDESystemHibernationMethod::TDESystemHibernationMethod hibernationMethod(); - - /** * @return an unsigned long with the number of bytes required to hibernate */ unsigned long diskSpaceNeededForHibernation(); @@ -107,14 +107,14 @@ class TDECORE_EXPORT TDERootSystemDevice : public TDEGenericDevice bool canSetHibernationMethod(); /** - * @return TRUE if hardware and permissions allow the system to enter standby, FALSE if not + * @return TRUE if hardware and permissions allow the system to enter freeze state, FALSE if not */ - bool canStandby(); + bool canFreeze(); /** - * @return TRUE if hardware and permissions allow the system to enter freeze state, FALSE if not + * @return TRUE if hardware and permissions allow the system to enter standby, FALSE if not */ - bool canFreeze(); + bool canStandby(); /** * @return TRUE if hardware and permissions allow the system to be suspended, FALSE if not @@ -122,14 +122,14 @@ class TDECORE_EXPORT TDERootSystemDevice : public TDEGenericDevice bool canSuspend(); /** - * @return TRUE if hardware and permissions allow the system to be hibernated, FALSE if not + * @return TRUE if hardware and permissions allow the system to be hybrid suspended, FALSE if not */ - bool canHibernate(); + bool canHybridSuspend(); /** - * @return TRUE if hardware and permissions allow the system to be hybrid suspended, FALSE if not + * @return TRUE if hardware and permissions allow the system to be hibernated, FALSE if not */ - bool canHybridSuspend(); + bool canHibernate(); /** * @return TRUE if permissions allow the system to be powered down, FALSE if not |