mailinglistpropertiesdialog.h
00001 /******************************************************************************* 00002 ** 00003 ** Filename : mailinglistpropertiesdialog.h 00004 ** Created on : 30 January, 2005 00005 ** Copyright : (c) 2005 Till Adam 00006 ** Email : adam@kde.org 00007 ** 00008 *******************************************************************************/ 00009 00010 /******************************************************************************* 00011 ** 00012 ** This program is free software; you can redistribute it and/or modify 00013 ** it under the terms of the GNU General Public License as published by 00014 ** the Free Software Foundation; either version 2 of the License, or 00015 ** (at your option) any later version. 00016 ** 00017 ** In addition, as a special exception, the copyright holders give 00018 ** permission to link the code of this program with any edition of 00019 ** the TQt library by Trolltech AS, Norway (or with modified versions 00020 ** of TQt that use the same license as TQt), and distribute linked 00021 ** combinations including the two. You must obey the GNU General 00022 ** Public License in all respects for all of the code used other than 00023 ** TQt. If you modify this file, you may extend this exception to 00024 ** your version of the file, but you are not obligated to do so. If 00025 ** you do not wish to do so, delete this exception statement from 00026 ** your version. 00027 *******************************************************************************/ 00028 00029 #ifndef MAILINGLISTFOLDERPROPERTIESDIALOG_H 00030 #define MAILINGLISTFOLDERPROPERTIESDIALOG_H 00031 00032 #include "mailinglist-magic.h" 00033 #include <kdialogbase.h> // include for the base class 00034 00035 class KMFolder; 00036 class TQCheckBox; 00037 class TQComboBox; 00038 class TQPushButton; 00039 class TQLabel; 00040 class KEditListBox; 00041 00042 namespace KMail 00043 { 00044 00045 class MailingListFolderPropertiesDialog : public KDialogBase 00046 { 00047 Q_OBJECT 00048 00049 public: 00050 MailingListFolderPropertiesDialog( TQWidget *parent, KMFolder *folder ); 00051 ~MailingListFolderPropertiesDialog() {}; 00052 protected: 00053 void load(); 00054 bool save(); 00055 00056 protected slots: 00057 void slotOk(); 00058 00059 private slots: 00060 /* 00061 * Detects mailing-list related stuff 00062 */ 00063 void slotDetectMailingList(); 00064 void slotInvokeHandler(); 00065 void slotMLHandling( int element ); 00066 void slotHoldsML( bool holdsML ); 00067 void slotAddressChanged( int addr ); 00068 00069 private: 00070 KMFolder *mFolder; 00071 void fillMLFromWidgets(); 00072 void fillEditBox(); 00073 00074 bool mMLInfoChanged; 00075 TQCheckBox *mHoldsMailingList; 00076 TQComboBox *mMLHandlerCombo; 00077 TQPushButton *mDetectButton; 00078 TQComboBox *mAddressCombo; 00079 int mLastItem; 00080 KEditListBox *mEditList; 00081 TQLabel *mMLId; 00082 MailingList mMailingList; 00083 }; // End of class MailingListFolderProperties 00084 00085 } // End of namespace KMail 00086 00087 00088 #endif // MAILINGLISTFOLDERPROPERTIESDIALOG_H