Skip to content
Newer
Older
100644 39 lines (22 sloc) 1.04 KB
552634c @mtabini - Demo committed
mtabini authored Sep 30, 2010
1 //
2 // AFKDownloadManager.h
3 // Funnies for iPad
4 //
5 // Created by Marco Tabini on 10-08-16.
6 // Copyright 2010 AFK Studio. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10
11 #define kAFKDownloadManagerActivityStarted @"kAFKDownloadManagerActivityStarted"
12 #define kAFKDownloadManagerActivityEnded @"kAFKDownloadManagerActivityEnded"
13
14
15 @class AFKDownloadWorker;
16
17 @interface AFKDownloadManager : NSObject {
18
19 NSMutableArray *queue;
20
21 NSMutableArray *liveWorkers;
22
23 int maximumWorkers;
24
25 }
26
27
28 @property (nonatomic,assign) int maximumWorkers;
29
30
31 + (AFKDownloadManager *) defaultManager;
32 + (void) queueDownloadFromURL:(NSURL *) url withHTTPParameters:(NSDictionary *) parameters target:(id) target selector:(SEL) selector atTopOfQueue:(BOOL) atTopOfQueue;
06dfd42 @mtabini - Added support for query parameters
mtabini authored Oct 6, 2010
33 + (void) queueDownloadFromURL:(NSURL *) url method:(NSString *) method queryParameters:(NSDictionary *) queryParameters HTTPParameters:(NSDictionary *) HTTPParameters target:(id) target selector:(SEL) selector atTopOfQueue:(BOOL) atTopOfQueue;
552634c @mtabini - Demo committed
mtabini authored Oct 1, 2010
34
35 - (void) workerIsDone:(AFKDownloadWorker *) worker;
36
37
38 @end
Something went wrong with that request. Please try again.