|
Deepsolver
|
Public Member Functions | |
| FilesFetchProgress (std::ostream &stream, bool suppressed) | |
| void | onFetchBegin () |
| Notifies fetching task is initiated. | |
| void | onFetchIsCompleted () |
| Notifies files fetching process is finished. | |
| void | onFetchStatus (unsigned char currentPartPercents, unsigned char totalPercents, size_t partNumber, size_t partCount, size_t currentPartSize, const std::string ¤tPartName) |
| Updates a status for each file fetching. | |
| void | onFilesReading () |
| Notifies fetched files are being read (occurs only after index fetching) | |
| void | onHeadersFetch () |
| Notifies basic headers downloading is in progress (occurs only at index fetching) | |
| void FilesFetchProgress::onFetchBegin | ( | ) | [virtual] |
Implement this method to catch a moment when fetching process begins.
Implements Deepsolver::AbstractFetchListener.
| void FilesFetchProgress::onFetchIsCompleted | ( | ) | [virtual] |
Implement this method to know everything is done.
Implements Deepsolver::AbstractFetchListener.
| void FilesFetchProgress::onFetchStatus | ( | unsigned char | currentPartPercents, |
| unsigned char | totalPercents, | ||
| size_t | partNumber, | ||
| size_t | partCount, | ||
| size_t | currentPartSize, | ||
| const std::string & | currentPartName | ||
| ) | [virtual] |
This method is called each time new portion of data is obtained and let you know how many total percents of work are completed.
| [in] | currentPartPercents | How many percents of current part are passed |
| [in] | totalPercents | How many total percents are passed |
| [in] | partNumber | A number of current part |
| [in] | partCount | Total number of parts |
| [in] | currentPartSize | A size of current part in bytes |
| [in] | currentPartName | Name of current part (usually URL) |
Implements Deepsolver::AbstractFetchListener.
| void FilesFetchProgress::onFilesReading | ( | ) | [virtual] |
Implement this method to know fetched files reading begins.
Implements Deepsolver::AbstractFetchListener.
| DEEPSOLVER_BEGIN_NAMESPACE void FilesFetchProgress::onHeadersFetch | ( | ) | [virtual] |
Implement this method to show notification basic headers come to machine.
Implements Deepsolver::AbstractFetchListener.
1.7.5.1