aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableStructure.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-10-28 20:18:32 +0000
committerstuconnolly <stuart02@gmail.com>2010-10-28 20:18:32 +0000
commit886ee90ca1047fdef2c6bfd52ea28ffc0345aca4 (patch)
tree2dd9c8b694fe395c159e57f5c1b1338629bcb866 /Source/SPTableStructure.h
parentf48b5ba6410a5d449fad026e870e2c3e5e0fcf53 (diff)
downloadsequelpro-886ee90ca1047fdef2c6bfd52ea28ffc0345aca4.tar.gz
sequelpro-886ee90ca1047fdef2c6bfd52ea28ffc0345aca4.tar.bz2
sequelpro-886ee90ca1047fdef2c6bfd52ea28ffc0345aca4.zip
Tidy up SPTableStructure including moving all the private field type validation methods to their own class, SPTableFieldValidation.
Diffstat (limited to 'Source/SPTableStructure.h')
-rw-r--r--Source/SPTableStructure.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/SPTableStructure.h b/Source/SPTableStructure.h
index 68225fab..1ae392f4 100644
--- a/Source/SPTableStructure.h
+++ b/Source/SPTableStructure.h
@@ -25,6 +25,8 @@
#import <MCPKit/MCPKit.h>
+@class SPTableFieldValidation;
+
@interface SPTableStructure : NSObject
{
IBOutlet id tablesListInstance;
@@ -60,6 +62,8 @@
MCPConnection *mySQLConnection;
MCPResult *tableSourceResult;
MCPResult *indexResult;
+
+ SPTableFieldValidation *fieldValidation;
NSString *selectedTable;
NSMutableArray *tableFields;
@@ -100,7 +104,7 @@
- (BOOL)addRowToDB;
- (void)setAutoIncrementTo:(NSString*)valueAsString;
-// Getter methods
+// Accessors
- (NSString *)defaultValueForField:(NSString *)field;
- (NSArray *)fieldNames;
- (NSDictionary *)enumFields;