mirror of
https://github.com/aria2/aria2.git
synced 2025-01-08 11:01:38 +00:00
Rename DOWNLOAD_STATUS as DownloadStatus
This commit is contained in:
parent
2109ba23a8
commit
4c50544f1a
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user