00001
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 TQVBox;
00043 class TQWidgetStack;
00044
00045 namespace KMail {
00046
00047 class ImapAccountBase;
00048
00053 class FolderDiaQuotaTab : public FolderDiaTab
00054 {
00055 Q_OBJECT
00056 TQ_OBJECT
00057
00058 public:
00059 FolderDiaQuotaTab( KMFolderDialog* dlg, TQWidget* parent, const char* name = 0 );
00060
00061 virtual void load();
00062 virtual bool save();
00063 virtual AccepStatus accept();
00064
00065 static bool supports( KMFolder* refFolder );
00066
00067 private:
00068 void initializeWithValuesFromFolder( KMFolder* folder );
00069 void showQuotaWidget();
00070 private slots:
00071
00072 void slotConnectionResult( int, const TQString& );
00073 void slotReceivedQuotaInfo( KMFolder*, KIO::Job*, const KMail::QuotaInfo& );
00074
00075
00076 private:
00077
00078 TQLabel* mLabel;
00079 KMail::QuotaWidget* mQuotaWidget;
00080 TQWidgetStack* mStack;
00081 ImapAccountBase* mImapAccount;
00082 TQString mImapPath;
00083 KMFolderDialog* mDlg;
00084
00085 QuotaInfo mQuotaInfo;
00086 KMFolderType mFolderType;
00087 };
00088
00089 }
00090
00091 #endif
00092