Changeset 1313
- Timestamp:
- 08/21/10 20:40:52 (21 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/SapphireFrappliance/FRAppliance/SapphireImportHelper.m
r1279 r1313 108 108 [serverobj setClient:(SapphireImportHelperClient *)shared]; 109 109 server = serverobj; 110 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(connectionDidDie:) name:NSConnectionDidDieNotification object:nil]; 110 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(connectionDidDie:) name:NSConnectionDidDieNotification object:nil]; 111 111 } 112 112 @catch (NSException * e) { 113 [SapphireApplianceController logException:e]; 113 114 keepRunning = NO; 114 115 } … … 305 306 - (void)importAllData:(SapphireFileMetaData *)file inform:(id <SapphireImporterBackgroundProtocol>)inform; 306 307 { 307 [informers setObject:inform forKey:[file path]]; 308 [allImporter importMetaData:file path:[file path]]; 308 NSString *path = [file path]; 309 [informers setObject:inform forKey:path]; 310 ImportState result = [allImporter importMetaData:file path:[file path]]; 311 switch (result) { 312 case ImportStateNotUpdated: 313 case ImportStateUpdated: 314 [inform informComplete:result == ImportStateUpdated onPath:path]; 315 [informers removeObjectForKey:path]; 316 break; 317 default: 318 break; 319 } 309 320 } 310 321
