kmail Library API Documentation

kmfolderdia.h

00001 // -*- mode: C++; c-file-style: "gnu" -*-
00002 #ifndef __KMFOLDERDIA
00003 #define __KMFOLDERDIA
00004 
00005 #include <kdialogbase.h>
00006 
00007 class QCheckBox;
00008 class QPushButton;
00009 class QLineEdit;
00010 class QListBox;
00011 class QComboBox;
00012 class QGroupBox;
00013 class KMFolder;
00014 class KMFolderTreeItem;
00015 class KMFolderDir;
00016 class KIntNumInput;
00017 class KIconButton;
00018 class IdentityCombo;
00019 template <typename T> class QGuardedPtr;
00020 
00023 class KMFolderDialog : public KDialogBase
00024 {
00025   Q_OBJECT
00026 
00027 public:
00028   KMFolderDialog( KMFolder *folder, KMFolderDir *aFolderDir,
00029           QWidget *parent, const QString& caption,
00030                   const QString& name = QString::null );
00031 
00032 protected slots:
00033   virtual void slotOk( void );
00034   virtual void slotExpireFolder( bool );
00035   void slotReadExpiryUnitChanged( int );
00036   void slotUnreadExpiryUnitChanged( int );
00037   void slotChangeIcon( QString icon );
00038   /*
00039    * is called if the folder dropdown changes
00040    * then we update the other items to reflect the capabilities
00041    */
00042   void slotUpdateItems( int );
00043   void slotFolderNameChanged( const QString& );
00044 
00045 private:
00046   void initializeWithValuesFromFolder( KMFolder* folder );
00047 
00048 protected:
00049   QComboBox *mBelongsToComboBox;
00050   QComboBox *mMailboxTypeComboBox;
00051   QComboBox *mShowSenderReceiverComboBox;
00052   QLineEdit *mNameEdit;
00053   QGuardedPtr<KMFolder> mFolder;
00054   QGuardedPtr<KMFolderDir> mFolderDir;
00055   QLabel      *mNormalIconLabel;
00056   KIconButton *mNormalIconButton;
00057   QLabel      *mUnreadIconLabel;
00058   KIconButton *mUnreadIconButton;
00059   QCheckBox   *mIconsCheckBox;
00060   QCheckBox   *mNewMailCheckBox;
00061 
00062   QValueList<QGuardedPtr<KMFolder> > mFolders;
00063 
00064   QCheckBox *mHoldsMailingListCheckBox;
00065   QCheckBox *mExpireFolderCheckBox;
00066   QLineEdit *mMailingListPostAddressEdit;
00067   IdentityCombo *mIdentityComboBox;
00068   QGroupBox *mExpireGroupBox;
00069   QGroupBox *mMailboxTypeGroupBox;
00070 //   QLineEdit *mailingListAdminAddress;
00071 
00072   KIntNumInput *mReadExpiryTimeNumInput, *mUnreadExpiryTimeNumInput;
00073   QComboBox    *mReadExpiryUnitsComboBox, *mUnreadExpiryUnitsComboBox;
00074 };
00075 
00076 #endif /*__KMFOLDERDIA*/
00077 
KDE Logo
This file is part of the documentation for kmail Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:37:27 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003