2014-08-05 16:17:57 +05:30
|
|
|
#ifndef BASE_PROGRESS_MONITOR_H
|
|
|
|
#define BASE_PROGRESS_MONITOR_H
|
|
|
|
|
2014-08-26 17:35:21 +05:30
|
|
|
#include <memory>
|
2014-08-05 16:17:57 +05:30
|
|
|
#include <string>
|
|
|
|
|
|
|
|
//----------------------------------------------------------------
|
|
|
|
|
|
|
|
namespace base {
|
|
|
|
class progress_monitor {
|
|
|
|
public:
|
|
|
|
virtual ~progress_monitor() {}
|
|
|
|
|
|
|
|
virtual void update_percent(unsigned) = 0;
|
|
|
|
};
|
|
|
|
|
2016-02-04 14:32:42 +05:30
|
|
|
std::unique_ptr<progress_monitor> create_progress_bar(std::string const &title);
|
|
|
|
std::unique_ptr<progress_monitor> create_quiet_progress_monitor();
|
2014-08-05 16:17:57 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------
|
|
|
|
|
|
|
|
#endif
|