diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-05-01 13:39:54 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-05-01 13:39:54 +0900 |
| commit | 4c50544f1aff35ffbe467e6aaf74c9f57ec73a57 (patch) | |
| tree | d851a7a3db13f9a2bc9c1fc408f10d71b1624cdc | |
| parent | 2109ba23a88b0c656cc69aa2edb15909b8b96df3 (diff) | |
Rename DOWNLOAD_STATUS as DownloadStatus
| -rw-r--r-- | src/aria2api.cc | 4 | ||||
| -rw-r--r-- | src/includes/aria2/aria2.h | 4 |
2 files changed, 4 insertions, 4 deletions
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<UriData> 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; |
