Cupt
Public Attributes | List of all members
cupt::download::Manager::DownloadEntity Struct Reference

downloadable element More...

#include <cupt/download/manager.hpp>

Public Attributes

vector< ExtendedUriextendedUris
 list of alternative uris
 
string targetPath
 path where to place downloaded file
 
size_t size
 
std::function< string() > postAction
 post-download callback More...
 
bool optional
 true if failure to download this is not an error
 

Detailed Description

downloadable element

Member Data Documentation

◆ postAction

std::function< string () > cupt::download::Manager::DownloadEntity::postAction

post-download callback

Returned empty string means no errors. Returned non-empty string marks a download as failed and sets this string as download result.

◆ size

size_t cupt::download::Manager::DownloadEntity::size

file size, in bytes; set -1 if unknown


The documentation for this struct was generated from the following file: