Deepsolver
Public Member Functions
Deepsolver::FilesFetchProgress Class Reference
Inheritance diagram for Deepsolver::FilesFetchProgress:
Deepsolver::AbstractFetchListener

List of all members.

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 &currentPartName)
 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)

Member Function Documentation

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.

Parameters:
[in]currentPartPercentsHow many percents of current part are passed
[in]totalPercentsHow many total percents are passed
[in]partNumberA number of current part
[in]partCountTotal number of parts
[in]currentPartSizeA size of current part in bytes
[in]currentPartNameName 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.