summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/mailstatusbar.h
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/mail2/mailstatusbar.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/mailstatusbar.h38
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 @@
+#ifndef MAILSTATUSBAR_H
+#define MAILSTATUSBAR_H
+
+#include <qhbox.h>
+
+class QLabel;
+class QToolButton;
+class QProgressBar;
+
+class MailStatusBar : public QHBox
+{
+ Q_OBJECT
+
+public:
+ MailStatusBar(QWidget *parent = 0, const char *name = 0, WFlags fl = 0);
+
+public slots:
+ void setStatusText(const QString &text);
+ void setStopEnabled(bool enabled);
+ void setProgressTotalSteps(int steps);
+ void setProgress(int progress);
+ void resetProgress();
+
+signals:
+ void stop();
+
+protected slots:
+ void stopClicked();
+
+private:
+ QLabel *label;
+ QToolButton *stopButton;
+ QProgressBar *progress;
+
+};
+
+#endif
+