summaryrefslogtreecommitdiffstats
path: root/src/timeoutdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/timeoutdialog.h')
-rw-r--r--src/timeoutdialog.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/timeoutdialog.h b/src/timeoutdialog.h
new file mode 100644
index 0000000..643b593
--- /dev/null
+++ b/src/timeoutdialog.h
@@ -0,0 +1,26 @@
+#ifndef TIMEOUTDIALOG_H
+#define TIMEOUTDIALOG_H
+
+#include <QtGui/QApplication>
+#include <QProgressDialog>
+#include <QTimer>
+
+class TimeOutDialog : public QProgressDialog
+{
+ Q_OBJECT
+
+ public:
+ TimeOutDialog(int time, QWidget *parent = 0);
+
+ private:
+ int _time;
+ QTimer _timer;
+
+ public slots:
+ void cancel();
+
+ private slots:
+ void update();
+};
+
+#endif // TIMEOUTDIALOG_H