diff options
author | Timothy Pearson <[email protected]> | 2013-04-25 16:07:56 +0000 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-04-25 16:07:56 +0000 |
commit | 2bf1b0f82a0d1142fda9f57e81e7103679fe9251 (patch) | |
tree | a3ef6589d997cb16203cb9257c97ceb6851cc01d /tdecore/tdehardwaredevices.h | |
parent | 274dd3ccb3dd38866e87c83bd5e6f1085ba861d9 (diff) | |
download | tdelibs-2bf1b0f82a0d1142fda9f57e81e7103679fe9251.tar.gz tdelibs-2bf1b0f82a0d1142fda9f57e81e7103679fe9251.zip |
Add ConsoleKit support to TDE hardware library
Diffstat (limited to 'tdecore/tdehardwaredevices.h')
-rw-r--r-- | tdecore/tdehardwaredevices.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tdecore/tdehardwaredevices.h b/tdecore/tdehardwaredevices.h index 4c9b74940..1fe962207 100644 --- a/tdecore/tdehardwaredevices.h +++ b/tdecore/tdehardwaredevices.h @@ -1576,7 +1576,8 @@ enum TDESystemPowerState { Standby, Suspend, Hibernate, - PowerOff + PowerOff, + Reboot }; }; @@ -1659,6 +1660,11 @@ class TDECORE_EXPORT TDERootSystemDevice : public TDEGenericDevice bool canPowerOff(); /** + * @return TRUE if permissions allow the system to be rebooted, FALSE if not + */ + bool canReboot(); + + /** * @param hm a TDESystemHibernationMethod::TDESystemHibernationMethod with the desired hibernation method */ void setHibernationMethod(TDESystemHibernationMethod::TDESystemHibernationMethod hm); |