AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IProgress.hpp
Go to the documentation of this file.
1 #ifndef _AV_TRANSCODER_IPROGRESS_LISTENER_HPP_
2 #define _AV_TRANSCODER_IPROGRESS_LISTENER_HPP_
3 
5 
6 namespace avtranscoder
7 {
8 
9 /**
10  * @brief Indicate the state of a process.
11  */
13 {
16 };
17 
18 /**
19  * @brief Base class of Progress.
20  * Inherit this class to have your own way to manage a progress bar.
21  * You can inherit this class in C++, but also in python / Java binding.
22  */
23 class AvExport IProgress
24 {
25 public:
26  virtual ~IProgress(){};
27 
28  /**
29  * @brief Manage the progress.
30  * @param processedDuration: what is processed
31  * @param programDuration: what you need to process (the totality)
32  * @return return EJobStatus to manage the process (continuing, stopping, paused, etc)
33  */
34  virtual EJobStatus progress(const double processedDuration, const double programDuration) = 0;
35 };
36 }
37 
38 #endif
Base class of Progress. Inherit this class to have your own way to manage a progress bar...
Definition: IProgress.hpp:23
EJobStatus
Indicate the state of a process.
Definition: IProgress.hpp:12