Rename DOWNLOAD_STATUS as DownloadStatus

libaria2
Tatsuhiro Tsujikawa 2013-05-01 13:39:54 +09:00
parent 2109ba23a8
commit 4c50544f1a
2 changed files with 4 additions and 4 deletions

View File

@ -314,7 +314,7 @@ struct RequestGroupDH : public DownloadHandle {
ts(group->calculateStat()) ts(group->calculateStat())
{} {}
virtual ~RequestGroupDH() {} virtual ~RequestGroupDH() {}
virtual DOWNLOAD_STATUS getStatus() virtual DownloadStatus getStatus()
{ {
if(group->getState() == RequestGroup::STATE_ACTIVE) { if(group->getState() == RequestGroup::STATE_ACTIVE) {
return DOWNLOAD_ACTIVE; return DOWNLOAD_ACTIVE;
@ -402,7 +402,7 @@ struct DownloadResultDH : public DownloadHandle {
: dr(dr) : dr(dr)
{} {}
virtual ~DownloadResultDH() {} virtual ~DownloadResultDH() {}
virtual DOWNLOAD_STATUS getStatus() virtual DownloadStatus getStatus()
{ {
switch(dr->result) { switch(dr->result) {
case error_code::FINISHED: case error_code::FINISHED:

View File

@ -153,7 +153,7 @@ struct FileData {
std::vector<UriData> uris; std::vector<UriData> uris;
}; };
enum DOWNLOAD_STATUS { enum DownloadStatus {
DOWNLOAD_ACTIVE, DOWNLOAD_ACTIVE,
DOWNLOAD_WAITING, DOWNLOAD_WAITING,
DOWNLOAD_PAUSED, DOWNLOAD_PAUSED,
@ -164,7 +164,7 @@ enum DOWNLOAD_STATUS {
struct DownloadHandle { struct DownloadHandle {
virtual ~DownloadHandle() {} virtual ~DownloadHandle() {}
virtual DOWNLOAD_STATUS getStatus() = 0; virtual DownloadStatus getStatus() = 0;
virtual int64_t getTotalLength() = 0; virtual int64_t getTotalLength() = 0;
virtual int64_t getCompletedLength() = 0; virtual int64_t getCompletedLength() = 0;
virtual int64_t getUploadLength() = 0; virtual int64_t getUploadLength() = 0;