forked from avTranscoder/avTranscoder
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathIProgress.hpp
More file actions
38 lines (32 loc) · 903 Bytes
/
Copy pathIProgress.hpp
File metadata and controls
38 lines (32 loc) · 903 Bytes
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
#ifndef _AV_TRANSCODER_IPROGRESS_LISTENER_HPP_
#define _AV_TRANSCODER_IPROGRESS_LISTENER_HPP_
#include <AvTranscoder/common.hpp>
namespace avtranscoder
{
/**
* @brief Indicate the state of a process.
*/
enum EJobStatus
{
eJobStatusContinue = 0,
eJobStatusCancel
};
/**
* @brief Base class of Progress.
* Inherit this class to have your own way to manage a progress bar.
* You can inherit this class in C++, but also in python / Java binding.
*/
class AvExport IProgress
{
public:
virtual ~IProgress(){};
/**
* @brief Manage the progress.
* @param processedDuration: what is processed
* @param programDuration: what you need to process (the totality)
* @return return EJobStatus to manage the process (continuing, stopping, paused, etc)
*/
virtual EJobStatus progress(const double processedDuration, const double programDuration) = 0;
};
}
#endif