kmail Library API Documentation

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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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   protected:
00058     QCheckBox   * mActiveCheck;
00059     KIntSpinBox * mIntervalSpin;
00060     QLineEdit   * mMailAliasesEdit;
00061     QTextEdit   * mTextEdit;
00062   };
00063 
00064 } // namespace KMail
00065 
00066 #endif // __KMAIL_VACATIONDIALOG_H__
KDE Logo
This file is part of the documentation for kmail Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:37:35 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003