Diffstat (limited to 'noncore/unsupported/mail2/mailstatusbar.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/mailstatusbar.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/noncore/unsupported/mail2/mailstatusbar.h b/noncore/unsupported/mail2/mailstatusbar.h new file mode 100644 index 0000000..11cd538 --- a/dev/null +++ b/noncore/unsupported/mail2/mailstatusbar.h | |||
@@ -0,0 +1,38 @@ | |||
1 | #ifndef MAILSTATUSBAR_H | ||
2 | #define MAILSTATUSBAR_H | ||
3 | |||
4 | #include <qhbox.h> | ||
5 | |||
6 | class QLabel; | ||
7 | class QToolButton; | ||
8 | class QProgressBar; | ||
9 | |||
10 | class MailStatusBar : public QHBox | ||
11 | { | ||
12 | Q_OBJECT | ||
13 | |||
14 | public: | ||
15 | MailStatusBar(QWidget *parent = 0, const char *name = 0, WFlags fl = 0); | ||
16 | |||
17 | public slots: | ||
18 | void setStatusText(const QString &text); | ||
19 | void setStopEnabled(bool enabled); | ||
20 | void setProgressTotalSteps(int steps); | ||
21 | void setProgress(int progress); | ||
22 | void resetProgress(); | ||
23 | |||
24 | signals: | ||
25 | void stop(); | ||
26 | |||
27 | protected slots: | ||
28 | void stopClicked(); | ||
29 | |||
30 | private: | ||
31 | QLabel *label; | ||
32 | QToolButton *stopButton; | ||
33 | QProgressBar *progress; | ||
34 | |||
35 | }; | ||
36 | |||
37 | #endif | ||
38 | |||