summaryrefslogtreecommitdiffstats
path: root/src/tdepowersave.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tdepowersave.h')
-rw-r--r--src/tdepowersave.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/tdepowersave.h b/src/tdepowersave.h
index df5214a..4b7c0c2 100644
--- a/src/tdepowersave.h
+++ b/src/tdepowersave.h
@@ -22,18 +22,13 @@
#ifndef _TDEPOWERSAVE_H_
#define _TDEPOWERSAVE_H_
-// Global Header
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
// KDE - Header
#include <kprocess.h>
#include <ksystemtray.h>
#include <dcopobject.h>
#include <tdehardwaredevices.h>
-// QT - Header
+// TQt - Header
#include <tqpopupmenu.h>
// tdepowersave - Header
@@ -64,7 +59,7 @@ class TDEGlobalAccel;
class tdepowersave : public KSystemTray, public DCOPObject
{
- Q_OBJECT
+ TQ_OBJECT
//
K_DCOP
@@ -164,6 +159,11 @@ private:
*/
bool autoDimmDown;
+ // used during dimm down/up transitions
+ int m_dimmRequestedLevel;
+ int m_dimmStep;
+ int m_dimmTimeoutCounter;
+
//! to temporary hold the resume result
int resume_result;
@@ -271,12 +271,12 @@ private:
* The timerinterval is defined in \ref BAT_icon_BG_intervall .
*/
TQTimer *BAT_WARN_ICON_Timer;
+
//! Timer to dimm down/up the brightness
/*!
- * This timer is used dimm the display up and down. The timerinterval
- * depends on calculated timePerStep in the calling function.
+ * This timer is used to dimm the display up and down.
*/
- TQTimer *AUTODIMM_Timer;
+ TQTimer *m_autoDimmTimer;
//! draw all icon related things for \ref redrawPixmap()
void drawIcon();
@@ -346,9 +346,9 @@ private slots:
void do_downDimm();
//! called if the user get active again and the display should get dimmed up
void do_upDimm();
- //! TQT_SLOT do do the dimmining for autodimm feature
+ //! TQ_SLOT do do the dimmining for autodimm feature
void do_dimm();
- //! TQT_SLOT to set autodimm related stuff and start autodimm monitoring
+ //! TQ_SLOT to set autodimm related stuff and start autodimm monitoring
void setAutoDimm( bool resumed );
//! to update the main menu of the kickerapplet
@@ -445,10 +445,12 @@ k_dcop:
//! dcop function to open the configure dialog
bool openConfigureDialog();
- //! dcop function to find out if tdepowersave manages DPMS
- bool currentSchemeManagesDPMS();
+ //! dcop function to find out if tdepowersave manages DPMS
+ bool currentSchemeManagesDPMS();
//! dcop funtion to get the current brightness level
int brightnessGet();
+ //! dcop funtion to set the brightness level
+ void brightnessSet(int percentage);
//! dcop function to return the name of the current scheme
TQString currentScheme ();