diff options
Diffstat (limited to 'Source/SPExportController.m')
-rw-r--r-- | Source/SPExportController.m | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m index 91a3a0b7..f365de75 100644 --- a/Source/SPExportController.m +++ b/Source/SPExportController.m @@ -195,6 +195,34 @@ } #pragma mark - +#pragma mark Exporter delegate methods + +/** + * Called when CSV data conversion process is complete and the data is available. + */ +- (void)csvDataAvailable:(NSString *)data +{ + +} + +/** + * Called when SQL data conversion process is complete and the data is available. + */ +- (void)sqlDataAvailable:(NSString *)data +{ + +} + +/** + * Called when XML data conversion process is complete and the data is available. + */ +- (void)xmlDataAvailable:(NSString *)data +{ + +} + + +#pragma mark - #pragma mark Other /** @@ -236,14 +264,6 @@ @implementation SPExportController (PrivateAPI) /** - * This method is called by SPCSVExporter objects once they have completed converting their data to CSV data. - */ -- (void)_csvDataAvialble:(NSString *)data -{ - -} - -/** * Loads all the available database tables in table view. */ - (void)_loadTables @@ -345,7 +365,7 @@ break; case SP_CSV_EXPORT: - csvExporter = [[SPCSVExporter alloc] init]; + csvExporter = [[SPCSVExporter alloc] initWithDelegate:self]; [csvExporter setCsvOutputFieldNames:[exportCSVIncludeFieldNamesCheck state]]; [csvExporter setCsvFieldSeparatorString:[exportCSVFieldsTerminatedField stringValue]]; @@ -372,10 +392,6 @@ break; } - // Set the exporter's delegate and didEndSelector - [exporter setDelegate:self]; - [exporter setDidEndSelector:@selector(_csvDataAvialble:)]; - switch (exportSource) { case SP_FILTERED_EXPORT: |