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


Public Member Functions | |
| progressListenerSizeAdapter (progressListener *list, const int total) | |
| bool | cancel () const |
| void | start (const int predictedTotal) |
| void | progress (const int current, const int currentTotal) |
| void | stop (const int total) |
A progress listener used when total size is known by the receiver, but not by the notifier.
| progressListenerSizeAdapter | ( | progressListener * | list, | |
| const int | total | |||
| ) |
Construct a new progressListenerSizeAdapter object.
| list | wrapped progress listener (can be NULL) | |
| total | predicted total |
| bool cancel | ( | ) | const [virtual] |
Allow the caller object to cancel the current operation.
Implements progressListener.
References progressListener::cancel().
| void progress | ( | const int | current, | |
| const int | currentTotal | |||
| ) | [virtual] |
Called during the operation (can be called several times).
| current | current position | |
| currentTotal | adjusted total amount of units |
Implements progressListener.
References progressListener::progress().
| void start | ( | const int | predictedTotal | ) | [virtual] |
Called at the beginning of the operation.
| predictedTotal | predicted amount of units (this has no concrete meaning: these are not bytes, nor percentage...) |
Implements progressListener.
References progressListener::start().
| void stop | ( | const int | total | ) | [virtual] |
Called at the end of the operation.
| total | final total amount of units |
Implements progressListener.
References progressListener::stop().
1.6.2