klaptopdaemon
power.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef __POWERCONFIG_H__
00026 #define __POWERCONFIG_H__
00027
00028 #include <kcmodule.h>
00029
00030
00031 class QWidget;
00032 class QSlider;
00033 class Q3ButtonGroup;
00034 class QRadioButton;
00035 class QSpinBox;
00036 class KConfig;
00037 class QCheckBox;
00038 class KComboBox;
00039 class KDoubleSpinBox;
00040
00041 class PowerConfig : public KCModule
00042 {
00043 Q_OBJECT
00044 public:
00045 PowerConfig( const KComponentData &inst,QWidget *parent=0);
00046 ~PowerConfig();
00047 void save( void );
00048 void load();
00049 void defaults();
00050
00051 virtual QString quickHelp() const;
00052
00053
00054 private:
00055
00056 int getPower();
00057 int getNoPower();
00058 void setPower( int, int );
00059
00060 Q3ButtonGroup *nopowerBox;
00061 QRadioButton *nopowerStandby, *nopowerSuspend, *nopowerOff, *nopowerHibernate;
00062 QCheckBox *nopowerBrightness;
00063 QSlider *nopowerValBrightness;
00064 QCheckBox *nopowerThrottle;
00065 KComboBox *nopowerValThrottle;
00066 QCheckBox *nopowerPerformance;
00067 KComboBox *nopowerValPerformance;
00068 Q3ButtonGroup *powerBox;
00069 QRadioButton *powerStandby, *powerSuspend, *powerOff, *powerHibernate;
00070 QCheckBox *powerBrightness;
00071 QSlider *powerValBrightness;
00072 QCheckBox *powerThrottle;
00073 KComboBox *powerValThrottle;
00074 QCheckBox *powerPerformance;
00075 KComboBox *powerValPerformance;
00076 QSpinBox *noeditwait;
00077 QSpinBox *editwait;
00078 QCheckBox *enablelav;
00079 QCheckBox *noenablelav;
00080 KDoubleSpinBox *noeditlav;
00081 KDoubleSpinBox *editlav;
00082 int edit_wait, noedit_wait;
00083 int power_bright_val, nopower_bright_val;
00084 bool nopower_bright_enabled, power_bright_enabled;
00085 bool nopower_throttle_enabled, power_throttle_enabled;
00086 QString nopower_throttle_val, power_throttle_val;
00087 bool nopower_performance_enabled, power_performance_enabled;
00088 bool lav_enabled, nolav_enabled;
00089 float edit_lav, noedit_lav;
00090 QString nopower_performance_val, power_performance_val;
00091
00092 KConfig *config;
00093 int power, nopower, apm;
00094 };
00095
00096 #endif
00097