[*_restore] Add progress bar to cache_restore and era_restore.
A lot of refactoring common code between the restore tools.
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
#define BASE_PROGRESS_MONITOR_H
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
//----------------------------------------------------------------
|
||||
@ -9,15 +10,13 @@
|
||||
namespace base {
|
||||
class progress_monitor {
|
||||
public:
|
||||
typedef boost::shared_ptr<progress_monitor> ptr;
|
||||
|
||||
virtual ~progress_monitor() {}
|
||||
|
||||
virtual void update_percent(unsigned) = 0;
|
||||
};
|
||||
|
||||
progress_monitor::ptr create_progress_bar(std::string const &title);
|
||||
progress_monitor::ptr create_quiet_progress_monitor();
|
||||
std::auto_ptr<progress_monitor> create_progress_bar(std::string const &title);
|
||||
std::auto_ptr<progress_monitor> create_quiet_progress_monitor();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user