console-based download progress meter More...
#include <cupt/download/progresses/console.hpp>
Public Member Functions | |
ConsoleProgress () | |
constructor | |
~ConsoleProgress () | |
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 () |
console-based download progress meter
virtual void cupt::download::ConsoleProgress::finishedDownloadHook | ( | const string & | uri, |
const string & | result | ||
) | [protected, virtual] |
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.
virtual void cupt::download::ConsoleProgress::finishHook | ( | ) | [protected, virtual] |
This hook is called before the end of the download session.
Reimplemented from cupt::download::Progress.
virtual void cupt::download::ConsoleProgress::newDownloadHook | ( | const string & | uri, |
const DownloadRecord & | downloadRecord | ||
) | [protected, virtual] |
This hook is called when new download starts.
uri | |
downloadRecord |
Reimplemented from cupt::download::Progress.
virtual void cupt::download::ConsoleProgress::updateHook | ( | bool | immediate | ) | [protected, virtual] |
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.