kmail

mailinglistpropertiesdialog.h

Go to the documentation of this file.
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 Qt library by Trolltech AS, Norway (or with modified versions
00020 **   of Qt that use the same license as Qt), 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 **   Qt.  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 QCheckBox;
00037 class QComboBox;
00038 class QPushButton;
00039 class QLabel;
00040 class KEditListBox;
00041 
00042 namespace KMail
00043 {
00044 
00045 class MailingListFolderPropertiesDialog : public KDialogBase
00046 {
00047   Q_OBJECT
00048 public:
00049   MailingListFolderPropertiesDialog( QWidget *parent, KMFolder *folder );
00050   ~MailingListFolderPropertiesDialog() {};
00051 protected:
00052   void load();
00053   bool save();
00054 
00055 protected slots:
00056   void slotOk();
00057 
00058 private slots:
00059   /*
00060    * Detects mailing-list related stuff
00061    */
00062   void slotDetectMailingList();
00063   void slotInvokeHandler();
00064   void slotMLHandling( int element );
00065   void slotHoldsML( bool holdsML );
00066   void slotAddressChanged( int addr );
00067 
00068 private:
00069   KMFolder *mFolder;
00070   void fillMLFromWidgets();
00071   void fillEditBox();
00072 
00073   bool          mMLInfoChanged;
00074   QCheckBox    *mHoldsMailingList;
00075   QComboBox    *mMLHandlerCombo;
00076   QPushButton  *mDetectButton;
00077   QComboBox    *mAddressCombo;
00078   int           mLastItem;
00079   KEditListBox *mEditList;
00080   QLabel       *mMLId;
00081   MailingList   mMailingList;
00082 }; // End of class MailingListFolderProperties
00083 
00084 } // End of namespace KMail
00085 
00086 
00087 #endif // MAILINGLISTFOLDERPROPERTIESDIALOG_H