- Re-factored the code so that Engine is now the main class that owns WindowManager...
[qtmeetings] / src / UserInterface / Utils / ProgressBar.h
1 #ifndef PROGRESSBAR_H_
2 #define PROGRESSBAR_H_
3
4 #include <QDialog>
5
6 class QProgressBar;
7
8 //! UserInterface class.
9 /*!
10  * UserInterface class which launches a modal progress bar during application events that might take
11  * some time
12  */
13 class ProgressBar : public QDialog
14 {
15         Q_OBJECT
16
17 public:
18         //! Constructor.
19         /*!
20          * Constructor to initialize the StatusWidget instance.
21          * \param aParent Parent object.
22          * \param aText Title string to be set to the progress bar.
23          */
24         ProgressBar( const QString &aText, QWidget *aParent = 0 );
25         //! Destructor.
26         virtual ~ProgressBar();
27
28 signals:
29         //! Signal. Emitted if user presses cancel button.
30         /*!
31          * Signal. Emitted if user presses cancel button.
32          */
33         void cancel();
34         void started();
35
36 private:
37         QProgressBar *iProgress;
38
39 };
40
41 #endif /*PROGRESSBAR_H_*/