-
Notifications
You must be signed in to change notification settings - Fork 1
/
externalprogressbar.h
41 lines (29 loc) · 1.11 KB
/
externalprogressbar.h
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
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef EXTERNALPROGRESSBAR_H
#define EXTERNALPROGRESSBAR_H
////////////////////////////////////////////////////////////////////////////////
// Class for exporting progressbar state to some external component
// At the moment implemented only for the Windows taskbar
#include "common.h"
class ExternalProgressBarPrivate;
class ExternalProgressBar
{
protected:
ExternalProgressBarPrivate* const d_ptr;
public:
ExternalProgressBar(QWidget* mainWindow);
~ExternalProgressBar();
// Initializes the external progress bar and sets its limits
bool InitProgressBar(quint64 maxSteps);
// Deinitializes the external progress bar and returns into the normal state
bool DestroyProgressBar();
// Updates the current progress bar position
bool SetProgressValue(quint64 currentSteps);
// Sets the progress bar to indicate pause
bool ProgressSetPause();
// Sets the progress bar to indicate an error
bool ProgressSetError();
protected:
// Maximum counter value for the progress bar
quint64 m_MaxValue;
};
#endif // EXTERNALPROGRESSBAR_H