| 1 | /* |
|---|
| 2 | * SapphireMultipleImporter.h |
|---|
| 3 | * Sapphire |
|---|
| 4 | * |
|---|
| 5 | * Created by Graham Booker on Aug. 29, 2007. |
|---|
| 6 | * Copyright 2007 Sapphire Development Team and/or www.nanopi.net |
|---|
| 7 | * All rights reserved. |
|---|
| 8 | * |
|---|
| 9 | * This program is free software; you can redistribute it and/or modify it under the terms of the GNU |
|---|
| 10 | * General Public License as published by the Free Software Foundation; either version 3 of the License, |
|---|
| 11 | * or (at your option) any later version. |
|---|
| 12 | * |
|---|
| 13 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
|---|
| 14 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
|---|
| 15 | * Public License for more details. |
|---|
| 16 | * |
|---|
| 17 | * You should have received a copy of the GNU General Public License along with this program; if not, |
|---|
| 18 | * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | #import "SapphireImporterDataMenu.h" |
|---|
| 22 | |
|---|
| 23 | /*! |
|---|
| 24 | * @brief An importer that contains multiple importers |
|---|
| 25 | * |
|---|
| 26 | * This class implements SapphireImporter to provide a proxy to multiple importers. This is the mechanism by which the "Import All Data" works. |
|---|
| 27 | */ |
|---|
| 28 | @interface SapphireMultipleImporter : NSObject <SapphireImporter>{ |
|---|
| 29 | NSArray *importers; /*!< @brief The list of importers to use, in order*/ |
|---|
| 30 | int importIndex; /*!< @brief The index of the next importer to run*/ |
|---|
| 31 | ImportState resumedState; /*!< @brief The state to use when we finally resume */ |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | /*! |
|---|
| 35 | * @brief Creates a new importer set |
|---|
| 36 | * |
|---|
| 37 | * @param importerList The list of importers to use |
|---|
| 38 | * @return The importer if successful, nil otherwise |
|---|
| 39 | */ |
|---|
| 40 | - (id)initWithImporters:(NSArray *)importerList; |
|---|
| 41 | |
|---|
| 42 | @end |
|---|