mirror of https://github.com/aria2/aria2
Rename DOWNLOAD_STATUS as DownloadStatus
parent
2109ba23a8
commit
4c50544f1a
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue