fix Messages.sh after yesterday change in extract-messages.sh
[kdepim.git] / kmail / vacationdialog.h
blob632709500094b2c82b971c46dd709747a3df1ca7
1 /* -*- c++ -*-
2 vacationdialog.h
4 KMail, the KDE mail client.
5 Copyright (c) 2002 Marc Mutz <mutz@kde.org>
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
15 #ifndef __KMAIL_VACATIONDIALOG_H__
16 #define __KMAIL_VACATIONDIALOG_H__
18 #include "kdialog.h"
20 class KIntSpinBox;
21 class KLineEdit;
22 class KTextEdit;
24 class QString;
25 class QCheckBox;
26 template <typename T> class QList;
28 namespace KMime {
29 namespace Types {
30 struct AddrSpec;
31 typedef QList<AddrSpec> AddrSpecList;
35 namespace KMail {
37 class VacationDialog : public KDialog {
38 Q_OBJECT
39 public:
40 explicit VacationDialog( const QString & caption, QWidget * parent=0,
41 const char * name=0, bool modal=true );
42 virtual ~VacationDialog();
44 virtual void enableDomainAndSendForSpam( bool enable = true );
46 bool activateVacation() const;
47 virtual void setActivateVacation( bool activate );
49 bool domainCheck() const;
50 virtual void setDomainCheck( bool check );
52 QString messageText() const;
53 virtual void setMessageText( const QString & text );
55 int notificationInterval() const;
56 virtual void setNotificationInterval( int days );
58 KMime::Types::AddrSpecList mailAliases() const;
59 virtual void setMailAliases( const KMime::Types::AddrSpecList & aliases );
60 virtual void setMailAliases( const QString & aliases );
62 QString domainName() const;
63 virtual void setDomainName( const QString & domain );
65 bool sendForSpam() const;
66 virtual void setSendForSpam( bool enable );
68 private slots:
69 void slotIntervalSpinChanged( int value );
71 protected:
72 QCheckBox * mActiveCheck;
73 KIntSpinBox * mIntervalSpin;
74 KLineEdit * mMailAliasesEdit;
75 KTextEdit * mTextEdit;
76 QCheckBox * mSpamCheck;
77 QCheckBox * mDomainCheck;
78 KLineEdit * mDomainEdit;
82 } // namespace KMail
84 #endif // __KMAIL_VACATIONDIALOG_H__