diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2016-05-07 04:03:59 +1000 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2016-05-07 04:03:59 +1000 |
commit | a3caab905b3c008aaa0ff9627c6647615330205d (patch) | |
tree | 36800621beebc1279d89a5cc3d0daef59522058a /src/tdepowersave.h | |
parent | 676fba0b9f08d41e68b115bc91931b5d0aa53376 (diff) | |
download | tdepowersave-a3caab905b3c008aaa0ff9627c6647615330205d.tar.gz tdepowersave-a3caab905b3c008aaa0ff9627c6647615330205d.zip |
Added support for hybrid suspend (aka suspend to RAM + suspend to disk).
This relates to bug 2601.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tdepowersave.h')
-rw-r--r-- | src/tdepowersave.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tdepowersave.h b/src/tdepowersave.h index bb46fc0..931fbe5 100644 --- a/src/tdepowersave.h +++ b/src/tdepowersave.h @@ -188,6 +188,9 @@ private: /*! contains the ID of the menuentry for suspend-to-disk */ int SUSPEND2DISK_MENU_ID; //! a menu entry ID + /*! contains the ID of the menuentry for hybrid suspend */ + int SUSPEND_HYBRID_MENU_ID; + //! a menu entry ID /*! contains the ID of the menuentry for suspend-to-ram */ int SUSPEND2RAM_MENU_ID; //! a menu entry ID @@ -322,6 +325,8 @@ private slots: bool do_suspend2disk(); //! send command for suspend_to_RAM to the TDE hardware library bool do_suspend2ram(); + //! send command for hybrid suspend to the TDE hardware library + bool do_suspend_hybrid(); //! show warning dialog or call autosuspend if signal \ref inactivity::inactivityTimeExpired() recieved void do_autosuspendWarn(); @@ -432,6 +437,8 @@ k_dcop: bool do_setCPUFreqPolicy( TQString ); //! dcop function to send 'suspend to disk' command to powersaved bool do_suspendToDisk(); + //! dcop function to send 'hybrid suspend' command to powersaved + bool do_suspendHybrid(); //! dcop function to send 'suspend to RAM' command to powersaved bool do_suspendToRAM(); //! dcop function to send 'freeze' command to powersaved |