3 |
// BathyScaphe |
// BathyScaphe |
4 |
// |
// |
5 |
// Created by Hori,Masaki on 06/08/06. |
// Created by Hori,Masaki on 06/08/06. |
6 |
// Copyright 2006-2009 BathyScaphe Project. All rights reserved. |
// Copyright 2006-2009,2012 BathyScaphe Project. All rights reserved. |
7 |
// encoding="UTF-8" |
// encoding="UTF-8" |
8 |
// |
// |
9 |
|
|
10 |
#import <Cocoa/Cocoa.h> |
#import <Cocoa/Cocoa.h> |
11 |
|
|
12 |
#import "CMRTask.h" |
#import "BSThreadListTask.h" |
|
#import "CMXWorkerContext.h" |
|
|
#import "CMRThreadLayoutTask.h" |
|
13 |
|
|
14 |
@interface BSDownloadTask : CMRThreadLayoutConcreateTask |
@interface BSDownloadTask : BSThreadListTask |
15 |
{ |
{ |
16 |
NSURL *m_targetURL; |
NSURL *m_targetURL; |
17 |
|
|
18 |
CGFloat m_contLength; |
CGFloat m_contLength; |
19 |
CGFloat m_currentLength; |
CGFloat m_currentLength; |
|
CGFloat m_taskAmount; |
|
20 |
|
|
21 |
NSMutableData *receivedData; |
NSMutableData *receivedData; |
22 |
NSURLConnection *con; |
NSURLConnection *con; |
25 |
NSString *method; |
NSString *method; |
26 |
BOOL m_contLengthIsUnknown; |
BOOL m_contLengthIsUnknown; |
27 |
} |
} |
28 |
|
@property (retain) NSURL *URL; |
29 |
|
@property (readonly, retain) NSData *receivedData; |
30 |
|
|
31 |
+ (id)taskWithURL:(NSURL *)url; |
+ (id)taskWithURL:(NSURL *)url; |
32 |
- (id)initWithURL:(NSURL *)url; |
- (id)initWithURL:(NSURL *)url; |
33 |
+ (id)taskWithURL:(NSURL *)url method:(NSString *)method; |
+ (id)taskWithURL:(NSURL *)url method:(NSString *)method; |
34 |
- (id)initWithURL:(NSURL *)url method:(NSString *)method; |
- (id)initWithURL:(NSURL *)url method:(NSString *)method; |
35 |
|
|
|
- (void)setURL:(NSURL *)url; |
|
36 |
- (NSData *)receivedData; |
- (NSData *)receivedData; |
37 |
- (id)response; |
- (id)response; |
38 |
|
|
39 |
|
- (void)synchronousDownLoad; |
40 |
@end |
@end |
41 |
|
|
42 |
|
|