kmail
kmfolderseldlg.h00001
00002
00003
00004
00005
00006 #ifndef kmfolderseldlg_h
00007 #define kmfolderseldlg_h
00008
00009 #include <kdialogbase.h>
00010 #include <simplefoldertree.h>
00011 #include <tqvaluelist.h>
00012 #include <tqguardedptr.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 TQString& caption,
00035 bool mustBeReadWrite, bool useGlobalSettings = true );
00042 KMFolderSelDlg( TQWidget * parent, KMFolderTree * tree,
00043 const TQString& 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 }
00073
00074 #endif
|