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