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/SPDatabaseCopy.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/SPDatabaseCopy.h')
-rw-r--r-- | Source/SPDatabaseCopy.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/Source/SPDatabaseCopy.h b/Source/SPDatabaseCopy.h index 48219298..3776d5a1 100644 --- a/Source/SPDatabaseCopy.h +++ b/Source/SPDatabaseCopy.h @@ -23,36 +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" /** * The SPDatabaseCopy class povides functionality to create a copy of a database. */ -@interface SPDatabaseCopy : NSObject { - MCPConnection *connection; +@interface SPDatabaseCopy : 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. * |