/* */ #ifndef _D_DOWNLOAD_RESULT_H_ #define _D_DOWNLOAD_RESULT_H_ #include "common.h" #include "SharedHandle.h" #include #include namespace aria2 { class DownloadResult { public: enum RESULT { FINISHED, NOT_YET, }; int32_t gid; std::string filePath; int64_t totalLength; std::string uri; int32_t numUri; RESULT result; DownloadResult(int32_t gid, const std::string& filePath, int64_t totalLength, const std::string& uri, int32_t numUri, RESULT result): gid(gid), filePath(filePath), totalLength(totalLength), uri(uri), numUri(numUri), result(result) {} }; typedef SharedHandle DownloadResultHandle; } // namespace aria2 #endif // _D_DOWNLOAD_RESULT_H_