kmail

redirectdialog.h
00001 /*  -*- mode: C++ -*-
00002     This file is part of KMail.
00003     Copyright (c) 2003 Andreas Gungl <a.gungl@gmx.de>
00004 
00005     KMail is free software; you can redistribute it and/or modify it
00006     under the terms of the GNU General Public License, version 2, as
00007     published by the Free Software Foundation.
00008 
00009     KMail is distributed in the hope that it will be useful, but
00010     WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00017 
00018     In addition, as a special exception, the copyright holders give
00019     permission to link the code of this program with any edition of
00020     the TQt library by Trolltech AS, Norway (or with modified versions
00021     of TQt that use the same license as TQt), and distribute linked
00022     combinations including the two.  You must obey the GNU General
00023     Public License in all respects for all of the code used other than
00024     TQt.  If you modify this file, you may extend this exception to
00025     your version of the file, but you are not obligated to do so.  If
00026     you do not wish to do so, delete this exception statement from
00027     your version.
00028 */
00029 #ifndef KMAIL_REDIRECTDIALOG_H
00030 #define KMAIL_REDIRECTDIALOG_H
00031 
00032 #include <kdialogbase.h>
00033 
00034 class KMLineEdit;
00035 class TQPushButton;
00036 class TQLabel;
00037 
00038 namespace KMail {
00039 
00040   //---------------------------------------------------------------------------
00050   class RedirectDialog : public KDialogBase
00051   {
00052     Q_OBJECT
00053   
00054 
00055     public:
00063       RedirectDialog( TQWidget *parent=0, const char *name=0,
00064                       bool modal=false, bool immediate=true );
00065 
00067       TQString to() { return mResentTo; };
00068 
00070       bool sendImmediate() { return mImmediate; };
00071 
00072     protected:
00074       void accept();
00075 
00076     protected slots:
00078       void slotAddrBook();
00079 
00080       void slotUser1();
00081       void slotUser2();
00082       void slotEmailChanged( const TQString & );
00083     private:
00084       TQLabel      *mLabelTo;
00085       KMLineEdit  *mEditTo;
00086       TQPushButton *mBtnTo;
00087       TQString     mResentTo;
00088       bool        mImmediate;
00089   };
00090 
00091 } // namespace KMail
00092 
00093 #endif // KMAIL_REDIRECTDIALOG_H