kmail
folderdiaquotatab.h
Go to the documentation of this file.00001 // -*- mode: C++; c-file-style: "gnu" -*- 00032 #ifndef FOLDERDIAQUOTA_H 00033 #define FOLDERDIAQUOTA_H 00034 00035 #include "kmfolderdia.h" 00036 #include "kmfoldertype.h" 00037 #include "quotajobs.h" 00038 00039 namespace KMail { 00040 class QuotaWidget; 00041 } 00042 class QVBox; 00043 class QWidgetStack; 00044 00045 namespace KMail { 00046 00047 class ImapAccountBase; 00048 00053 class FolderDiaQuotaTab : public FolderDiaTab 00054 { 00055 Q_OBJECT 00056 00057 public: 00058 FolderDiaQuotaTab( KMFolderDialog* dlg, QWidget* parent, const char* name = 0 ); 00059 00060 virtual void load(); 00061 virtual bool save(); 00062 virtual AcceptStatus accept(); 00063 00064 static bool supports( KMFolder* refFolder ); 00065 00066 private: 00067 void initializeWithValuesFromFolder( KMFolder* folder ); 00068 void showQuotaWidget(); 00069 private slots: 00070 // Network (KIO) slots 00071 void slotConnectionResult( int, const QString& ); 00072 void slotReceivedQuotaInfo( KMFolder*, KIO::Job*, const KMail::QuotaInfo& ); 00073 00074 00075 private: 00076 00077 QLabel* mLabel; 00078 KMail::QuotaWidget* mQuotaWidget; 00079 QWidgetStack* mStack; 00080 ImapAccountBase* mImapAccount; 00081 QString mImapPath; 00082 KMFolderDialog* mDlg; 00083 00084 QuotaInfo mQuotaInfo; 00085 KMFolderType mFolderType; 00086 }; 00087 00088 } // end of namespace KMail 00089 00090 #endif /* FOLDERDIAQUOTA_H */ 00091