Desenvolver e Download de Software Open Source

Browse Subversion Repository

Diff of /bathyscaphe/trunk/application/source/browser/BSDownloadTask.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1421 by masakih, Mon Mar 8 12:31:12 2010 UTC revision 1422 by masakih, Tue May 1 13:07:47 2012 UTC
# Line 3  Line 3 
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;
# Line 28  Line 25 
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    

Legend:
Removed from v.1421  
changed lines
  Added in v.1422

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26