Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (59 sloc) 2.64 KB
//
// EditConnectionController.h
// MongoHub
//
// Created by Syd on 10-4-25.
// Copyright 2010 MusicPeace.ORG. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class ConnectionsArrayController;
@class Connection;
@interface EditConnectionController : NSWindowController {
IBOutlet NSTextField *hostTextField;
IBOutlet NSTextField *hostportTextField;
IBOutlet NSButton *usereplCheckBox;
IBOutlet NSTextField *serversTextField;
IBOutlet NSTextField *replnameTextField;
IBOutlet NSTextField *aliasTextField;
IBOutlet NSTextField *adminuserTextField;
IBOutlet NSSecureTextField *adminpassTextField;
IBOutlet NSTextField *defaultdbTextField;
IBOutlet NSButton *usesshCheckBox;
IBOutlet NSTextField *bindaddressTextField;
IBOutlet NSTextField *bindportTextField;
IBOutlet NSTextField *sshhostTextField;
IBOutlet NSTextField *sshportTextField;
IBOutlet NSTextField *sshuserTextField;
IBOutlet NSSecureTextField *sshpasswordTextField;
IBOutlet NSTextField *sshkeyfileTextField;
IBOutlet ConnectionsArrayController *connectionsArrayController;
Connection *connection;
NSManagedObjectContext *managedObjectContext;
}
@property (nonatomic, retain) NSTextField *hostTextField;
@property (nonatomic, retain) NSTextField *hostportTextField;
@property (nonatomic, retain) NSButton *usereplCheckBox;
@property (nonatomic, retain) NSTextField *serversTextField;
@property (nonatomic, retain) NSTextField *replnameTextField;
@property (nonatomic, retain) NSTextField *aliasTextField;
@property (nonatomic, retain) NSTextField *adminuserTextField;
@property (nonatomic, retain) NSSecureTextField *adminpassTextField;
@property (nonatomic, retain) NSTextField *defaultdbTextField;
@property (nonatomic, retain) NSButton *usesshCheckBox;
@property (nonatomic, retain) NSTextField *bindaddressTextField;
@property (nonatomic, retain) NSTextField *bindportTextField;
@property (nonatomic, retain) NSTextField *sshhostTextField;
@property (nonatomic, retain) NSTextField *sshportTextField;
@property (nonatomic, retain) NSTextField *sshuserTextField;
@property (nonatomic, retain) NSSecureTextField *sshpasswordTextField;
@property (nonatomic, retain) NSTextField *sshkeyfileTextField;
@property (nonatomic, retain) Connection *connection;
@property (nonatomic, retain) ConnectionsArrayController *connectionsArrayController;
@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;
- (IBAction)cancel:(id)sender;
- (IBAction)save:(id)sender;
- (IBAction)enableSSH:(id)sender;
- (IBAction)enableRepl:(id)sender;
- (BOOL)validateConnection:(NSDictionary *)connectionInfo;
- (IBAction)chooseKeyPath:(id)sender;
@end