/* */ #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; // This field contains GIDs. See comment in // RequestGroup.cc::_followedByGIDs. std::vector followedBy; // This field contains GID. See comment in // RequestGroup.cc::_belongsToGID. int32_t belongsTo; DownloadResult(int32_t gid, const std::vector >& fileEntries, bool inMemoryDownload, uint64_t sessionDownloadLength, int64_t sessionTime, downloadresultcode::RESULT result, const std::vector followedBy, int32_t belongsTo): gid(gid), fileEntries(fileEntries), inMemoryDownload(inMemoryDownload), sessionDownloadLength(sessionDownloadLength), sessionTime(sessionTime), result(result), followedBy(followedBy), belongsTo(belongsTo) {} }; typedef SharedHandle DownloadResultHandle; } // namespace aria2 #endif // _D_DOWNLOAD_RESULT_H_