aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExporterDataAccess.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-10-07 00:11:40 +0000
committerstuconnolly <stuart02@gmail.com>2009-10-07 00:11:40 +0000
commit6269e47fcf89cf3fb6d01184064dface1d163c05 (patch)
tree0f1ad826305fc2328fa49f0e5b34a17c52d883d3 /Source/SPExporterDataAccess.h
parent5ec0349424ff8299a25bbf5a538865e752cd9215 (diff)
downloadsequelpro-6269e47fcf89cf3fb6d01184064dface1d163c05.tar.gz
sequelpro-6269e47fcf89cf3fb6d01184064dface1d163c05.tar.bz2
sequelpro-6269e47fcf89cf3fb6d01184064dface1d163c05.zip
More export redesign work. Note that the current implementation has a major flaw in that exporter instances (NSOperation subclasses) are not reusable and so we have to create a new instance for every 'chunk' of data we want to process.
Diffstat (limited to 'Source/SPExporterDataAccess.h')
-rw-r--r--Source/SPExporterDataAccess.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/Source/SPExporterDataAccess.h b/Source/SPExporterDataAccess.h
index 1444313d..ab44cd39 100644
--- a/Source/SPExporterDataAccess.h
+++ b/Source/SPExporterDataAccess.h
@@ -25,21 +25,14 @@
#import <Cocoa/Cocoa.h>
-@protocol SPExporterDataAccess
-
-/**
- * Called when CSV data conversion process is complete and the data is available.
- */
-- (void)csvDataAvailable:(NSString *)data;
+@class SPExporter;
-/**
- * Called when SQL data conversion process is complete and the data is available.
- */
-- (void)sqlDataAvailable:(NSString *)data;
+@protocol SPExporterDataAccess
/**
- * Called when XML data conversion process is complete and the data is available.
+ * This method called when an expoter complete it's data conversion process and the operation is effectively
+ * complete. The resulting data can be accessed via SPExporter's exportData method.
*/
-- (void)xmlDataAvailable:(NSString *)data;
+- (void)exporterDataConversionProcessComplete:(SPExporter *)exporter;
@end