public
Description: Varies useful libs, classes, and methods for iPhone development
Homepage: http://www.stepcase.com
Clone URL: git://github.com/leonho/iphone-libs.git
iphone-libs / MultipleDownload.h
100644 39 lines (29 sloc) 0.856 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// MultipleDownload.h
//
// Copyright 2008 Stepcase Limited.
//
 
#import <UIKit/UIKit.h>
 
 
@interface MultipleDownload : NSObject {
NSMutableArray *urls;
NSMutableDictionary *requests;
NSMutableArray *receivedDatas;
NSInteger finishCount;
id delegate;
}
 
@property (nonatomic,retain) NSMutableArray *urls;
@property (nonatomic,retain) NSMutableDictionary *requests;
@property (nonatomic,retain) NSMutableArray *receivedDatas;
@property NSInteger finishCount;
@property (retain) id delegate;
 
- (id)initWithUrls:(NSArray *)aUrls;
- (void)requestWithUrls:(NSArray *)aUrls;
- (NSData *)dataAtIndex:(NSInteger)idx;
- (NSString *)dataAsStringAtIndex:(NSInteger)idx;
- (void)setDelegate:(id)val;
- (id)delegate;
 
@end
 
@interface NSObject (MultipleDownloadDelegateMethods)
 
- (void)didFinishDownload:(NSNumber*)idx;
- (void)didFinishAllDownload;
 
@end