kmail

kmfolderseldlg.h

00001 /* KMail Folder Selection Dialog
00002  * Pops up a small window with a list of folders and Ok/Cancel buttons.
00003  * Author: Stefan Taferner <taferner@kde.org>
00004  *         Carsten Burghardt <burghardt@kde.org>
00005  */
00006 #ifndef kmfolderseldlg_h
00007 #define kmfolderseldlg_h
00008 
00009 #include <kdialogbase.h>
00010 #include <simplefoldertree.h>
00011 #include <qvaluelist.h>
00012 #include <qguardedptr.h>
00013 
00014 class KMFolder;
00015 class KMFolderTree;
00016 class KMMainWidget;
00017 class SimpleFolderTree;
00018 
00019 namespace KMail {
00020   //-----------------------------------------------------------------------------
00021   class KMFolderSelDlg: public KDialogBase
00022   {
00023     Q_OBJECT
00024 
00025     public:
00034       KMFolderSelDlg( KMMainWidget * parent, const QString& caption, 
00035           bool mustBeReadWrite, bool useGlobalSettings = true );
00042       KMFolderSelDlg( QWidget * parent, KMFolderTree * tree,
00043           const QString& caption, bool mustBeReadWrite, 
00044           bool useGlobalSettings = true );
00045 
00046       virtual ~KMFolderSelDlg();
00047 
00049       virtual KMFolder* folder( void );
00050 
00052       void setFolder( KMFolder* folder );
00053 
00055       void setFlags( bool mustBeReadWrite, bool showOutbox, bool showImapFolders );
00056 
00057     protected slots:
00058       void slotSelect();
00059       void slotUser1();
00060       void slotUpdateBtnStatus();
00061 
00062     protected:
00063       void readConfig();
00064       void writeConfig();
00066       void init();
00067 
00068       SimpleFolderTree * mTreeView;
00069       bool mUseGlobalSettings;
00070   };
00071 
00072 } // namespace KMail
00073 
00074 #endif /*kmfolderseldlg_h*/
KDE Home | KDE Accessibility Home | Description of Access Keys