kmail Library API Documentation

kmfoldercombobox.h

00001 /* kmail folder-list combo-box 00002 * A specialized QComboBox widget that refreshes its contents when 00003 * the folder list changes. 00004 */ 00005 00006 #ifndef __KMFOLDERCOMBOBOX 00007 #define __KMFOLDERCOMBOBOX 00008 00009 #include "kmfolder.h" 00010 00011 #include <qcombobox.h> 00012 #include <qguardedptr.h> 00013 00014 class KMFolderComboBox : public QComboBox 00015 { 00016 Q_OBJECT 00017 00018 public: 00019 KMFolderComboBox( QWidget *parent = 0, char *name = 0 ); 00020 KMFolderComboBox( bool rw, QWidget *parent = 0, char *name = 0 ); 00021 00023 void showOutboxFolder(bool shown); 00024 void showImapFolders(bool shown); 00025 00026 void setFolder( KMFolder *aFolder ); 00027 void setFolder( const QString &idString ); 00028 KMFolder *getFolder(); 00029 00030 public slots: 00032 void refreshFolders(); 00033 00034 private slots: 00035 void slotActivated(int index); 00036 00037 private: 00039 void createFolderList(QStringList *names, 00040 QValueList<QGuardedPtr<KMFolder> > *folders); 00041 void init(); 00042 00043 QGuardedPtr<KMFolder> mFolder; 00044 bool mOutboxShown; 00045 bool mImapShown; 00046 int mSpecialIdx; 00047 }; 00048 00049 #endif /* __KMFOLDERCOMBOBOX */
KDE Logo
This file is part of the documentation for kmail Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 19:46:48 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003