aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-10-29 14:33:32 +0000
committerstuconnolly <stuart02@gmail.com>2010-10-29 14:33:32 +0000
commit8c27fbba193596ae2123bb8fc30e6d7041f44a83 (patch)
tree35cb7e9729c1aa7814108eecfa8d3086b112fb80 /Source/SPConnectionController.h
parent497a0c7c9d30fe60763f54982b96b2cec8fa649a (diff)
downloadsequelpro-8c27fbba193596ae2123bb8fc30e6d7041f44a83.tar.gz
sequelpro-8c27fbba193596ae2123bb8fc30e6d7041f44a83.tar.bz2
sequelpro-8c27fbba193596ae2123bb8fc30e6d7041f44a83.zip
Move SPConnectionController's delegate methods to their own protocol.
Diffstat (limited to 'Source/SPConnectionController.h')
-rw-r--r--Source/SPConnectionController.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/Source/SPConnectionController.h b/Source/SPConnectionController.h
index 28f6f1bd..3dd0563e 100644
--- a/Source/SPConnectionController.h
+++ b/Source/SPConnectionController.h
@@ -25,11 +25,9 @@
#import <MCPKit/MCPKit.h>
-#import "SPDatabaseDocument.h"
-#import "SPKeychain.h"
-#import "SPSSHTunnel.h"
+#import "SPConnectionControllerDelegate.h"
-@class BWAnchoredButtonBar;
+@class SPDatabaseDocument, SPKeychain, SPSSHTunnel, BWAnchoredButtonBar;
@interface NSObject (BWAnchoredButtonBar)
@@ -37,13 +35,6 @@
@end
-@interface NSObject (SPConnectionControllerDelegate)
-
-- (void)connectionControllerInitiatingConnection:(id)controller;
-- (void)connectionControllerConnectAttemptFailed:(id)controller;
-
-@end
-
@interface SPFlippedView : NSView
- (BOOL)isFlipped;
@@ -52,7 +43,7 @@
@interface SPConnectionController : NSObject
{
- id delegate;
+ id <SPConnectionControllerDelegate> delegate;
SPDatabaseDocument *tableDocument;
NSView *databaseConnectionSuperview;
@@ -144,7 +135,7 @@
SPFavoritesSortItem previousSortItem, currentSortItem;
}
-@property (readwrite, assign) id delegate;
+@property (readwrite, assign) id <SPConnectionControllerDelegate> delegate;
@property (readwrite, assign) NSInteger type;
@property (readwrite, retain) NSString *name;
@property (readwrite, retain) NSString *host;