pdfobjects::utils::IProgressBar Class Reference

#include <pdfwriter.h>

Inheritance diagram for pdfobjects::utils::IProgressBar:
gui::ProgressBar

List of all members.

Public Member Functions

virtual ~IProgressBar ()
virtual void start ()=0
virtual void finish ()=0
virtual void update (int step)=0
virtual void setMaxStep (int maxStep)=0

Detailed Description

Interface for progress visualizator. Implementator should provide visual form of progress.
Progress is started by start method, changed by update method and finished by finish method. If progress contains preciselly known number of steps, setMaxStep method determines this number.


Constructor & Destructor Documentation

virtual pdfobjects::utils::IProgressBar::~IProgressBar (  )  [inline, virtual]

Default virtual destructor. Empty destructor.


Member Function Documentation

virtual void pdfobjects::utils::IProgressBar::finish (  )  [pure virtual]

Finishes progress visualization. Progress bar instance can be destroyed immediatelly after this method finishes.

Implemented in gui::ProgressBar.

Referenced by pdfobjects::utils::ProgressObserver::notify(), and pdfobjects::utils::ProgressObserver::~ProgressObserver().

virtual void pdfobjects::utils::IProgressBar::setMaxStep ( int  maxStep  )  [pure virtual]

Sets maximum progress state.

Parameters:
maxStep Maximum step.

This should be called when percentage progress bar should be visualized.

Implemented in gui::ProgressBar.

Referenced by pdfobjects::utils::ProgressObserver::notify().

virtual void pdfobjects::utils::IProgressBar::start (  )  [pure virtual]

Starts progress visualization.

Implemented in gui::ProgressBar.

Referenced by pdfobjects::utils::ProgressObserver::notify().

virtual void pdfobjects::utils::IProgressBar::update ( int  step  )  [pure virtual]

New progress state.

Parameters:
step Number of current progress step.

Implemented in gui::ProgressBar.

Referenced by pdfobjects::utils::ProgressObserver::notify().


The documentation for this class was generated from the following file: