progressListenerSizeAdapter Class Reference
Inheritance diagram for progressListenerSizeAdapter:
Collaboration diagram for progressListenerSizeAdapter:

Public Member Functions

 progressListenerSizeAdapter (progressListener *list, const size_t total)
void start (const size_t predictedTotal)
void progress (const size_t current, const size_t currentTotal)
void stop (const size_t total)

Additional Inherited Members

- Protected Member Functions inherited from progressListener
virtual ~progressListener ()

Detailed Description

A progress listener used when total size is known by the receiver, but not by the notifier.

Constructor & Destructor Documentation

progressListenerSizeAdapter ( progressListener list,
const size_t  total 

Construct a new progressListenerSizeAdapter object.

listwrapped progress listener (can be NULL)
totalpredicted total

Member Function Documentation

void progress ( const size_t  current,
const size_t  currentTotal 

Called during the operation (can be called several times).

currentcurrent position
currentTotaladjusted total amount of units

Implements progressListener.

References progressListener::progress().

void start ( const size_t  predictedTotal)

Called at the beginning of the operation.

predictedTotalpredicted amount of units (this has no concrete meaning: these are not bytes, nor percentage...)

Implements progressListener.

References progressListener::start().

void stop ( const size_t  total)

Called at the end of the operation.

totalfinal total amount of units

Implements progressListener.

References progressListener::stop().

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