ICF 3.1.1.10
Technical documentation of ICF Libraries
IProgressManager.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// Qt includes
10#include <QtCore/QByteArray>
11#include <QtCore/QString>
12
13// ICF includes
14#include <istd/IPolymorphic.h>
15
16
17namespace iproc
18{
19
20
24class IProgressManager: virtual public istd::IPolymorphic
25{
26public:
32 const QByteArray& progressId,
33 const QString& description,
34 bool isCancelable = false) = 0;
39 virtual void EndProgressSession(int sessionId) = 0;
44 virtual void OnProgress(int sessionId, double currentProgress) = 0;
45
50 virtual bool IsCanceled(int sessionId) const = 0;
51};
52
53
54} // namespace iproc
55
56
Consume information about progress of some process.
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.
virtual void OnProgress(int sessionId, double currentProgress)=0
Callback function for a progress event.
virtual bool IsCanceled(int sessionId) const =0
Check if this processing operation should be canceled.
This namespace containes interfaces and implementation of data processing concepts.

© Witold Gantzke and Kirill Lepskiy