aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseInfo.h
diff options
context:
space:
mode:
authordrx777 <david.rekowski@gmx.de>2010-04-29 18:00:09 +0000
committerdrx777 <david.rekowski@gmx.de>2010-04-29 18:00:09 +0000
commit47d42106c45d7663c05aaf6d3f0feab71798b51c (patch)
tree8d33140d9ed7713318bd4dcf1ec40c67fbceb385 /Source/SPDatabaseInfo.h
parenta980040e8546060e71166c363d2247407af12179 (diff)
downloadsequelpro-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/SPDatabaseInfo.h')
-rw-r--r--Source/SPDatabaseInfo.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/Source/SPDatabaseInfo.h b/Source/SPDatabaseInfo.h
index 45583e5c..3f68b773 100644
--- a/Source/SPDatabaseInfo.h
+++ b/Source/SPDatabaseInfo.h
@@ -22,29 +22,15 @@
//
// More info at <http://code.google.com/p/sequel-pro/>
-#import <Foundation/Foundation.h>
-#import "MCPConnection.h"
-#import "MCPResult.h"
+#import "SPDBActionCommons.h"
/*
* The SPDatabaseInfo class provides means of retrieving a list of database names
*/
-@interface SPDatabaseInfo : NSObject {
- MCPConnection *connection;
- NSObject *parent;
+@interface SPDatabaseInfo : SPDBActionCommons {
}
/**
- * @property MCPConnection references the MCPKit connection to MySQL; it has to be set.
- */
-@property (retain) MCPConnection *connection;
-
-/**
- * @property the parent object that issues the action, needs to provide stuff like tableWindow for messages
- */
-@property (retain) NSObject *parent;
-
-/**
* This method checks, whether a database exists.
*
* @param databaseName the name of the database to check