27#ifndef PROGRESS_REPORTER_H
28#define PROGRESS_REPORTER_H
74 virtual void Report(
const wxString& aMessage ) = 0;
108 virtual void SetTitle(
const wxString& aTitle ) = 0;
A progress reporter interface for use in multi-threaded environments.
virtual bool IsCancelled() const =0
virtual void AddPhases(int aNumPhases)=0
virtual bool KeepRefreshing(bool aWait=false)=0
Update the UI (if any).
virtual void SetNumPhases(int aNumPhases)=0
Set the number of phases.
PROGRESS_REPORTER(const PROGRESS_REPORTER &)=delete
virtual void Report(const wxString &aMessage)=0
Display aMessage in the progress bar dialog.
virtual ~PROGRESS_REPORTER()
virtual void BeginPhase(int aPhase)=0
Initialize the aPhase virtual zone of the dialog progress bar.
virtual void AdvancePhase()=0
Use the next available virtual zone of the dialog progress bar.
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(const wxString &aMessage)=0
Use the next available virtual zone of the dialog progress bar and updates the message.
virtual void SetCurrentProgress(double aProgress)=0
Set the progress value to aProgress (0..1).
virtual void SetMaxProgress(int aMaxProgress)=0
Fix the value that gives the 100 percent progress bar length (inside the current virtual zone).