kmail

folderdiaquotatab.h
1 
31 #ifndef FOLDERDIAQUOTA_H
32 #define FOLDERDIAQUOTA_H
33 
34 #include "kmfolderdia.h"
35 #include "kmfoldertype.h"
36 #include "quotajobs.h"
37 
38 namespace KMail {
39  class QuotaWidget;
40 }
41 class TQVBox;
42 class TQWidgetStack;
43 
44 namespace KMail {
45 
46 class ImapAccountBase;
47 
53 {
54  TQ_OBJECT
55 
56 
57 public:
58  FolderDiaQuotaTab( KMFolderDialog* dlg, TQWidget* parent, const char* name = 0 );
59 
60  virtual void load();
61  virtual bool save();
62  virtual AccepStatus accept();
63 
64  static bool supports( KMFolder* refFolder );
65 
66 private:
67  void initializeWithValuesFromFolder( KMFolder* folder );
68  void showQuotaWidget();
69 private slots:
70  // Network (TDEIO) slots
71  void slotConnectionResult( int, const TQString& );
72  void slotReceivedQuotaInfo( KMFolder*, TDEIO::Job*, const KMail::QuotaInfo& );
73 
74 
75 private:
76 
77  TQLabel* mLabel;
78  KMail::QuotaWidget* mQuotaWidget;
79  TQWidgetStack* mStack;
80  ImapAccountBase* mImapAccount;
81  TQString mImapPath;
82  KMFolderDialog* mDlg;
83 
84  QuotaInfo mQuotaInfo;
85  KMFolderType mFolderType;
86 };
87 
88 } // end of namespace KMail
89 
90 #endif /* FOLDERDIAQUOTA_H */
91 
Dialog for handling the properties of a mail folder.
Definition: kmfolderdia.h:199
Mail folder.
Definition: kmfolder.h:69
"Quota" tab in the folder dialog Internal class, only used by KMFolderDialog
virtual bool save()
Unlike ConfigModuleTab, we return a bool from save.
virtual AccepStatus accept()
Called when clicking OK.
This is the base class for tabs in the folder dialog.
Definition: kmfolderdia.h:70
folderdiaquotatab.h
Definition: aboutdata.cpp:40