1 /* This file is part of pr-downloader (GPL v2 or later), see the LICENSE file */
2 
3 #ifndef _DOWNLOAD_DATA_H
4 #define _DOWNLOAD_DATA_H
5 
6 #include <string>
7 #include <vector>
8 class CFile;
9 class Mirror;
10 class IDownload;
11 typedef void CURL;
12 
13 class DownloadData
14 {
15 public:
16 	DownloadData();
17 	~DownloadData();
18 	int start_piece;
19 	std::vector<unsigned int> pieces;
20 	CURL* easy_handle; //curl_easy_handle
21 	Mirror* mirror; //mirror used
22 	IDownload *download;
23 	bool got_ranges; //true if headers received from server are fine
24 };
25 
26 #endif
27