Go to the documentation of this file.
18 #ifndef CUPT_DOWNLOAD_MANAGER_SEEN
19 #define CUPT_DOWNLOAD_MANAGER_SEEN
26 #include <cupt/fwd.hpp>
42 internal::ManagerImpl* __impl;
57 ExtendedUri(
const Uri& uri_,
const string& shortAlias_,
const string& longAlias_)
58 : uri(uri_), shortAlias(shortAlias_), longAlias(longAlias_)
84 Manager(
const shared_ptr< const Config >& config,
const shared_ptr< Progress >& progress);
94 string download(
const vector< DownloadEntity >& entities);
uri with aliases
Definition: manager.hpp:45
downloadable element
Definition: manager.hpp:62
Uri uri
uri
Definition: manager.hpp:47
vector< ExtendedUri > extendedUris
list of alternative uris
Definition: manager.hpp:64
uniform resource indentifier, "download path"
Definition: uri.hpp:37
std::function< string() > postAction
post-download callback
Definition: manager.hpp:73
string shortAlias
short alias
Definition: manager.hpp:48
string longAlias
long alias (full description)
Definition: manager.hpp:49
string targetPath
path where to place downloaded file
Definition: manager.hpp:65
bool optional
true if failure to download this is not an error
Definition: manager.hpp:74
performs downloads
Definition: manager.hpp:40
size_t size
Definition: manager.hpp:66
ExtendedUri(const Uri &uri_, const string &shortAlias_, const string &longAlias_)
trivial constructor
Definition: manager.hpp:57