21 #ifndef H_KARAZEH_DOWNLOADER_H 22 #define H_KARAZEH_DOWNLOADER_H 24 #include <curl/curl.h> 25 #include <boost/filesystem.hpp> 26 #include "binreloc/binreloc.h" 27 #include "karazeh_export.h" 43 int retry_count()
const;
44 void set_retry_count(
int);
56 bool fetch(
string_t const& URI, std::ostream& out_file)
const;
67 path_t const& path_to_file,
70 int*
const nr_retries = NULL
std::ostream & stream
Definition: downloader.hpp:98
boost::filesystem::path path_t
Definition: karazeh.hpp:57
string_t uri
Definition: downloader.hpp:95
download_t(std::ostream &s)
Definition: downloader.hpp:85
std::string string_t
Definition: karazeh.hpp:55
Definition: config.hpp:32
int retry_no
Definition: downloader.hpp:100
string_t * buf
Definition: downloader.hpp:94
Definition: downloader.hpp:37
bool to_file
Definition: downloader.hpp:97
kzh::downloader const * downloader
Definition: config.hpp:37
unsigned long uint64_t
Definition: karazeh.hpp:56
Definition: logger.hpp:35
Definition: config.hpp:27
Definition: downloader.hpp:83
bool status
Definition: downloader.hpp:96
Definition: file_manager.hpp:33
uint64_t size
Definition: downloader.hpp:99