- Timestamp:
- 02/24/10 14:49:10 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/PlayerFramework/SapphireFrappliance/main_debug.m
r1049 r1168 43 43 #import "SapphireMovieDirectory.h" 44 44 45 //#define TESTING_UPGRADE 46 //#define LISTING_MOVIES 47 //#define TESTING_XML_IMPORT 48 //#define TESTING_FILE_SCANNING 49 //#define TESTING_UPDATED_VALUES 50 //#define TESTING_DIRECTORY_RESCAN 51 //#define TESTING_AUTO_PRUNING 52 #define TESTING_MOVIE_IMPORT 53 //#define TESTING_TV_SHOW_IMPORT 54 //#define TESTING_MULTIPLE_AND_SINGLE_TV_SHOW_IMPORT 55 //#define TESTING_MOVIE_VIRTUAL_DIRS_IN_XML 56 //#define TESTING_TV_IMPORT_THROUGH_XML 57 45 58 void overrideApplicationSupportdir(NSString *override); 46 59 … … 151 164 - (BOOL)canDisplayChooser 152 165 { 153 return NO;166 return YES; 154 167 } 155 168 … … 161 174 - (void)displayChooser:(BRLayerController <SapphireChooser> *)chooser forImporter:(id <SapphireImporter>)importer withContext:(id)context 162 175 { 176 [chooser itemSelected:1]; 177 [importer exhumedChooser:chooser withContext:context]; 163 178 } 164 179 … … 181 196 182 197 // overrideApplicationSupportdir([NSHomeDirectory() stringByAppendingPathComponent:@"Documents/Frontrow"]); 183 //#define TESTING_UPGRADE184 198 #ifdef TESTING_UPGRADE 185 199 { … … 202 216 203 217 //Debug code goes here: 204 //#define LISTING_MOVIES205 218 #ifdef LISTING_MOVIES 206 219 { … … 218 231 } 219 232 #endif 220 //#define TESTING_XML_IMPORT221 233 #ifdef TESTING_XML_IMPORT 222 234 { … … 230 242 } 231 243 #endif 232 //#define TESTING_FILE_SCANNING233 244 #ifdef TESTING_FILE_SCANNING 234 245 { … … 246 257 } 247 258 #endif 248 //#define TESTING_UPDATED_VALUES249 259 #ifdef TESTING_UPDATED_VALUES 250 260 { … … 260 270 } 261 271 #endif 262 //#define TESTING_DIRECTORY_RESCAN263 272 #ifdef TESTING_DIRECTORY_RESCAN 264 273 { … … 271 280 } 272 281 #endif 273 //#define TESTING_AUTO_PRUNING274 282 #ifdef TESTING_AUTO_PRUNING 275 283 { … … 293 301 } 294 302 #endif 295 #define TESTING_MOVIE_IMPORT296 303 #ifdef TESTING_MOVIE_IMPORT 297 304 { 298 SapphireFileMetaData *file = [SapphireFileMetaData fileWithPath:@"/Users/gbooker/Movies/MovieTests/FIFTH_ELEMENT.mov" inContext:moc];305 SapphireFileMetaData *file = [SapphireFileMetaData createFileWithPath:@"/Users/gbooker/Movies/MovieTests/FIFTH_ELEMENT.mov" inContext:moc]; 299 306 SapphireMovieImporter *import = [[SapphireMovieImporter alloc] init]; 300 307 [file setToReimportFromMaskValue:IMPORT_TYPE_MOVIE_MASK]; 308 [file setToResetImportDecisions]; 301 309 [importManager importer:import importMetaData:file path:[file path]]; 302 310 [import release]; 303 311 } 304 312 #endif 305 //#define TESTING_TV_SHOW_IMPORT306 313 #ifdef TESTING_TV_SHOW_IMPORT 307 314 { 308 SapphireFileMetaData *file = [SapphireFileMetaData fileWithPath:@"/Users/gbooker/Movies/TVShowsTests/Doctor Who (2005) S03ES1 Voyage of the Damned.avi" inContext:moc];315 SapphireFileMetaData *file = [SapphireFileMetaData createFileWithPath:@"/Users/gbooker/Movies/TVShowsTests/Doctor Who (2005) S03ES1 Voyage of the Damned.avi" inContext:moc]; 309 316 SapphireTVShowImporter *import = [[SapphireTVShowImporter alloc] init]; 310 317 [file setToReimportFromMaskValue:IMPORT_TYPE_TVSHOW_MASK]; … … 313 320 } 314 321 #endif 315 //#define TESTING_MULTIPLE_AND_SINGLE_TV_SHOW_IMPORT316 322 #ifdef TESTING_MULTIPLE_AND_SINGLE_TV_SHOW_IMPORT 317 323 { … … 328 334 } 329 335 #endif 330 //#define TESTING_MOVIE_VIRTUAL_DIRS_IN_XML331 336 #ifdef TESTING_MOVIE_VIRTUAL_DIRS_IN_XML 332 337 { … … 337 342 } 338 343 #endif 339 //#define TESTING_TV_IMPORT_THROUGH_XML340 344 #ifdef TESTING_TV_IMPORT_THROUGH_XML 341 345 {
