Changeset 1187
- Timestamp:
- 02/26/2010 07:40:44 AM (2 years ago)
- Location:
- trunk/CommonMediaPlayer/Update Classes
- Files:
-
- 4 modified
-
CMPDownloadController.h (modified) (3 diffs)
-
CMPDownloadController.m (modified) (2 diffs)
-
CMPInstaller.h (modified) (2 diffs)
-
CMPInstaller.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CommonMediaPlayer/Update Classes/CMPDownloadController.h
r1184 r1187 66 66 67 67 68 @interface CMPDownloadController : NSObject <CMPInstaller>68 @interface CMPDownloadController : NSObject 69 69 { 70 70 int padding[16]; … … 95 95 - (void) deleteDownload; 96 96 97 // stack callbacks98 - (void) wasPushed;99 - (void) willBePopped;100 97 - (BOOL) isNetworkDependent; 101 98 … … 110 107 - (void) storeResumeData; 111 108 112 // NSURLDownload delegate methods113 - (void) download: (NSURLDownload *) download114 decideDestinationWithSuggestedFilename: (NSString *) filename;115 - (void) download: (NSURLDownload *) download didFailWithError: (NSError *) error;116 - (void) download: (NSURLDownload *) download didReceiveDataOfLength: (unsigned) length;117 - (void) download: (NSURLDownload *) download didReceiveResponse: (NSURLResponse *) response;118 - (BOOL) download: (NSURLDownload *) download119 shouldDecodeSourceDataOfMIMEType: (NSString *) encodingType;120 - (void) download: (NSURLDownload *) download121 willResumeWithResponse: (NSURLResponse *) response122 fromByte: (long long) startingByte;123 - (void) downloadDidFinish: (NSURLDownload *) download;124 125 109 - (void)popTop; 126 110 - (void)installUpdate:(NSString *)outputPath; -
trunk/CommonMediaPlayer/Update Classes/CMPDownloadController.m
r1184 r1187 29 29 #define myDomain (CFStringRef)@"??" 30 30 31 @interface CMPDownloadController () 32 + (NSString *)atvVersion; 33 @end 34 35 @interface BRThemeInfo (SpecialAdditions) 36 - (id)CMPParagraphTextAttributes; 37 @end 38 31 39 static NSString * const kDefaultURLString = @"nada"; 32 40 … … 474 482 } 475 483 476 - (void)installer:( id <CMPInstaller>)installer didEndWithSettings:(NSDictionary *)settings484 - (void)installer:(CMPInstaller *)installer didEndWithSettings:(NSDictionary *)settings 477 485 { 478 486 [installer autorelease]; -
trunk/CommonMediaPlayer/Update Classes/CMPInstaller.h
r1184 r1187 24 24 #import "CMPDefines.h" 25 25 26 @interface CMPInstaller : NSObject <CMPInstaller> { 27 26 @protocol CMPInstallerDelegate; 27 28 @interface CMPInstaller : NSObject{ 28 29 NSString *_zipFile; 29 30 id <CMPInstallerDelegate> delegate; 30 31 32 31 } 33 32 … … 39 38 - (BOOL)unzipFile:(NSString *)theFile toPath:(NSString *)newPath; 40 39 @end 40 41 @protocol CMPInstallerDelegate <NSObject> 42 - (void)installer:(CMPInstaller *)installer didEndWithSettings:(NSDictionary *)settings; 43 @end -
trunk/CommonMediaPlayer/Update Classes/CMPInstaller.m
r1184 r1187 47 47 //NSLog(@"%@ %s", self, _cmd); 48 48 49 [[ BRAppManager sharedApplication] terminate];49 [[NSApplication sharedApplication] terminate:nil]; 50 50 AGProcess *finder = [AGProcess processForCommand:@"Finder"]; 51 51 if (finder != nil)
