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__
26
template <typename T> class QList;
31
typedef QList<AddrSpec> AddrSpecList;
37
class VacationDialog : public KDialog {
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 );
69
void slotIntervalSpinChanged( int value );
72
QCheckBox * mActiveCheck;
73
KIntSpinBox * mIntervalSpin;
74
KLineEdit * mMailAliasesEdit;
75
KTextEdit * mTextEdit;
76
QCheckBox * mSpamCheck;
77
QCheckBox * mDomainCheck;
78
KLineEdit * mDomainEdit;
84
#endif // __KMAIL_VACATIONDIALOG_H__