Desenvolver e Download de Software Open Source

Browse Subversion Repository

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

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

revision 684 by tsawada2, Sun Feb 11 17:13:48 2007 UTC revision 753 by tsawada2, Fri Apr 13 15:29:14 2007 UTC
# Line 13  NSString *BSDownloadTaskReceiveResponceN Line 13  NSString *BSDownloadTaskReceiveResponceN
13  NSString *BSDownloadTaskCanceledNotification = @"BSDownloadTaskCanceledNotification";  NSString *BSDownloadTaskCanceledNotification = @"BSDownloadTaskCanceledNotification";
14  NSString *BSDownloadTaskInternalErrorNotification = @"BSDownloadTaskInternalErrorNotification";  NSString *BSDownloadTaskInternalErrorNotification = @"BSDownloadTaskInternalErrorNotification";
15  NSString *BSDownloadTaskAbortDownloadNotification = @"BSDownloadTaskAbortDownloadNotification";  NSString *BSDownloadTaskAbortDownloadNotification = @"BSDownloadTaskAbortDownloadNotification";
16  NSString        *BSDownloadTaskServerResponseKey = @"BSDownloadTaskServerResponseKey"; // NSURLResponse  NSString *BSDownloadTaskServerResponseKey = @"BSDownloadTaskServerResponseKey"; // NSURLResponse
17  NSString        *BSDownloadTaskStatusCodeKey = @"BSDownloadTaskStatusCodeKey"; // NSNumber (int)  NSString *BSDownloadTaskStatusCodeKey = @"BSDownloadTaskStatusCodeKey"; // NSNumber (int)
18  NSString *BSDownloadTaskFailDownloadNotification = @"BSDownloadTaskFailDownloadNotification";  NSString *BSDownloadTaskFailDownloadNotification = @"BSDownloadTaskFailDownloadNotification";
19    
20    
# Line 121  NSString *BSDownloadTaskFailDownloadNoti Line 121  NSString *BSDownloadTaskFailDownloadNoti
121                  [self postNotificationWithName:BSDownloadTaskInternalErrorNotification];                  [self postNotificationWithName:BSDownloadTaskInternalErrorNotification];
122                  return;                  return;
123          }          }
124          [request setValue:[NSBundle monazillaUserAgent]//@"Monazilla/1.0 (Starlight Breaker/1.5 SBx)"          [request setValue:[NSBundle monazillaUserAgent] forHTTPHeaderField:@"User-Agent"];
    forHTTPHeaderField:@"User-Agent"];  
125          if(method) {          if(method) {
126                  [request setHTTPMethod : method];                  [request setHTTPMethod : method];
127          }          }
# Line 169  NSString *BSDownloadTaskFailDownloadNoti Line 168  NSString *BSDownloadTaskFailDownloadNoti
168  }  }
169  - (NSString *)title  - (NSString *)title
170  {  {
171          return NSLocalizedString(@"Download.", @"Download.");          return NSLocalizedStringFromTable(@"Download.", @"Downloader", @"");
172  }  }
173  - (NSString *) messageInProgress  - (NSString *) messageInProgress
174  {  {
175          return [NSString stringWithFormat:NSLocalizedString(@"Download url(%@) (%.1fk)", "Download url(%@) (%.1fk)"),          return [NSString stringWithFormat:NSLocalizedStringFromTable(@"Download url(%@) (%.1fk)", @"Downloader", @""),
176                  [self url], [self currentLength] / 1024.0];                  [self url], [self currentLength] / 1024.0];
177  }  }
178  - (double) amount  - (double) amount

Legend:
Removed from v.684  
changed lines
  Added in v.753

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