diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-04-10 05:44:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-04-10 05:44:39 +0000 |
commit | 65b5cd4b6c373089958268c9c0772458a9d1128f (patch) | |
tree | dcb0655778df74ad7d1758801a9a89e49c338600 /src/kpowersave.h | |
parent | 9068a0fa209817cb181202e33ca0cdf437ee143c (diff) | |
download | tdepowersave-65b5cd4b6c373089958268c9c0772458a9d1128f.tar.gz tdepowersave-65b5cd4b6c373089958268c9c0772458a9d1128f.zip |
Fixed extraneous error message on suspend
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpowersave@1113226 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kpowersave.h')
-rw-r--r-- | src/kpowersave.h | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/src/kpowersave.h b/src/kpowersave.h index cfd7e01..bd588cd 100644 --- a/src/kpowersave.h +++ b/src/kpowersave.h @@ -53,15 +53,15 @@ #include "settings.h" -/*! +/*! * \file kpowersave.h * \brief Headerfile for kpowersave.cpp and the class \ref kpowersave. */ - /*! + /*! * \class kpowersave * \brief The central class for the kpowersave-applet * \author Danny Kukawka, <dkukawka@suse.de>, <danny.kukawka@web.de> - * \author Thomas Renninger, <trenn@suse.de> + * \author Thomas Renninger, <trenn@suse.de> * \date 2004 - 2007 */ @@ -74,7 +74,7 @@ private: // permanent pointers //! to configure kpowersave - KConfig *config; + KConfig *config; //! instance of \ref screen screen *display; //! instance of \ref settings @@ -97,13 +97,13 @@ private: //! instance of \ref countDownDialog countDownDialog *countdown; - + //! struct wth information about suspend states and permissions SuspendStates suspend; //! enum with the last called suspend, this need to be reset if needed int calledSuspend; - //! instance of \ref detaileddialog + //! instance of \ref detaileddialog detaileddialog *detailedDlg; //! represent the state of opened \ref detailedDlg @@ -132,8 +132,8 @@ private: bool icon_BG_is_colored; //! represent color status of the kickerapplet icon /*! - * This boolean represent the state of the kickerapplet icon. It don't display - * information about the icon backgrund like \ref icon_BG_is_colored . It say + * This boolean represent the state of the kickerapplet icon. It don't display + * information about the icon backgrund like \ref icon_BG_is_colored . It say * only that the icon is in state to have a blinking background . * \li true: if icon set to be colored * \li false: if icon isn't set to be colored @@ -144,7 +144,7 @@ private: * This boolean represent information about changing the icon background. It's used to * change the intervall of redraw the kickerapplet icon. * \li true: if the state of icon is changed - * \li false: if the state of icon isn't change + * \li false: if the state of icon isn't change */ bool icon_state_changed; //! represent the state of the suspend/progress dialog @@ -179,10 +179,10 @@ private: //! a menu entry ID /*! contains the ID of the menuentry for kpowersave configure Dialog */ int CONFIGURE_ID; - + int CONFIGURE_EVENTS_ID; - - //! a menu entry ID + + //! a menu entry ID /*! contains the ID of the menuentry for YaST-configuration */ int YAST_MODULE_MENU_ID; //! a menu seperator ID @@ -221,7 +221,7 @@ private: //! a menu ID /*! contains the ID of the help menu*/ int HELP_MENU; - + //! number of white pixel in the kickerapplet icon /*! * This integer value represent the number of white pixel in the icon for @@ -231,25 +231,25 @@ private: int countWhiteIconPixel; //! QTimer-interval for icon background - /*! + /*! * Time intervall to set the colored background of the batteryicon on/off. * The value is 1000 msec/ 1 sec. */ static const int BAT_icon_BG_intervall = 1000; //! QTimer-interval for display HAL error message - /*! + /*! * Time intervall to delay display the HAL error message to prevent displayed * the message if only HAL or powersave is restarted. The value is 15000 msec/ 15 sec. */ static const int HAL_ERROR_MSG_intervall = 15000; - + //! type of current running suspend /*! QString store the name of the current running suspend*/ QString suspendType; - - //! current name of the pixmap - /*! + + //! current name of the pixmap + /*! * Contains the current name of the icon/pixmap. The value must be a filename of a existing iconfile. * \sa power_icon, no_battery_icon, charge_icon, battery, battery_RED or battery_ORANGE */ @@ -259,10 +259,10 @@ private: /*! * This list store the real schemenames (not the i18n()-version) * regarding to position in the scheme-menu - */ + */ QStringList org_schemenames; - - //! a sub-menu of the kickerapplet + + //! a sub-menu of the kickerapplet /*! QPopupMenu for the cpufreq-entries. */ QPopupMenu *speed_menu; //! a sub-menu of the kickerapplet @@ -279,8 +279,8 @@ private: //! icon-pixmap /*! QPixmap with the full draw applet Icon (to be used in other classes) .*/ QPixmap fullIcon; - - + + //! Timer for the blinking Icon background /*! * This timer is used to let blink the background of a icon in kicker. @@ -295,11 +295,11 @@ private: QTimer *DISPLAY_HAL_ERROR_Timer; //! Timer to dimm down/up the brightness /*! - * This timer is used dimm the display up and down. The timerinterval + * This timer is used dimm the display up and down. The timerinterval * depends on calculated timePerStep in the calling function. */ QTimer *AUTODIMM_Timer; - + //! draw all icon related things for \ref redrawPixmap() void drawIcon(); //! to intialise the menu for the kickerapplet @@ -313,7 +313,7 @@ private: //! to update the Tooltip of the kickerapplet void updateTooltip(); - //! Eventhandler to catch mouse-press-events and react + //! Eventhandler to catch mouse-press-events and react void mousePressEvent( QMouseEvent *qme ); //! Event handler to catch mouse wheel events and react void wheelEvent( QWheelEvent *qwe ); @@ -334,7 +334,7 @@ private slots: bool do_suspend2disk(); //! send command for suspend_to_RAM to the HAL daemon bool do_suspend2ram(); - + //! show warning dialog or call autosuspend if signal \ref inactivity::inactivityTimeExpired() recieved void do_autosuspendWarn(); //! execute the autosuspend @@ -400,7 +400,7 @@ private slots: void handleSleepButtonEvent(); //! handle event for press s2disk button and call action void handleS2DiskButtonEvent(); - + //! handle changes of the session state void handleSessionState (bool state); @@ -438,13 +438,13 @@ public: kpowersave( bool force_acpi_check = false, bool trace_func = false); //! default destructor virtual ~kpowersave(); - -k_dcop: + +k_dcop: //! dcop function to lock the screen bool lockScreen(); - //! dcop function to set a scheme + //! dcop function to set a scheme bool do_setScheme( QString ); - //! dcop function to set CPU Freq policy + //! dcop function to set CPU Freq policy bool do_setCPUFreqPolicy( QString ); //! dcop function to send 'suspend to disk' command to powersaved bool do_suspendToDisk(); @@ -470,16 +470,16 @@ k_dcop: //! dcop funtion to get the current brightness level int brightnessGet(); - //! dcop function to return the name of the current scheme + //! dcop function to return the name of the current scheme QString currentScheme (); //! dcop function to return the current cpufreqpolicy QString currentCPUFreqPolicy(); - + //! dcop function to return the supported sleeping states QStringList allowed_sleepingStates(); //! dcop function to return the schemes QStringList listSchemes(); - //! dcop function to return the supported CPU + //! dcop function to return the supported CPU QStringList listCPUFreqPolicies(); }; |