Cupt
|
console-based download progress meter More...
#include <cupt/download/progresses/console.hpp>
Public Member Functions | |
ConsoleProgress () | |
constructor | |
~ConsoleProgress () | |
destructor | |
![]() | |
Progress () | |
constructor | |
void | setShortAliasForUri (const string &uri, const string &alias) |
sets a short alias for URI More... | |
void | setLongAliasForUri (const string &uri, const string &alias) |
sets a long alias for URI More... | |
void | markAsOptional (const string &uri) |
virtual | ~Progress () |
destructor | |
Protected Member Functions | |
virtual void | newDownloadHook (const string &uri, const DownloadRecord &) |
virtual void | finishedDownloadHook (const string &uri, const string &result) |
virtual void | updateHook (bool immediate) |
virtual void | finishHook () |
![]() | |
string | getLongAliasForUri (const string &uri) const |
string | getShortAliasForUri (const string &uri) const |
bool | isOptional (const string &uri) const |
const std::map< string, DownloadRecord > & | getDownloadRecords () const |
uint64_t | getOverallDownloadedSize () const |
uint64_t | getOverallEstimatedSize () const |
uint64_t | getOverallFetchedSize () const |
size_t | getOverallDownloadTime () const |
size_t | getOverallEstimatedTime () const |
size_t | getDownloadSpeed () const |
Additional Inherited Members | |
![]() | |
static float | speedCalculatingAccuracy |
amount of seconds considered while calculating a download speed More... | |
console-based download progress meter
|
protectedvirtual |
This hook is called when some download is finished.
uri | |
result | download exit code, empty string is success, non-empty string is human-readable download error message |
Reimplemented from cupt::download::Progress.
|
protectedvirtual |
This hook is called before the end of the download session.
Reimplemented from cupt::download::Progress.
|
protectedvirtual |
This hook is called when new download starts.
uri | |
downloadRecord |
Reimplemented from cupt::download::Progress.
|
protectedvirtual |
This hook is called whenever some download information is updated (including being called after newDownloadHook and finishedDownloadHook).
immediate | is update important or not; examples of important updates: new download, finished download, changes of a download state; examples of unimportant updates: number of download bytes changes for some download |
Reimplemented from cupt::download::Progress.