diff options
Diffstat (limited to 'tdecore/tdehw/tderootsystemdevice.h')
-rw-r--r-- | tdecore/tdehw/tderootsystemdevice.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tdecore/tdehw/tderootsystemdevice.h b/tdecore/tdehw/tderootsystemdevice.h index 1c94fe1eb..7809fb09c 100644 --- a/tdecore/tdehw/tderootsystemdevice.h +++ b/tdecore/tdehw/tderootsystemdevice.h @@ -37,6 +37,7 @@ namespace TDESystemPowerState { enum TDESystemPowerState { Active, Standby, + Freeze, Suspend, Hibernate, PowerOff, @@ -66,7 +67,7 @@ class TDECORE_EXPORT TDERootSystemDevice : public TDEGenericDevice * @param Device type */ TDERootSystemDevice(TDEGenericDeviceType::TDEGenericDeviceType dt, TQString dn=TQString::null); - + /** * Destructor. */ @@ -108,6 +109,11 @@ class TDECORE_EXPORT TDERootSystemDevice : public TDEGenericDevice bool canStandby(); /** + * @return TRUE if hardware and permissions allow the system to enter freeze state, FALSE if not + */ + bool canFreeze(); + + /** * @return TRUE if hardware and permissions allow the system to be suspended, FALSE if not */ bool canSuspend(); |