diff options
author | drx777 <david.rekowski@gmx.de> | 2010-04-29 18:00:09 +0000 |
---|---|---|
committer | drx777 <david.rekowski@gmx.de> | 2010-04-29 18:00:09 +0000 |
commit | 47d42106c45d7663c05aaf6d3f0feab71798b51c (patch) | |
tree | 8d33140d9ed7713318bd4dcf1ec40c67fbceb385 /Source/SPDatabaseRename.h | |
parent | a980040e8546060e71166c363d2247407af12179 (diff) | |
download | sequelpro-47d42106c45d7663c05aaf6d3f0feab71798b51c.tar.gz sequelpro-47d42106c45d7663c05aaf6d3f0feab71798b51c.tar.bz2 sequelpro-47d42106c45d7663c05aaf6d3f0feab71798b51c.zip |
Added class SPDBActionCommons providing common functionality to all derived DatabaseActions classes, thus reducing code duplicates.
Diffstat (limited to 'Source/SPDatabaseRename.h')
-rw-r--r-- | Source/SPDatabaseRename.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/Source/SPDatabaseRename.h b/Source/SPDatabaseRename.h index 9085cc54..bd52a86f 100644 --- a/Source/SPDatabaseRename.h +++ b/Source/SPDatabaseRename.h @@ -23,37 +23,22 @@ // More info at <http://code.google.com/p/sequel-pro/> -#import <Foundation/Foundation.h> -#import <MCPKit/MCPConnection.h> +#import "SPDBActionCommons.h" #import "SPDatabaseInfo.h" -#import "SPStringAdditions.h" /** * The SPDatabaseRename class povides functionality to rename a database. */ -@interface SPDatabaseRename : NSObject { - MCPConnection *connection; +@interface SPDatabaseRename : SPDBActionCommons { SPDatabaseInfo *dbInfo; - NSObject *parent; } /** - * @property MCPConnection references the MCPKit connection to MySQL; it has to be set. - */ -@property (retain) MCPConnection *connection; - -/** * @property SPDatabaseInfo an instance of the database info class */ @property (retain) SPDatabaseInfo *dbInfo; /** - * @property the parent object that issues the action, needs to provide stuff like tableWindow for messages - */ -@property (retain) NSObject *parent; - - -/** * This method retrieves the dbInfo object if it exists; otherwise it is generated and the * connection is passed to it. * |