|
1 | 1 | //
|
2 |
| -// SPConnectionHandler.h |
| 2 | +// SPConnectionController.h |
3 | 3 | // sequel-pro
|
4 | 4 | //
|
5 | 5 | // Created by Stuart Connolly (stuconnolly.com) on November 15, 2010.
|
|
30 | 30 |
|
31 | 31 | #import "SPConnectionControllerDelegateProtocol.h"
|
32 | 32 | #import "SPFavoritesExportProtocol.h"
|
| 33 | +#import "SPFavoritesImportProtocol.h" |
33 | 34 |
|
34 | 35 | #import <SPMySQL/SPMySQL.h>
|
35 | 36 |
|
|
48 | 49 | #endif
|
49 | 50 | ;
|
50 | 51 |
|
51 |
| -@interface SPConnectionController : NSViewController <SPMySQLConnectionDelegate, NSOpenSavePanelDelegate, SPFavoritesExportProtocol, NSSplitViewDelegate> |
| 52 | +@interface SPConnectionController : NSViewController <SPMySQLConnectionDelegate, NSOpenSavePanelDelegate, SPFavoritesImportProtocol, SPFavoritesExportProtocol, NSSplitViewDelegate> |
52 | 53 | {
|
53 | 54 | id <SPConnectionControllerDelegateProtocol, NSObject> delegate;
|
54 | 55 |
|
|
266 | 267 | - (SPFavoritesOutlineView *)favoritesOutlineView;
|
267 | 268 |
|
268 | 269 | #endif
|
| 270 | + |
| 271 | +#pragma mark - SPConnectionHandler |
| 272 | + |
| 273 | +- (void)initiateMySQLConnection; |
| 274 | +- (void)initiateMySQLConnectionInBackground; |
| 275 | +- (void)initiateSSHTunnelConnection; |
| 276 | + |
| 277 | +- (void)mySQLConnectionEstablished; |
| 278 | +- (void)sshTunnelCallback:(SPSSHTunnel *)theTunnel; |
| 279 | + |
| 280 | +- (void)addConnectionToDocument; |
| 281 | + |
| 282 | +- (void)failConnectionWithTitle:(NSString *)theTitle errorMessage:(NSString *)theErrorMessage detail:(NSString *)errorDetail rawErrorText:(NSString *)rawErrorText; |
| 283 | + |
| 284 | +#pragma mark - SPConnectionControllerInitializer |
| 285 | + |
| 286 | +- (id)initWithDocument:(SPDatabaseDocument *)document; |
| 287 | + |
| 288 | +- (void)loadNib; |
| 289 | +- (void)registerForNotifications; |
| 290 | +- (void)setUpFavoritesOutlineView; |
| 291 | +- (void)setUpSelectedConnectionFavorite; |
| 292 | + |
269 | 293 | @end
|
0 commit comments