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