5
// Created by Aaron Brethorst on 5/12/11.
6
// Copyright 2011 Canonical. All rights reserved.
9
#import <UIKit/UIKit.h>
10
#import "DownloadOperation.h"
14
@interface Downloader : NSObject <DownloadOperationDelegate>
16
NSOperationQueue *contentEnumerationQueue;
17
NSOperationQueue *queue;
18
NSMutableSet *downloads;
20
+ (Downloader*)sharedDownloader;
21
+ (NSString*)cacheSize;
23
- (void)enqueueArtist:(Artist*)anArtist;
24
- (void)enqueueAlbum:(Album*)anAlbum;
25
- (void)downloadFile:(NSURL*)url withName:(NSString*)fileName;
26
- (void)downloadFile:(NSURL*)url withName:(NSString*)fileName completionBlock:(void(^)(NSString *path))completionBlock;
27
- (BOOL)isDownloading:(NSString *)fileName;
29
extern NSString * const NOTIF_downloadComplete;