VMime
progressListener Class Referenceabstract
Inheritance diagram for progressListener:

Public Member Functions

virtual void start (const size_t predictedTotal)=0
 
virtual void progress (const size_t current, const size_t currentTotal)=0
 
virtual void stop (const size_t total)=0
 

Protected Member Functions

virtual ~progressListener ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ~progressListener()

virtual ~progressListener ( )
protectedvirtual

Member Function Documentation

◆ progress()

virtual void progress ( const size_t  current,
const size_t  currentTotal 
)
pure virtual

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

Parameters
currentcurrent position
currentTotaladjusted total amount of units

Implemented in progressListenerSizeAdapter.

Referenced by vmime::utility::bufferedStreamCopy(), qpEncoder::decode(), uuEncoder::decode(), b64Encoder::decode(), uuEncoder::encode(), b64Encoder::encode(), qpEncoder::encode(), stringProxy::extract(), and progressListenerSizeAdapter::progress().

◆ start()

virtual void start ( const size_t  predictedTotal)
pure virtual

Called at the beginning of the operation.

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

Implemented in progressListenerSizeAdapter.

Referenced by vmime::utility::bufferedStreamCopy(), uuEncoder::decode(), b64Encoder::decode(), uuEncoder::encode(), b64Encoder::encode(), qpEncoder::encode(), emptyContentHandler::extract(), stringProxy::extract(), emptyContentHandler::extractRaw(), and progressListenerSizeAdapter::start().

◆ stop()


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