An interface to implement if you want to be notified of a state of progress by some objects. More...

Public Member Functions | |
| virtual bool | cancel () const =0 |
| virtual void | start (const int predictedTotal)=0 |
| virtual void | progress (const int current, const int currentTotal)=0 |
| virtual void | stop (const int total)=0 |
Protected Member Functions | |
| virtual | ~progressListener () |
An interface to implement if you want to be notified of a state of progress by some objects.
| virtual ~progressListener | ( | ) | [protected, virtual] |
| virtual bool cancel | ( | ) | const [pure virtual] |
Allow the caller object to cancel the current operation.
Implemented in progressListenerSizeAdapter.
Referenced by progressListenerSizeAdapter::cancel().
| virtual void progress | ( | const int | current, | |
| const int | currentTotal | |||
| ) | [pure virtual] |
Called during the operation (can be called several times).
| current | current position | |
| currentTotal | adjusted total amount of units |
Implemented in progressListenerSizeAdapter.
Referenced by uuEncoder::decode(), qpEncoder::decode(), b64Encoder::decode(), uuEncoder::encode(), qpEncoder::encode(), b64Encoder::encode(), stringProxy::extract(), maildirFolder::fetchMessage(), and progressListenerSizeAdapter::progress().
| virtual void start | ( | const int | predictedTotal | ) | [pure virtual] |
Called at the beginning of the operation.
| predictedTotal | predicted amount of units (this has no concrete meaning: these are not bytes, nor percentage...) |
Implemented in progressListenerSizeAdapter.
Referenced by uuEncoder::decode(), b64Encoder::decode(), uuEncoder::encode(), qpEncoder::encode(), b64Encoder::encode(), stringProxy::extract(), emptyContentHandler::extract(), emptyContentHandler::extractRaw(), and progressListenerSizeAdapter::start().
| virtual void stop | ( | const int | total | ) | [pure virtual] |
Called at the end of the operation.
| total | final total amount of units |
Implemented in progressListenerSizeAdapter.
Referenced by uuEncoder::decode(), qpEncoder::decode(), b64Encoder::decode(), uuEncoder::encode(), qpEncoder::encode(), b64Encoder::encode(), stringProxy::extract(), emptyContentHandler::extract(), emptyContentHandler::extractRaw(), IMAPFolder::fetchMessage(), and progressListenerSizeAdapter::stop().
1.6.2