/* */ #ifndef _D_DOWNLOAD_RESULT_H_ #define _D_DOWNLOAD_RESULT_H_ #include "common.h" #include #include #include #include "SharedHandle.h" #include "DownloadResultCode.h" namespace aria2 { class FileEntry; class DownloadResult { public: int32_t gid; std::vector > fileEntries; bool inMemoryDownload; uint64_t sessionDownloadLength; // milliseconds int64_t sessionTime; downloadresultcode::RESULT result; DownloadResult(int32_t gid, const std::vector >& fileEntries, bool inMemoryDownload, uint64_t sessionDownloadLength, int64_t sessionTime, downloadresultcode::RESULT result): gid(gid), fileEntries(fileEntries), inMemoryDownload(inMemoryDownload), sessionDownloadLength(sessionDownloadLength), sessionTime(sessionTime), result(result) {} }; typedef SharedHandle DownloadResultHandle; } // namespace aria2 #endif // _D_DOWNLOAD_RESULT_H_