aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExporter.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-09-16 14:04:33 +0000
committerstuconnolly <stuart02@gmail.com>2009-09-16 14:04:33 +0000
commit61541a2b48b7f475394e7301794bca514f43ddf1 (patch)
treea6eb748eb23c15bac8df359c610ca087273f0102 /Source/SPExporter.m
parenta4cbc850448f901a5320b9b9cfac2f8d28bafa2f (diff)
downloadsequelpro-61541a2b48b7f475394e7301794bca514f43ddf1.tar.gz
sequelpro-61541a2b48b7f475394e7301794bca514f43ddf1.tar.bz2
sequelpro-61541a2b48b7f475394e7301794bca514f43ddf1.zip
Some more data exporter redesign changes I've been meaning to commit.
Diffstat (limited to 'Source/SPExporter.m')
-rw-r--r--Source/SPExporter.m30
1 files changed, 29 insertions, 1 deletions
diff --git a/Source/SPExporter.m b/Source/SPExporter.m
index f8f2cba0..9cc681d8 100644
--- a/Source/SPExporter.m
+++ b/Source/SPExporter.m
@@ -28,6 +28,34 @@
@implementation SPExporter
@synthesize delegate;
-@synthesize progressValue;
+@synthesize exportProgressValue;
+@synthesize exportProcessIsRunning;
+@synthesize exportProcessShouldExit;
+@synthesize exportOutputEncoding;
+
+/**
+ * Initialize an instance of the exporter setting some default values
+ */
+- (id)init
+{
+ if ((self == [super init])) {
+ [self setExportProgressValue:0];
+ [self setExportProcessIsRunning:NO];
+ [self setExportProcessShouldExit:NO];
+
+ // Default the output encoding to UTF-8
+ [self setExportOutputEncoding:NSUTF8StringEncoding];
+ }
+
+ return self;
+}
+
+/**
+ *
+ */
+- (void)main
+{
+ @throw [NSException exceptionWithName:@"NSOperation main() call" reason:@"Can't call NSOperation's main() method in SPExpoter, must be overriden in subclass." userInfo:nil];
+}
@end