diff --git a/src/aria2api.cc b/src/aria2api.cc index 5ddb5b05..4dabd453 100644 --- a/src/aria2api.cc +++ b/src/aria2api.cc @@ -314,7 +314,7 @@ struct RequestGroupDH : public DownloadHandle { ts(group->calculateStat()) {} virtual ~RequestGroupDH() {} - virtual DOWNLOAD_STATUS getStatus() + virtual DownloadStatus getStatus() { if(group->getState() == RequestGroup::STATE_ACTIVE) { return DOWNLOAD_ACTIVE; @@ -402,7 +402,7 @@ struct DownloadResultDH : public DownloadHandle { : dr(dr) {} virtual ~DownloadResultDH() {} - virtual DOWNLOAD_STATUS getStatus() + virtual DownloadStatus getStatus() { switch(dr->result) { case error_code::FINISHED: diff --git a/src/includes/aria2/aria2.h b/src/includes/aria2/aria2.h index 16383047..55efc8f6 100644 --- a/src/includes/aria2/aria2.h +++ b/src/includes/aria2/aria2.h @@ -153,7 +153,7 @@ struct FileData { std::vector uris; }; -enum DOWNLOAD_STATUS { +enum DownloadStatus { DOWNLOAD_ACTIVE, DOWNLOAD_WAITING, DOWNLOAD_PAUSED, @@ -164,7 +164,7 @@ enum DOWNLOAD_STATUS { struct DownloadHandle { virtual ~DownloadHandle() {} - virtual DOWNLOAD_STATUS getStatus() = 0; + virtual DownloadStatus getStatus() = 0; virtual int64_t getTotalLength() = 0; virtual int64_t getCompletedLength() = 0; virtual int64_t getUploadLength() = 0;