summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tderootsystemdevice.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-09-22 14:57:33 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-09-22 14:57:33 +0200
commit645e8c58a752ed221388d916b1981483cc6d8811 (patch)
treee98eecd84bb98eca6b431429a976edcb3ad0e182 /tdecore/tdehw/tderootsystemdevice.h
parent101d86a3fc74e30690ed16a74dff105b1f6bb309 (diff)
downloadtdelibs-645e8c58a752ed221388d916b1981483cc6d8811.tar.gz
tdelibs-645e8c58a752ed221388d916b1981483cc6d8811.zip
Add support for freeze suspend state
Diffstat (limited to 'tdecore/tdehw/tderootsystemdevice.h')
-rw-r--r--tdecore/tdehw/tderootsystemdevice.h8
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();