24#ifndef CLI_PROGRESS_REPORTER_H
25#define CLI_PROGRESS_REPORTER_H
46 virtual void AddPhases(
int aNumPhases )
override {};
61 virtual void AdvancePhase(
const wxString& aMessage )
override;
66 virtual void Report(
const wxString& aMessage )
override;
100 virtual void SetTitle(
const wxString& aTitle )
override {}
106 void printLine(
const wxString& aMessage );
Reporter forwarding messages to stdout or stderr as appropriate.
virtual void SetTitle(const wxString &aTitle) override
Change the title displayed on the window caption.
virtual void AdvancePhase() override
Use the next available virtual zone of the dialog progress bar.
virtual ~CLI_PROGRESS_REPORTER()
virtual void BeginPhase(int aPhase) override
Initialize the aPhase virtual zone of the dialog progress bar.
virtual void AdvanceProgress() override
Increment the progress bar length (inside the current virtual zone).
static PROGRESS_REPORTER & GetInstance()
virtual void SetNumPhases(int aNumPhases) override
Set the number of phases.
virtual bool KeepRefreshing(bool aWait=false) override
Update the UI (if any).
virtual void AddPhases(int aNumPhases) override
virtual void SetMaxProgress(int aMaxProgress) override
Fix the value that gives the 100 percent progress bar length (inside the current virtual zone).
virtual void SetCurrentProgress(double aProgress) override
Set the progress value to aProgress (0..1).
void printLine(const wxString &aMessage)
virtual void Report(const wxString &aMessage) override
Display aMessage in the progress bar dialog.
virtual bool IsCancelled() const override
A progress reporter interface for use in multi-threaded environments.