summaryrefslogtreecommitdiff
path: root/src/de/podfetcher/service/DownloadStatus.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/podfetcher/service/DownloadStatus.java')
-rw-r--r--src/de/podfetcher/service/DownloadStatus.java48
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