Function setProgressCallback

Synopsis

#include <include/bitarchivehandler.hpp>

void setProgressCallback(const ProgressCallback &callback)

Description

Sets the callback to be called when the processed size of the ongoing operation is updated.

Note
The percentage of completition of the current operation can be obtained by calculating static_cast<int>( ( 100.0 * processed_size ) / total_size ).
Parameters

callback - the progress callback to be used.

Source

Lines 75-77 in src/bitarchivehandler.cpp. Line 154 in include/bitarchivehandler.hpp.

void BitArchiveHandler::setProgressCallback( const ProgressCallback& callback ) {
    mProgressCallback = callback;
}





Add Discussion as Guest

Log in