diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-06-17 16:47:26 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-06-17 16:47:26 +0200 |
commit | c41a61752f89a3430548b271b6c463decffe5815 (patch) | |
tree | 4f850572586d7f4fb55d04d31978fe9d1e8a5634 /src/de/podfetcher/service/DownloadStatus.java | |
parent | 51a5902fd95bf86ee57c47547920df62ba9dbf42 (diff) | |
download | AntennaPod-c41a61752f89a3430548b271b6c463decffe5815.zip |
Moved DownloadStatus class into separate file
Diffstat (limited to 'src/de/podfetcher/service/DownloadStatus.java')
-rw-r--r-- | src/de/podfetcher/service/DownloadStatus.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/de/podfetcher/service/DownloadStatus.java b/src/de/podfetcher/service/DownloadStatus.java new file mode 100644 index 000000000..3c9f3c9de --- /dev/null +++ b/src/de/podfetcher/service/DownloadStatus.java @@ -0,0 +1,48 @@ +package de.podfetcher.service; + +import de.podfetcher.feed.FeedFile; + +/** Contains status attributes for one download*/ +public class DownloadStatus { + + protected FeedFile feedfile; + protected int progressPercent; + protected long soFar; + protected long size; + protected int statusMsg; + protected int reason; + protected boolean successful; + protected boolean done; + + public DownloadStatus(FeedFile feedfile) { + this.feedfile = feedfile; + } + + public FeedFile getFeedFile() { + return feedfile; + } + + public int getProgressPercent() { + return progressPercent; + } + + public long getSoFar() { + return soFar; + } + + public long getSize() { + return size; + } + + public int getStatusMsg() { + return statusMsg; + } + + public int getReason() { + return reason; + } + + public boolean isSuccessful() { + return successful; + } +}
\ No newline at end of file |