kmail

vacationdialog.h

00001 /*  -*- c++ -*-
00002     vacationdialog.h
00003 
00004     KMail, the KDE mail client.
00005     Copyright (c) 2002 Marc Mutz <mutz@kde.org>
00006 
00007     This program is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU General Public License,
00009     version 2.0, as published by the Free Software Foundation.
00010     You should have received a copy of the GNU General Public License
00011     along with this program; if not, write to the Free Software Foundation,
00012     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
00013 */
00014 
00015 #ifndef __KMAIL_VACATIONDIALOG_H__
00016 #define __KMAIL_VACATIONDIALOG_H__
00017 
00018 #include "kdialogbase.h"
00019 
00020 class QString;
00021 class QCheckBox;
00022 class QLineEdit;
00023 class QTextEdit;
00024 class KDateWidget;
00025 class KIntSpinBox;
00026 template <typename T> class QValueList;
00027 
00028 namespace KMime {
00029   namespace Types {
00030     struct AddrSpec;
00031     typedef QValueList<AddrSpec> AddrSpecList;
00032   }
00033 }
00034 
00035 namespace KMail {
00036 
00037   class VacationDialog : public KDialogBase {
00038     Q_OBJECT
00039   public:
00040     VacationDialog( const QString & caption, QWidget * parent=0,
00041             const char * name=0, bool modal=true );
00042     virtual ~VacationDialog();
00043 
00044     bool activateVacation() const;
00045     virtual void setActivateVacation( bool activate );
00046 
00047     QString messageText() const;
00048     virtual void setMessageText( const QString & text );
00049 
00050     int notificationInterval() const;
00051     virtual void setNotificationInterval( int days );
00052 
00053     KMime::Types::AddrSpecList mailAliases() const;
00054     virtual void setMailAliases( const KMime::Types::AddrSpecList & aliases );
00055     virtual void setMailAliases( const QString & aliases );
00056     
00057   private slots:
00058     void slotIntervalSpinChanged( int value );
00059 
00060   protected:
00061     QCheckBox   * mActiveCheck;
00062     KIntSpinBox * mIntervalSpin;
00063     QLineEdit   * mMailAliasesEdit;
00064     QTextEdit   * mTextEdit;
00065   };
00066 
00067 } // namespace KMail
00068 
00069 #endif // __KMAIL_VACATIONDIALOG_H__
KDE Home | KDE Accessibility Home | Description of Access Keys