forked from bububa/MongoHub-Mac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EditConnectionController.h
65 lines (59 loc) · 2.64 KB
/
EditConnectionController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//
// 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