From 6269e47fcf89cf3fb6d01184064dface1d163c05 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 7 Oct 2009 00:11:40 +0000 Subject: 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. --- Source/SPExporterDataAccess.h | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'Source/SPExporterDataAccess.h') 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 -@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 -- cgit v1.2.3