IProgressManager.h
Go to the documentation of this file.
1 #ifndef ibase_IProgressManager_included
2 #define ibase_IProgressManager_included
3 
4 
5 // Qt includes
6 #include <QtCore/QByteArray>
7 #include <QtCore/QString>
8 
9 // ACF includes
10 #include <istd/IPolymorphic.h>
11 
12 
13 namespace ibase
14 {
15 
16 
20 class IProgressManager: virtual public istd::IPolymorphic
21 {
22 public:
27  virtual int BeginProgressSession(
28  const QByteArray& progressId,
29  const QString& description,
30  bool isCancelable = false) = 0;
35  virtual void EndProgressSession(int sessionId) = 0;
40  virtual void OnProgress(int sessionId, double currentProgress) = 0;
41 
46  virtual bool IsCanceled(int sessionId) const = 0;
47 };
48 
49 
50 } // namespace ibase
51 
52 
53 #endif // !ibase_IProgressManager_included
54 
55 
virtual void OnProgress(int sessionId, double currentProgress)=0
Callback function for a progress event.
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
virtual bool IsCanceled(int sessionId) const =0
Check if this processing operation should be canceled.
virtual void EndProgressSession(int sessionId)=0
Close progress report session.
virtual int BeginProgressSession(const QByteArray &progressId, const QString &description, bool isCancelable=false)=0
Begin progress report session.
Consume information about progress of some process.

© 2007-2017 Witold Gantzke and Kirill Lepskiy