wxwidgets: Hide dumper called "NULL"
[lsnes.git] / include / core / filedownload.hpp
blobeb7fe99d7ff987f55164037b460ec9c902109e81
1 #ifndef _filedownload__hpp__included__
2 #define _filedownload__hpp__included__
4 #include "library/threads.hpp"
5 #include "library/httpreq.hpp"
6 #include "library/urirewrite.hpp"
7 #include <string>
8 #include <list>
9 #include <vector>
11 class loaded_rom;
13 struct file_download
15 //Variables.
16 std::string url;
17 std::string target_slot;
18 //Ctor
19 file_download();
20 ~file_download();
21 //Lauch.
22 void do_async(loaded_rom& rom);
23 void cancel();
24 //Status.
25 volatile bool finished; //This signals download finishing, call finish().
26 std::string errormsg;
27 http_async_request req;
28 std::string statusmsg();
29 threads::cv cond;
30 threads::lock m;
31 //Internal.
32 void _do_async(loaded_rom& rom);
33 std::string tempname;
34 std::string tempname2;
37 extern urirewrite::rewriter lsnes_uri_rewrite;
39 #endif