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
38namespace KMail {
39 class QuotaWidget;
40}
41class TQVBox;
42class TQWidgetStack;
43
44namespace KMail {
45
46class ImapAccountBase;
47
53{
54 TQ_OBJECT
55
56
57public:
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
66private:
67 void initializeWithValuesFromFolder( KMFolder* folder );
68 void showQuotaWidget();
69private slots:
70 // Network (TDEIO) slots
71 void slotConnectionResult( int, const TQString& );
72 void slotReceivedQuotaInfo( KMFolder*, TDEIO::Job*, const KMail::QuotaInfo& );
73
74
75private:
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