kmail

mailinglistpropertiesdialog.h
1 /*******************************************************************************
2 **
3 ** Filename : mailinglistpropertiesdialog.h
4 ** Created on : 30 January, 2005
5 ** Copyright : (c) 2005 Till Adam
6 ** Email : adam@kde.org
7 **
8 *******************************************************************************/
9 
10 /*******************************************************************************
11 **
12 ** This program is free software; you can redistribute it and/or modify
13 ** it under the terms of the GNU General Public License as published by
14 ** the Free Software Foundation; either version 2 of the License, or
15 ** (at your option) any later version.
16 **
17 ** In addition, as a special exception, the copyright holders give
18 ** permission to link the code of this program with any edition of
19 ** the TQt library by Trolltech AS, Norway (or with modified versions
20 ** of TQt that use the same license as TQt), and distribute linked
21 ** combinations including the two. You must obey the GNU General
22 ** Public License in all respects for all of the code used other than
23 ** TQt. If you modify this file, you may extend this exception to
24 ** your version of the file, but you are not obligated to do so. If
25 ** you do not wish to do so, delete this exception statement from
26 ** your version.
27 *******************************************************************************/
28 
29 #ifndef MAILINGLISTFOLDERPROPERTIESDIALOG_H
30 #define MAILINGLISTFOLDERPROPERTIESDIALOG_H
31 
32 #include "mailinglist-magic.h"
33 #include <kdialogbase.h> // include for the base class
34 
35 class KMFolder;
36 class TQCheckBox;
37 class TQComboBox;
38 class TQPushButton;
39 class TQLabel;
40 class KEditListBox;
41 
42 namespace KMail
43 {
44 
45 class MailingListFolderPropertiesDialog : public KDialogBase
46 {
47  TQ_OBJECT
48 
49 public:
50  MailingListFolderPropertiesDialog( TQWidget *parent, KMFolder *folder );
51  ~MailingListFolderPropertiesDialog() {};
52 protected:
53  void load();
54  bool save();
55 
56 protected slots:
57  void slotOk();
58 
59 private slots:
60  /*
61  * Detects mailing-list related stuff
62  */
63  void slotDetectMailingList();
64  void slotInvokeHandler();
65  void slotMLHandling( int element );
66  void slotHoldsML( bool holdsML );
67  void slotAddressChanged( int addr );
68 
69 private:
70  KMFolder *mFolder;
71  void fillMLFromWidgets();
72  void fillEditBox();
73 
74  bool mMLInfoChanged;
75  TQCheckBox *mHoldsMailingList;
76  TQComboBox *mMLHandlerCombo;
77  TQPushButton *mDetectButton;
78  TQComboBox *mAddressCombo;
79  int mLastItem;
80  KEditListBox *mEditList;
81  TQLabel *mMLId;
82  MailingList mMailingList;
83 }; // End of class MailingListFolderProperties
84 
85 } // End of namespace KMail
86 
87 
88 #endif // MAILINGLISTFOLDERPROPERTIESDIALOG_H
Mail folder.
Definition: kmfolder.h:69
folderdiaquotatab.h
Definition: aboutdata.cpp:40