summaryrefslogtreecommitdiffstats
path: root/src/tdepowersave.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-09-22 14:56:47 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-09-22 14:56:47 +0200
commit160e6f21b8d578aeaba5105082cbb61f46811ef1 (patch)
tree62a3660023eefc4efc498c6025bde1759d6b2e1c /src/tdepowersave.h
parente113ed917ca8d86e607c7fc70accd681cfefb0a4 (diff)
downloadtdepowersave-160e6f21b8d578aeaba5105082cbb61f46811ef1.tar.gz
tdepowersave-160e6f21b8d578aeaba5105082cbb61f46811ef1.zip
Add support for freeze suspend state
Diffstat (limited to 'src/tdepowersave.h')
-rw-r--r--src/tdepowersave.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tdepowersave.h b/src/tdepowersave.h
index e7f198d..49f9bff 100644
--- a/src/tdepowersave.h
+++ b/src/tdepowersave.h
@@ -69,7 +69,7 @@ class TDEGlobalAccel;
class tdepowersave : public KSystemTray, public DCOPObject
{
Q_OBJECT
-//
+//
K_DCOP
private:
@@ -190,6 +190,9 @@ private:
/*! contains the ID of the menuentry for suspend-to-ram */
int SUSPEND2RAM_MENU_ID;
//! a menu entry ID
+ /*! contains the ID of the menuentry for freeze */
+ int FREEZE_MENU_ID;
+ //! a menu entry ID
/*! contains the ID of the menuentry for stand-by */
int STANDBY_MENU_ID;
//! a menu seperator ID
@@ -312,6 +315,8 @@ private slots:
//! send command for stand-by to the TDE hardware library
bool do_standby();
+ //! send command for freeze to the TDE hardware library
+ bool do_freeze();
//! send command for suspend_to_disk to the TDE hardware library
bool do_suspend2disk();
//! send command for suspend_to_RAM to the TDE hardware library
@@ -428,6 +433,8 @@ k_dcop:
bool do_suspendToDisk();
//! dcop function to send 'suspend to RAM' command to powersaved
bool do_suspendToRAM();
+ //! dcop function to send 'freeze' command to powersaved
+ bool do_suspendFreeze();
//! dcop function to send 'standby' command to powersaved
bool do_standBy();
//! dcop function to set the brightness down