-
Notifications
You must be signed in to change notification settings - Fork 315
/
ConnectionWindowController.h
104 lines (99 loc) · 3.98 KB
/
ConnectionWindowController.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
//
// ConnectionWindowController.h
// MongoHub
//
// Created by Syd on 10-4-25.
// Copyright 2010 MusicPeace.ORG. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "Tunnel.h"
@class BWSheetController;
@class DatabasesArrayController;
@class StatMonitorTableController;
@class AddDBController;
@class AddCollectionController;
@class AuthWindowController;
@class ImportWindowController;
@class ExportWindowController;
@class ResultsOutlineViewController;
@class Connection;
@class Sidebar;
@class SidebarNode;
@class MongoDB;
@interface ConnectionWindowController : NSWindowController {
NSManagedObjectContext *managedObjectContext;
IBOutlet DatabasesArrayController *databaseArrayController;
IBOutlet ResultsOutlineViewController *resultsOutlineViewController;
Connection *conn;
MongoDB *mongoDB;
IBOutlet Sidebar *sidebar;
IBOutlet NSTextField *resultsTitle;
IBOutlet NSProgressIndicator *loaderIndicator;
IBOutlet NSButton *reconnectButton;
IBOutlet NSButton *monitorButton;
IBOutlet BWSheetController *monitorSheetController;
IBOutlet StatMonitorTableController *statMonitorTableController;
NSMutableArray *databases;
NSMutableArray *collections;
SidebarNode *selectedDB;
SidebarNode *selectedCollection;
Tunnel *sshTunnel;
AddDBController *addDBController;
AddCollectionController *addCollectionController;
AuthWindowController *authWindowController;
ImportWindowController *importWindowController;
ExportWindowController *exportWindowController;
IBOutlet NSTextField *bundleVersion;
BOOL exitThread;
BOOL monitorStopped;
}
@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain) DatabasesArrayController *databaseArrayController;
@property (nonatomic, retain) ResultsOutlineViewController *resultsOutlineViewController;
@property (nonatomic, retain) Connection *conn;
@property (nonatomic, retain) MongoDB *mongoDB;
@property (nonatomic, retain) Sidebar *sidebar;
@property (nonatomic, retain) NSMutableArray *databases;
@property (nonatomic, retain) NSMutableArray *collections;
@property (nonatomic, retain) SidebarNode *selectedDB;
@property (nonatomic, retain) SidebarNode *selectedCollection;
@property (nonatomic, retain) Tunnel *sshTunnel;
@property (nonatomic, retain) NSTextField *resultsTitle;
@property (nonatomic, retain) NSProgressIndicator *loaderIndicator;
@property (nonatomic, retain) NSButton *monitorButton;
@property (nonatomic, retain) NSButton *reconnectButton;
@property (nonatomic, retain) BWSheetController *monitorSheetController;
@property (nonatomic, retain) StatMonitorTableController *statMonitorTableController;
@property (nonatomic, retain) AddDBController *addDBController;
@property (nonatomic, retain) AddCollectionController *addCollectionController;
@property (nonatomic, retain) NSTextField *bundleVersion;
@property (nonatomic, retain) AuthWindowController *authWindowController;
@property (nonatomic, retain) ImportWindowController *importWindowController;
@property (nonatomic, retain) ExportWindowController *exportWindowController;
- (void)reloadSidebar;
- (void)reloadDBList;
- (void)useDB:(id)sender;
- (void)useCollection:(id)sender;
- (IBAction)reconnect:(id)sender;
- (IBAction)showServerStatus:(id)sender;
- (IBAction)showDBStats:(id)sender;
- (IBAction)showCollStats:(id)sender;
- (IBAction)createDBorCollection:(id)sender;
- (IBAction)importFromMySQL:(id)sender;
- (IBAction)exportToMySQL:(id)sender;
- (void)dropCollection:(NSString *)collectionname
ForDB:(NSString *)dbname;
- (void)createDB;
- (void)createCollectionForDB:(NSString *)dbname;
- (IBAction)dropDBorCollection:(id)sender;
- (void)dropDB;
- (IBAction)query:(id)sender;
- (IBAction)showAuth:(id)sender;
-(void) checkTunnel;
- (void) connect:(BOOL)haveHostAddress;
- (void) tunnelStatusChanged: (Tunnel*) tunnel status: (NSString*) status;
- (void)dropWarning:(NSString *)msg;
- (IBAction)startMonitor:(id)sender;
- (IBAction)stopMonitor:(id)sender;
- (void)updateMonitor;
@end