~urbanape/ubuntuone-ios-client/2.0-13-prerelease

« back to all changes in this revision

Viewing changes to musicstreaming/utilities/operations/Downloader.h

  • Committer: Jason Foreman
  • Date: 2011-06-16 18:33:42 UTC
  • mfrom: (191.1.60 master)
  • Revision ID: jason.foreman@canonical.com-20110616183342-vl7a4804xsf0s1b5
Merging branches for v 2.0.

lp:~threeve/ubuntuone-ios-client/master
lp:~urbanape/ubuntuone-ios-client/downloader

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
//  Downloader.h
 
3
//  iSub
 
4
//
 
5
//  Created by Aaron Brethorst on 5/12/11.
 
6
//  Copyright 2011 Canonical. All rights reserved.
 
7
//
 
8
 
 
9
#import <UIKit/UIKit.h>
 
10
#import "DownloadOperation.h"
 
11
 
 
12
@class Artist, Album;
 
13
 
 
14
@interface Downloader : NSObject <DownloadOperationDelegate>
 
15
{
 
16
        NSOperationQueue *contentEnumerationQueue;
 
17
        NSOperationQueue *queue;
 
18
        NSMutableSet *downloads;
 
19
}
 
20
+ (Downloader*)sharedDownloader;
 
21
+ (NSString*)cacheSize;
 
22
 
 
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;
 
28
 
 
29
extern NSString * const NOTIF_downloadComplete;
 
30
@end