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