klaptopdaemon
main.h
Go to the documentation of this file.00001 /* 00002 * main.h 00003 * 00004 * Copyright (c) 2002 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 __MAIN_H__ 00026 #define __MAIN_H__ 00027 00028 00029 #include <qtabwidget.h> 00030 00031 00032 #include <kcmodule.h> 00033 00034 00035 class WarningConfig; 00036 class BatteryConfig; 00037 class PowerConfig; 00038 class AcpiConfig; 00039 class ApmConfig; 00040 class SonyConfig; 00041 class ProfileConfig; 00042 class ButtonsConfig; 00043 00044 class LaptopModule : public KCModule 00045 { 00046 Q_OBJECT 00047 00048 public: 00049 00050 LaptopModule(const KComponentData &inst,QWidget *parent); 00051 00052 void load(); 00053 void save(); 00054 void defaults(); 00055 QString quickHelp() const; 00056 00057 00058 00059 protected slots: 00060 00061 void moduleChanged(bool state); 00062 00063 00064 private: 00065 00066 QTabWidget *tab; 00067 00068 WarningConfig *warning; 00069 WarningConfig *critical; 00070 BatteryConfig *battery; 00071 PowerConfig *power; 00072 AcpiConfig *acpi; 00073 ApmConfig *apm; 00074 ProfileConfig *profile; 00075 SonyConfig *sony; 00076 ButtonsConfig *buttons; 00077 }; 00078 00079 00080 #endif 00081 00082
KDE 4.0 API Reference