summaryrefslogtreecommitdiffstats
path: root/src/timeoutdialog.h
blob: a5278cb16f752b10dc62840f2b1813ef3ea498e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2013, University of Freiburg,
// Author: Manuel Schneider <ms1144>

#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