| [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 | |
|---|
| [258] | 9 | #import "SapphireMetaData.h" |
|---|
| [263] | 10 | #import "SapphireLayerController.h" |
|---|
| 11 | |
|---|
| [258] | 12 | @class SapphireImporterDataMenu; |
|---|
| [20] | 13 | |
|---|
| [190] | 14 | @protocol SapphireImporter <NSObject> |
|---|
| 15 | - (BOOL)importMetaData:(SapphireFileMetaData *)metaData; |
|---|
| 16 | - (void)setImporterDataMenu:(SapphireImporterDataMenu *)theDataMenu; |
|---|
| 17 | - (NSString *)completionText; |
|---|
| 18 | - (NSString *)initialText; |
|---|
| 19 | - (NSString *)informativeText; |
|---|
| 20 | - (NSString *)buttonTitle; |
|---|
| 21 | - (void) wasExhumedByPoppingController: (BRLayerController *) controller; |
|---|
| 22 | @end |
|---|
| 23 | |
|---|
| [263] | 24 | @interface SapphireImporterDataMenu : SapphireLayerController <SapphireMetaDataScannerDelegate> |
|---|
| [20] | 25 | { |
|---|
| [135] | 26 | BRHeaderControl *title; |
|---|
| [81] | 27 | BRButtonControl *button; |
|---|
| 28 | BRTextControl *text; |
|---|
| 29 | BRTextControl *fileProgress; |
|---|
| [91] | 30 | BRTextControl *currentFile; |
|---|
| [135] | 31 | BRProgressBarWidget *bar; |
|---|
| [20] | 32 | |
|---|
| [199] | 33 | SapphireMetaDataCollection *metaCollection; |
|---|
| [212] | 34 | NSMutableArray *collectionDirectories; |
|---|
| [199] | 35 | int collectionIndex; |
|---|
| [81] | 36 | NSMutableArray *importItems; |
|---|
| [135] | 37 | NSTimer *importTimer; |
|---|
| [81] | 38 | float max; |
|---|
| 39 | float current; |
|---|
| 40 | float updated ; |
|---|
| [109] | 41 | BOOL suspended; |
|---|
| [135] | 42 | BOOL canceled; |
|---|
| [190] | 43 | |
|---|
| 44 | id <SapphireImporter> importer; |
|---|
| [20] | 45 | } |
|---|
| [199] | 46 | - (id) initWithScene: (BRRenderScene *) scene metaDataCollection:(SapphireMetaDataCollection *)collection importer:(id <SapphireImporter>)import; |
|---|
| [135] | 47 | - (void)getItems; |
|---|
| [20] | 48 | @end |
|---|
| [145] | 49 | |
|---|
| 50 | @interface SapphireImporterDataMenu (protectedAccess) |
|---|
| 51 | - (void)setText:(NSString *)theText; |
|---|
| 52 | - (void)setFileProgress:(NSString *)updateFileProgress; |
|---|
| 53 | - (void)resetUIElements; |
|---|
| 54 | - (void)importNextItem:(NSTimer *)timer; |
|---|
| 55 | - (void)setCurrentFile:(NSString *)theCurrentFile; |
|---|
| 56 | - (void)pause; |
|---|
| 57 | - (void)resume; |
|---|
| 58 | - (void)skipNextItem; |
|---|
| 59 | @end |
|---|