15 #ifndef __KMAIL_VACATIONDIALOG_H__
16 #define __KMAIL_VACATIONDIALOG_H__
18 #include "kdialogbase.h"
26 template < typename T> class TQValueList;
31 typedef TQValueList<AddrSpec> AddrSpecList;
37 class VacationDialog : public KDialogBase {
41 VacationDialog( const TQString & caption, TQWidget * parent=0,
42 const char * name=0, bool modal= true );
43 virtual ~VacationDialog();
45 virtual void enableDomainAndSendForSpam( bool enable = true );
47 bool activateVacation() const;
48 virtual void setActivateVacation( bool activate );
50 bool domainCheck() const;
51 virtual void setDomainCheck( bool check );
53 TQString messageText() const;
54 virtual void setMessageText( const TQString & text );
56 int notificationInterval() const;
57 virtual void setNotificationInterval( int days );
59 KMime::Types::AddrSpecList mailAliases() const;
60 virtual void setMailAliases( const KMime::Types::AddrSpecList & aliases );
61 virtual void setMailAliases( const TQString & aliases );
63 TQString domainName() const;
64 virtual void setDomainName( const TQString & domain );
66 bool sendForSpam() const;
67 virtual void setSendForSpam( bool enable );
71 void slotIntervalSpinChanged( int value );
74 TQCheckBox * mActiveCheck;
75 KIntSpinBox * mIntervalSpin;
76 TQLineEdit * mMailAliasesEdit;
77 TQTextEdit * mTextEdit;
78 TQCheckBox * mSpamCheck;
79 TQCheckBox * mDomainCheck;
80 TQLineEdit * mDomainEdit;
|