• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

klaptopdaemon

power.h

Go to the documentation of this file.
00001 /*
00002  * power.h
00003  *
00004  * Copyright (c) 1999 Paul Campbell <paul@taniwha.com>
00005  *
00006  * Requires the Qt widget libraries, available at no cost at
00007  * http://www.troll.no/
00008  *
00009  *  This program is free software; you can redistribute it and/or modify
00010  *  it under the terms of the GNU General Public License as published by
00011  *  the Free Software Foundation; either version 2 of the License, or
00012  *  (at your option) any later version.
00013  *
00014  *  This program is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  *  GNU General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public License
00020  *  along with this program; if not, write to the Free Software
00021  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
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 

klaptopdaemon

Skip menu "klaptopdaemon"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal