summaryrefslogtreecommitdiff
path: root/src/de/podfetcher/storage/DownloadRequester.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/podfetcher/storage/DownloadRequester.java')
-rw-r--r--src/de/podfetcher/storage/DownloadRequester.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/de/podfetcher/storage/DownloadRequester.java b/src/de/podfetcher/storage/DownloadRequester.java
index f7ed29df2..d6dbdc4ca 100644
--- a/src/de/podfetcher/storage/DownloadRequester.java
+++ b/src/de/podfetcher/storage/DownloadRequester.java
@@ -193,6 +193,29 @@ public class DownloadRequester {
return URLUtil.guessFileName(media.getDownload_url(), null, media.getMime_type());
}
+ public boolean isDownloaded(Feed feed) {
+ return feed.getFile_url() != null && !feeds.contains(feed);
+ }
+
+ public boolean isDownloaded(FeedImage image) {
+ return image.getFile_url() != null && !images.contains(image);
+ }
+
+ public boolean isDownloaded(FeedMedia m) {
+ return m.getFile_url() != null && media.contains(m);
+ }
+
+ public boolean isDownloading(Feed feed) {
+ return feed.getFile_url() != null && feeds.contains(feed);
+ }
+
+ public boolean isDownloading(FeedImage image) {
+ return image.getFile_url() != null && images.contains(image);
+ }
+
+ public boolean isDownloading(FeedMedia m) {
+ return m.getFile_url() != null && media.contains(m);
+ }
/* ------------ Methods for communicating with the DownloadService ------------- */
private Messenger mService = null;