diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-09-22 14:56:47 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-09-22 14:56:47 +0200 |
commit | 160e6f21b8d578aeaba5105082cbb61f46811ef1 (patch) | |
tree | 62a3660023eefc4efc498c6025bde1759d6b2e1c /src/settings.h | |
parent | e113ed917ca8d86e607c7fc70accd681cfefb0a4 (diff) | |
download | tdepowersave-160e6f21b8d578aeaba5105082cbb61f46811ef1.tar.gz tdepowersave-160e6f21b8d578aeaba5105082cbb61f46811ef1.zip |
Add support for freeze suspend state
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 105 |
1 files changed, 53 insertions, 52 deletions
diff --git a/src/settings.h b/src/settings.h index 6c8d777..ebe577d 100644 --- a/src/settings.h +++ b/src/settings.h @@ -16,8 +16,8 @@ * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ - -/*! + +/*! * \file settings.h * \brief Headerfile for settings.cpp and the class \ref Settings. */ @@ -42,6 +42,7 @@ enum action{ LOGOUT_DIALOG, GO_SUSPEND2RAM, GO_SUSPEND2DISK, + GO_FREEZE, SWITCH_SCHEME, BRIGHTNESS, CPUFRETQ_POWERSAVE, @@ -49,7 +50,7 @@ enum action{ CPUFRETQ_PERFORMANCE }; -/*! +/*! * \class KDE_Settings * \brief class/object for the KDE default settings * \author Danny Kukawka, <dkukawka@suse.de>, <danny.kukawka@web.de> @@ -68,23 +69,23 @@ public: bool displayEnergySaving; //! time for DPMS standby /*! - * This integer represent the time in minutes after which the + * This integer represent the time in minutes after which the * display should do to stand-by. */ int displayStandby; - //! time for DPMS suspend + //! time for DPMS suspend /*! - * This integer represent the time in minutes after which the + * This integer represent the time in minutes after which the * display should suspend. */ int displaySuspend; //! time for DPMS power-off /*! - * This integer represent the time in minutes after which the + * This integer represent the time in minutes after which the * display should power off. */ int displayPowerOff; - + /* KDE settings [ScreenSaver] */ //! if the KDE screensaver is enabled /*! @@ -108,10 +109,10 @@ public: * \li false: if else */ bool blanked; - + }; -/*! +/*! * \class Settings * \brief class for the Settings ( read ) related funtionality * \author Danny Kukawka, <dkukawka@suse.de>, <danny.kukawka@web.de> @@ -125,10 +126,10 @@ public: Settings(); //! default destructor virtual ~Settings(); - + //! a instance of the KDE global settings. KDE_Settings *kde; - + /* START ************************** General settings *******************************/ //! name of the default "onAC" scheme TQString ac_scheme; @@ -136,7 +137,7 @@ public: TQString battery_scheme; //! a list with the names of the currently available schemes. /*! - * List with the names of the currently configured schemes. The name of the + * List with the names of the currently configured schemes. The name of the * schemes are the same as we use for the related selection in the configure file. * Note: Be sure that the name for the default schemes is not translated !!! */ @@ -155,16 +156,16 @@ public: //! if the messages from powersave should popup as Kpassivepopup /*! * This boolean tells if the messages from powersave should be displayed - * as KPassivePopup or as KMessageBox::error + * as KPassivePopup or as KMessageBox::error * \li true: if use KPassivePopup - * \li false: if not + * \li false: if not */ bool psMsgAsPassivePopup; - + //! if the screen should be locked on suspend /*! * This boolean tells if the screen should be locked befor a suspend or standby. - * \li true: if the screen should be locked + * \li true: if the screen should be locked * \li false: if not lock the screen */ bool lockOnSuspend; @@ -178,7 +179,7 @@ public: //! if tdepowersave starts on login /*! * This boolean tells if tdepowersave should be start automatically on userlogin. - * The value could be changed trough the configuration dialog and if the user + * The value could be changed trough the configuration dialog and if the user * stop tdepowersave. * \li true: if autostart * \li false: if not start on login @@ -188,12 +189,12 @@ public: /*! * This boolean tells if tdepowersave ask for autostart settings if user stop tdepowersave. * \li true: if ask on stop - * \li false: if never ask + * \li false: if never ask */ bool autostartNeverAsk; //! if tdepowersave should force DPMS shutdown for display for lidclose /*! - * This boolean tells if tdepowersave should force dpms shutdown for the display if a + * This boolean tells if tdepowersave should force dpms shutdown for the display if a * lidclose event was recieved * \li true: if shutdown display * \li false: if not @@ -214,23 +215,23 @@ public: * to show the login dialog if the desktop was locked on suspend. Value is in msec. */ int timeToFakeKeyAfterLock; - + //! percentag value of battery level for warning state /*! - * This integer represent the remaining percentag of the battery + * This integer represent the remaining percentag of the battery * where we reach the battery warning level. This is a value between 0 and 100. */ int batteryWarningLevel; //! percentag value of battery level for low state /*! - * This integer represent the remaining percentag of the battery + * This integer represent the remaining percentag of the battery * where we reach the battery low level. This is a value between 0 and 100 and * should be lower than \ref batteryWarningLevel and higher than \ref batteryCriticalLevel */ int batteryLowLevel; //! percentag value of battery level for critical state /*! - * This integer represent the remaining percentag of the battery + * This integer represent the remaining percentag of the battery * where we reach the battery critical level. This is a value between 0 and 100 and * should be lower than \ref batteryLowLevel and higher than 0 */ @@ -268,7 +269,7 @@ public: //! name of the scheme representing the current settings TQString currentScheme; - + // ---------- Screensaver/DPMS section ------------ // //! if tdepowersave use own screensaver settings /*! @@ -296,7 +297,7 @@ public: //! if tdepowersave use own DPMS settings /*! * This boolean tells if tdepowersave should use own userspecific settings for - * Display PowerManagement Settings. If this value is true tdepowersave overwritte + * Display PowerManagement Settings. If this value is true tdepowersave overwritte * the KDE or GNOME global settings. * \li true: if tdepowersave use own DPMS settings * \li false: if tdepowersave don't change DPMS settings @@ -312,19 +313,19 @@ public: bool disableDPMS; //! time for DPMS standby /*! - * This integer represent the time in minutes after which the + * This integer represent the time in minutes after which the * display should do to stand-by. */ int standbyAfter; //! time for DPMS suspend /*! - * This integer represent the time in minutes after which the + * This integer represent the time in minutes after which the * display should suspend. */ int suspendAfter; //! time for DPMS power-off /*! - * This integer represent the time in minutes after which the + * This integer represent the time in minutes after which the * display should power off. */ int powerOffAfter; @@ -332,7 +333,7 @@ public: // ------------ Brightness section ---------------- // //! if brightness is enabled for the current scheme /*! - * This boolean tells if brightness is enabled for the + * This boolean tells if brightness is enabled for the * current scheme * \li true: if brightness is enabled * \li false: if not @@ -340,15 +341,15 @@ public: bool brightness; //! the value for the brighness /*! - * This integer represent the value to which the brigthness + * This integer represent the value to which the brigthness * should be set. This value is in percentage. */ int brightnessValue; - + // ------------ Autosuspend section ---------------- // //! if autosuspend is enabled for the current scheme /*! - * This boolean tells if autosuspend is enabled for the + * This boolean tells if autosuspend is enabled for the * current scheme * \li true: if autosuspend is enabled * \li false: if not @@ -357,7 +358,7 @@ public: //! if scheme specific blacklist is enabled /*! * This boolean tells if a scheme specific blacklist - * ( autoInactiveSchemeBlacklist ) should be used. + * ( autoInactiveSchemeBlacklist ) should be used. * \li true: if use scheme specific blacklist * \li false: if not */ @@ -369,7 +370,7 @@ public: * action. */ int autoInactiveActionAfter; - //! action which execute after a defined time of inactivity + //! action which execute after a defined time of inactivity /*! * This TQString contains the action/command which should be execute * after a trough \ref autoInactiveActionAfter defined time. If nothing @@ -379,14 +380,14 @@ public: //! general list with running programs which prevent the autosuspend /*! * This TQStringList contains names of programs which prevent, if one of - * them is running/active the autossuspend. - */ + * them is running/active the autossuspend. + */ TQStringList autoInactiveGBlist; //! scheme list with running programs which prevent the autosuspend /*! * This TQStringList contains names of programs which prevent, if one of - * them is running/active the autossuspend. - */ + * them is running/active the autossuspend. + */ TQStringList autoInactiveSBlist; // ------ Autosuspend countdown dialog section -------- // @@ -401,12 +402,12 @@ public: //! how long the autosuspend warn dialog should be shown /*! * This integer represent the time in seconds how long the autosuspend - * warning dialog should be shown. This time get stripped from + * warning dialog should be shown. This time get stripped from * \ref autoInactiveActionAfter to be sure the suspend get called within * the expected time. */ int autoSuspendCountdownTimeout; - + // -------------- Autodimm section ------------------- // //! if autodimm is enabled for the current scheme /*! @@ -418,7 +419,7 @@ public: //! if a scheme specific autodimm blacklist is enabled /*! * This boolean tells if a scheme specific autdimm blacklist - * ( autoDimmSBlist ) should be used. + * ( autoDimmSBlist ) should be used. * \li true: if use scheme specific blacklist * \li false: if not */ @@ -431,7 +432,7 @@ public: int autoDimmAfter; //! percentage to which the display should dimmed to /*! - * This integer represent the brightness percentage to which the + * This integer represent the brightness percentage to which the * display should get dimmed if the user is the via \ref autoDimmAfter * defined time inactivit; */ @@ -439,17 +440,17 @@ public: //! general list with running programs which prevent the autodimm /*! * This TQStringList contains names of programs which prevent, if one of - * them is running/active the autodimm of the display panel. - */ + * them is running/active the autodimm of the display panel. + */ TQStringList autoDimmGBlist; //! scheme specific list with running programs which prevent the autodimm /*! * This TQStringList contains names of programs which prevent, if one of - * them is running/active the autodimm of the display panel. This list is + * them is running/active the autodimm of the display panel. This list is * scheme specific. - */ + */ TQStringList autoDimmSBlist; - + // ------------ CPU Frequency section ---------------- // //! represent the CPU Frequency policy to set @@ -476,17 +477,17 @@ public: bool unmountExternalOnSuspend; /* END ************************ Scheme settings and values ******************************/ - - /******************* Functions ********************/ + + /******************* Functions ********************/ //! to load the general settings bool load_general_settings(); //! to load the global KDE settings void load_kde(); //! to load settings of a specific scheme bool load_scheme_settings(TQString); - + private: - + //! configuration of tdepowersave TDEConfig *tdeconfig; |