kmail

folderdiaquotatab.h
1 // -*- mode: C++; c-file-style: "gnu" -*-
32 #ifndef FOLDERDIAQUOTA_H
33 #define FOLDERDIAQUOTA_H
34 
35 #include "kmfolderdia.h"
36 #include "kmfoldertype.h"
37 #include "quotajobs.h"
38 
39 namespace KMail {
40  class QuotaWidget;
41 }
42 class TQVBox;
43 class TQWidgetStack;
44 
45 namespace KMail {
46 
47 class ImapAccountBase;
48 
54 {
55  Q_OBJECT
56 
57 
58 public:
59  FolderDiaQuotaTab( KMFolderDialog* dlg, TQWidget* parent, const char* name = 0 );
60 
61  virtual void load();
62  virtual bool save();
63  virtual AccepStatus accept();
64 
65  static bool supports( KMFolder* refFolder );
66 
67 private:
68  void initializeWithValuesFromFolder( KMFolder* folder );
69  void showQuotaWidget();
70 private slots:
71  // Network (TDEIO) slots
72  void slotConnectionResult( int, const TQString& );
73  void slotReceivedQuotaInfo( KMFolder*, TDEIO::Job*, const KMail::QuotaInfo& );
74 
75 
76 private:
77 
78  TQLabel* mLabel;
79  KMail::QuotaWidget* mQuotaWidget;
80  TQWidgetStack* mStack;
81  ImapAccountBase* mImapAccount;
82  TQString mImapPath;
83  KMFolderDialog* mDlg;
84 
85  QuotaInfo mQuotaInfo;
86  KMFolderType mFolderType;
87 };
88 
89 } // end of namespace KMail
90 
91 #endif /* FOLDERDIAQUOTA_H */
92