| [20] | 1 | // |
|---|
| [92] | 2 | // SapphireImporterDataMenu.h |
|---|
| [20] | 3 | // Sapphire |
|---|
| 4 | // |
|---|
| 5 | // Created by pnmerrill on 6/24/07. |
|---|
| [201] | 6 | // Copyright 2007 www.nanopi.net. All rights reserved. |
|---|
| [20] | 7 | // |
|---|
| 8 | |
|---|
| [199] | 9 | @class SapphireMetaDataCollection, SapphireFileMetaData, SapphireImporterDataMenu; |
|---|
| [135] | 10 | @protocol SapphireMetaDataScannerDelegate; |
|---|
| [20] | 11 | |
|---|
| [190] | 12 | @protocol SapphireImporter <NSObject> |
|---|
| 13 | - (BOOL)importMetaData:(SapphireFileMetaData *)metaData; |
|---|
| 14 | - (void)setImporterDataMenu:(SapphireImporterDataMenu *)theDataMenu; |
|---|
| 15 | - (NSString *)completionText; |
|---|
| 16 | - (NSString *)initialText; |
|---|
| 17 | - (NSString *)informativeText; |
|---|
| 18 | - (NSString *)buttonTitle; |
|---|
| 19 | - (void) wasExhumedByPoppingController: (BRLayerController *) controller; |
|---|
| 20 | @end |
|---|
| 21 | |
|---|
| [135] | 22 | @interface SapphireImporterDataMenu : BRLayerController <SapphireMetaDataScannerDelegate> |
|---|
| [20] | 23 | { |
|---|
| [135] | 24 | BRHeaderControl *title; |
|---|
| [81] | 25 | BRButtonControl *button; |
|---|
| 26 | BRTextControl *text; |
|---|
| 27 | BRTextControl *fileProgress; |
|---|
| [91] | 28 | BRTextControl *currentFile; |
|---|
| [135] | 29 | BRProgressBarWidget *bar; |
|---|
| [20] | 30 | |
|---|
| [199] | 31 | SapphireMetaDataCollection *metaCollection; |
|---|
| 32 | NSArray *collectionDirectories; |
|---|
| 33 | int collectionIndex; |
|---|
| [81] | 34 | NSMutableArray *importItems; |
|---|
| [135] | 35 | NSTimer *importTimer; |
|---|
| [81] | 36 | float max; |
|---|
| 37 | float current; |
|---|
| 38 | float updated ; |
|---|
| [109] | 39 | BOOL suspended; |
|---|
| [135] | 40 | BOOL canceled; |
|---|
| [190] | 41 | |
|---|
| 42 | id <SapphireImporter> importer; |
|---|
| [20] | 43 | } |
|---|
| [199] | 44 | - (id) initWithScene: (BRRenderScene *) scene metaDataCollection:(SapphireMetaDataCollection *)collection importer:(id <SapphireImporter>)import; |
|---|
| [135] | 45 | - (void)getItems; |
|---|
| [20] | 46 | @end |
|---|
| [145] | 47 | |
|---|
| 48 | @interface SapphireImporterDataMenu (protectedAccess) |
|---|
| 49 | - (void)setText:(NSString *)theText; |
|---|
| 50 | - (void)setFileProgress:(NSString *)updateFileProgress; |
|---|
| 51 | - (void)resetUIElements; |
|---|
| 52 | - (void)importNextItem:(NSTimer *)timer; |
|---|
| 53 | - (void)setCurrentFile:(NSString *)theCurrentFile; |
|---|
| 54 | - (void)pause; |
|---|
| 55 | - (void)resume; |
|---|
| 56 | - (void)skipNextItem; |
|---|
| 57 | @end |
|---|