forked from bububa/MongoHub-Mac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AddConnectionController.h
60 lines (55 loc) · 2.45 KB
/
AddConnectionController.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
//
// AddConnectionController.h
// MongoHub
//
// Created by Syd on 10-4-24.
// Copyright 2010 MusicPeace.ORG. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class ConnectionsArrayController;
@interface AddConnectionController : 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 ConnectionsArrayController *connectionsArrayController;
NSDictionary *connectionInfo;
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) NSDictionary *connectionInfo;
@property (nonatomic, retain) ConnectionsArrayController *connectionsArrayController;
@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;
- (IBAction)cancel:(id)sender;
- (IBAction)add:(id)sender;
- (IBAction)enableSSH:(id)sender;
- (IBAction)enableRepl:(id)sender;
- (BOOL)validateConnection;
@end