15 #include <curl/curl.h>
16 #include <sigc++/signal.h>
18 #include <libwfut/types.h>
46 assert(m_initialised ==
false);
72 int downloadFile(
const std::string &filename,
const std::string &url, uLong expected_crc32);
82 int downloadFile(FILE *fp,
const std::string &url, uLong expected_crc32);
93 int queueFile(
const std::string &path,
const std::string &filename,
const std::string &url, uLong expected_crc32,
bool executable);
103 sigc::signal<void, const std::string&, const std::string&, const std::string&>
DownloadFailed;
132 std::map<std::string, DataStruct*> m_files;
133 std::deque<CURL*> m_handles;
134 int m_num_to_process;