/* */ #ifndef D_DOWNLOAD_HELPER_H #define D_DOWNLOAD_HELPER_H #include "common.h" #include #include #include #include "SharedHandle.h" namespace aria2 { class RequestGroup; class Option; class MetadataInfo; class DownloadContext; class UriListParser; #ifdef ENABLE_BITTORRENT // Create RequestGroup object using torrent file specified by // torrent-file option. If non-empty torrentData is specified, then // it is used as a content of torrent file instead. If // adjustAnnounceUri is true, announce URIs are adjusted using // bittorrent::adjustAnnounceUri(). In this function, // force-sequential is ignored. void createRequestGroupForBitTorrent (std::vector >& result, const SharedHandle