kmail

vacationdialog.h
1 /*
2  vacationdialog.h
3 
4  KMail, the KDE mail client.
5  Copyright (c) 2002 Marc Mutz <mutz@kde.org>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License,
9  version 2.0, as published by the Free Software Foundation.
10  You should have received a copy of the GNU General Public License
11  along with this program; if not, write to the Free Software Foundation,
12  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
13 */
14 
15 #ifndef __KMAIL_VACATIONDIALOG_H__
16 #define __KMAIL_VACATIONDIALOG_H__
17 
18 #include "kdialogbase.h"
19 
20 class TQString;
21 class TQCheckBox;
22 class TQLineEdit;
23 class TQTextEdit;
24 class KDateWidget;
25 class KIntSpinBox;
26 template <typename T> class TQValueList;
27 
28 namespace KMime {
29  namespace Types {
30  struct AddrSpec;
31  typedef TQValueList<AddrSpec> AddrSpecList;
32  }
33 }
34 
35 namespace KMail {
36 
37  class VacationDialog : public KDialogBase {
38  TQ_OBJECT
39 
40  public:
41  VacationDialog( const TQString & caption, TQWidget * parent=0,
42  const char * name=0, bool modal=true );
43  virtual ~VacationDialog();
44 
45  virtual void enableDomainAndSendForSpam( bool enable = true );
46 
47  bool activateVacation() const;
48  virtual void setActivateVacation( bool activate );
49 
50  bool domainCheck() const;
51  virtual void setDomainCheck( bool check );
52 
53  TQString messageText() const;
54  virtual void setMessageText( const TQString & text );
55 
56  int notificationInterval() const;
57  virtual void setNotificationInterval( int days );
58 
59  KMime::Types::AddrSpecList mailAliases() const;
60  virtual void setMailAliases( const KMime::Types::AddrSpecList & aliases );
61  virtual void setMailAliases( const TQString & aliases );
62 
63  TQString domainName() const;
64  virtual void setDomainName( const TQString & domain );
65 
66  bool sendForSpam() const;
67  virtual void setSendForSpam( bool enable );
68 
69 
70  private slots:
71  void slotIntervalSpinChanged( int value );
72 
73  protected:
74  TQCheckBox * mActiveCheck;
75  KIntSpinBox * mIntervalSpin;
76  TQLineEdit * mMailAliasesEdit;
77  TQTextEdit * mTextEdit;
78  TQCheckBox * mSpamCheck;
79  TQCheckBox * mDomainCheck;
80  TQLineEdit * mDomainEdit;
81 
82  };
83 
84 } // namespace KMail
85 
86 #endif // __KMAIL_VACATIONDIALOG_H__
folderdiaquotatab.h
Definition: aboutdata.cpp:40