kcmsdsummary.h
00001 /* 00002 This file is part of Kontact. 00003 Copyright (c) 2004 Tobias Koenig <tokoe@kde.org> 00004 Copyright (c) 2004 Allen Winter <winter@kde.org> 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 00020 As a special exception, permission is given to link this program 00021 with any edition of TQt, and distribute the resulting executable, 00022 without including the source code for TQt in the source distribution. 00023 */ 00024 00025 #ifndef KCMSDSUMMARY_H 00026 #define KCMSDSUMMARY_H 00027 00028 #include <tdecmodule.h> 00029 00030 class TQButtonGroup; 00031 class TQCheckBox; 00032 class TQSpinBox; 00033 00034 class TDEAboutData; 00035 00036 class KCMSDSummary : public TDECModule 00037 { 00038 Q_OBJECT 00039 00040 00041 public: 00042 KCMSDSummary( TQWidget *parent = 0, const char *name = 0 ); 00043 00044 virtual void load(); 00045 virtual void save(); 00046 virtual void defaults(); 00047 virtual const TDEAboutData* aboutData() const; 00048 00049 private slots: 00050 void modified(); 00051 void buttonClicked( int ); 00052 void customDaysChanged( int ); 00053 00054 private: 00055 void initGUI(); 00056 00057 TQButtonGroup *mDaysGroup; 00058 TQButtonGroup *mCalendarGroup; 00059 TQButtonGroup *mContactGroup; 00060 TQCheckBox *mShowBirthdaysFromKAB; 00061 TQCheckBox *mShowBirthdaysFromCal; 00062 TQCheckBox *mShowAnniversariesFromKAB; 00063 TQCheckBox *mShowAnniversariesFromCal; 00064 TQCheckBox *mShowHolidays; 00065 TQCheckBox *mShowHolidaysFromCal; 00066 TQCheckBox *mShowSpecialsFromCal; 00067 TQSpinBox *mCustomDays; 00068 }; 00069 00070 #endif