kmail

archivefolderdialog.h

00001 /* Copyright 2009 Klarälvdalens Datakonsult AB
00002 
00003    This program is free software; you can redistribute it and/or
00004    modify it under the terms of the GNU General Public License as
00005    published by the Free Software Foundation; either version 2 of
00006    the License or (at your option) version 3 or any later version
00007    accepted by the membership of KDE e.V. (or its successor approved
00008    by the membership of KDE e.V.), which shall act as a proxy
00009    defined in Section 14 of version 3 of the license.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 #ifndef ARCHIVEFOLDERDIALOG_H
00020 #define ARCHIVEFOLDERDIALOG_H
00021 
00022 #include <kdialogbase.h>
00023 
00024 class TQCheckBox;
00025 class KURLRequester;
00026 class KComboBox;
00027 class KMFolder;
00028 
00029 namespace KMail
00030 {
00031 class FolderRequester;
00032 
00033 class ArchiveFolderDialog : public KDialogBase
00034 {
00035   Q_OBJECT
00036 
00037   public:
00038 
00039     ArchiveFolderDialog( TQWidget *parent = 0 );
00040     void setFolder( KMFolder *defaultFolder );
00041 
00042   protected slots:
00043 
00044     void slotFixFileExtension();
00045     void slotFolderChanged( KMFolder * );
00046     void slotUrlChanged( const TQString & );
00047 
00049     virtual void slotOk();
00050 
00051   private:
00052 
00053     TQWidget *mParentWidget;
00054     TQCheckBox *mDeleteCheckBox;
00055     FolderRequester *mFolderRequester;
00056     KComboBox *mFormatComboBox;
00057     KURLRequester *mUrlRequester;
00058 };
00059 
00060 }
00061 
00062 #endif