18#ifndef CUPT_DOWNLOAD_PROGRESS_SEEN
19#define CUPT_DOWNLOAD_PROGRESS_SEEN
40 internal::ProgressImpl* __impl;
54 float sizeScaleFactor;
170 CUPT_LOCAL
void progress(
const vector< string >& params);
download progress meter
Definition progress.hpp:39
virtual void finishedDownloadHook(const string &uri, const string &result)
string getShortAliasForUri(const string &uri) const
uint64_t getOverallFetchedSize() const
void setLongAliasForUri(const string &uri, const string &alias)
sets a long alias for URI
virtual void finishHook()
size_t getOverallEstimatedTime() const
size_t getDownloadSpeed() const
virtual void updateHook(bool immediate)
uint64_t getOverallDownloadedSize() const
void setShortAliasForUri(const string &uri, const string &alias)
sets a short alias for URI
void markAsOptional(const string &uri)
virtual ~Progress()
destructor
const std::map< string, DownloadRecord > & getDownloadRecords() const
uint64_t getOverallEstimatedSize() const
static float speedCalculatingAccuracy
amount of seconds considered while calculating a download speed
Definition progress.hpp:149
bool isOptional(const string &uri) const
string getLongAliasForUri(const string &uri) const
size_t getOverallDownloadTime() const
virtual void newDownloadHook(const string &uri, const DownloadRecord &downloadRecord)
download element
Definition progress.hpp:44
size_t size
expected file size, -1 if unknown
Definition progress.hpp:47
Phase
Definition progress.hpp:49
size_t downloadedSize
already downloaded amount of bytes
Definition progress.hpp:46
size_t number
unique number
Definition progress.hpp:45