27 #ifndef PROGRESS_REPORTER_H 28 #define PROGRESS_REPORTER_H 52 virtual void AddPhases(
int aNumPhases ) = 0;
67 virtual void AdvancePhase(
const wxString& aMessage ) = 0;
72 virtual void Report(
const wxString& aMessage ) = 0;
106 virtual void SetTitle(
const wxString& aTitle ) = 0;
virtual void SetMaxProgress(int aMaxProgress)=0
Fix the value that gives the 100 percent progress bar length (inside the current virtual zone).
virtual void BeginPhase(int aPhase)=0
Initialize the aPhase virtual zone of the dialog progress bar.
virtual void Report(const wxString &aMessage)=0
Display aMessage in the progress bar dialog.
A progress reporter interface for use in multi-threaded environments.
virtual void SetTitle(const wxString &aTitle)=0
Change the title displayed on the window caption.
virtual void AdvanceProgress()=0
Increment the progress bar length (inside the current virtual zone).
virtual void AdvancePhase()=0
Use the next available virtual zone of the dialog progress bar.
virtual void AddPhases(int aNumPhases)=0
virtual void SetNumPhases(int aNumPhases)=0
Set the number of phases.
virtual ~PROGRESS_REPORTER()
virtual bool KeepRefreshing(bool aWait=false)=0
Update the UI (if any).
virtual bool IsCancelled() const =0
virtual void SetCurrentProgress(double aProgress)=0
Set the progress value to aProgress (0..1).