Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 105 lines (99 sloc) 4.079 kb
d0577d5 @bububa first commit
authored
1 //
2 // ConnectionWindowController.h
3 // MongoHub
4 //
5 // Created by Syd on 10-4-25.
6 // Copyright 2010 MusicPeace.ORG. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
eeec665 @bububa fixed some UI bug, fixed an _id related bug
authored
10 #import "Tunnel.h"
f0632b4 @bububa Add mongo stat monitor
authored
11 @class BWSheetController;
d0577d5 @bububa first commit
authored
12 @class DatabasesArrayController;
f0632b4 @bububa Add mongo stat monitor
authored
13 @class StatMonitorTableController;
d0577d5 @bububa first commit
authored
14 @class AddDBController;
15 @class AddCollectionController;
29c952e @bububa add admin auth support
authored
16 @class AuthWindowController;
903c7a2 @bububa add importFromMySQL and exportToMySQL
authored
17 @class ImportWindowController;
18 @class ExportWindowController;
d0577d5 @bububa first commit
authored
19 @class ResultsOutlineViewController;
20 @class Connection;
21 @class Sidebar;
22 @class SidebarNode;
23 @class MongoDB;
24
25 @interface ConnectionWindowController : NSWindowController {
26 NSManagedObjectContext *managedObjectContext;
27 IBOutlet DatabasesArrayController *databaseArrayController;
28 IBOutlet ResultsOutlineViewController *resultsOutlineViewController;
29 Connection *conn;
30 MongoDB *mongoDB;
31 IBOutlet Sidebar *sidebar;
32 IBOutlet NSTextField *resultsTitle;
4475240 @bububa Fix a bug in SSH Tunnel stop
authored
33 IBOutlet NSProgressIndicator *loaderIndicator;
b6c1571 @bububa Add reconnect button
authored
34 IBOutlet NSButton *reconnectButton;
f0632b4 @bububa Add mongo stat monitor
authored
35 IBOutlet NSButton *monitorButton;
36 IBOutlet BWSheetController *monitorSheetController;
37 IBOutlet StatMonitorTableController *statMonitorTableController;
d0577d5 @bububa first commit
authored
38 NSMutableArray *databases;
39 NSMutableArray *collections;
40 SidebarNode *selectedDB;
41 SidebarNode *selectedCollection;
eeec665 @bububa fixed some UI bug, fixed an _id related bug
authored
42 Tunnel *sshTunnel;
d0577d5 @bububa first commit
authored
43 AddDBController *addDBController;
44 AddCollectionController *addCollectionController;
29c952e @bububa add admin auth support
authored
45 AuthWindowController *authWindowController;
903c7a2 @bububa add importFromMySQL and exportToMySQL
authored
46 ImportWindowController *importWindowController;
47 ExportWindowController *exportWindowController;
239249e @bububa use nsbundle version key
authored
48 IBOutlet NSTextField *bundleVersion;
7e12a09 @bububa ssh tunnel support, fixed a memory leak crash in ConnectionWindowCont…
authored
49 BOOL exitThread;
f0632b4 @bububa Add mongo stat monitor
authored
50 BOOL monitorStopped;
d0577d5 @bububa first commit
authored
51 }
52
53 @property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;
54 @property (nonatomic, retain) DatabasesArrayController *databaseArrayController;
55 @property (nonatomic, retain) ResultsOutlineViewController *resultsOutlineViewController;
56 @property (nonatomic, retain) Connection *conn;
57 @property (nonatomic, retain) MongoDB *mongoDB;
58 @property (nonatomic, retain) Sidebar *sidebar;
59 @property (nonatomic, retain) NSMutableArray *databases;
60 @property (nonatomic, retain) NSMutableArray *collections;
61 @property (nonatomic, retain) SidebarNode *selectedDB;
62 @property (nonatomic, retain) SidebarNode *selectedCollection;
eeec665 @bububa fixed some UI bug, fixed an _id related bug
authored
63 @property (nonatomic, retain) Tunnel *sshTunnel;
d0577d5 @bububa first commit
authored
64 @property (nonatomic, retain) NSTextField *resultsTitle;
4475240 @bububa Fix a bug in SSH Tunnel stop
authored
65 @property (nonatomic, retain) NSProgressIndicator *loaderIndicator;
f0632b4 @bububa Add mongo stat monitor
authored
66 @property (nonatomic, retain) NSButton *monitorButton;
b6c1571 @bububa Add reconnect button
authored
67 @property (nonatomic, retain) NSButton *reconnectButton;
f0632b4 @bububa Add mongo stat monitor
authored
68 @property (nonatomic, retain) BWSheetController *monitorSheetController;
69 @property (nonatomic, retain) StatMonitorTableController *statMonitorTableController;
d0577d5 @bububa first commit
authored
70 @property (nonatomic, retain) AddDBController *addDBController;
71 @property (nonatomic, retain) AddCollectionController *addCollectionController;
239249e @bububa use nsbundle version key
authored
72 @property (nonatomic, retain) NSTextField *bundleVersion;
29c952e @bububa add admin auth support
authored
73 @property (nonatomic, retain) AuthWindowController *authWindowController;
903c7a2 @bububa add importFromMySQL and exportToMySQL
authored
74 @property (nonatomic, retain) ImportWindowController *importWindowController;
75 @property (nonatomic, retain) ExportWindowController *exportWindowController;
d0577d5 @bububa first commit
authored
76
77 - (void)reloadSidebar;
78 - (void)reloadDBList;
79 - (void)useDB:(id)sender;
80 - (void)useCollection:(id)sender;
b6c1571 @bububa Add reconnect button
authored
81 - (IBAction)reconnect:(id)sender;
d0577d5 @bububa first commit
authored
82 - (IBAction)showServerStatus:(id)sender;
83 - (IBAction)showDBStats:(id)sender;
84 - (IBAction)showCollStats:(id)sender;
85 - (IBAction)createDBorCollection:(id)sender;
903c7a2 @bububa add importFromMySQL and exportToMySQL
authored
86 - (IBAction)importFromMySQL:(id)sender;
87 - (IBAction)exportToMySQL:(id)sender;
d0577d5 @bububa first commit
authored
88 - (void)dropCollection:(NSString *)collectionname
89 ForDB:(NSString *)dbname;
90 - (void)createDB;
91 - (void)createCollectionForDB:(NSString *)dbname;
92 - (IBAction)dropDBorCollection:(id)sender;
93 - (void)dropDB;
94 - (IBAction)query:(id)sender;
29c952e @bububa add admin auth support
authored
95 - (IBAction)showAuth:(id)sender;
7e12a09 @bububa ssh tunnel support, fixed a memory leak crash in ConnectionWindowCont…
authored
96 -(void) checkTunnel;
97 - (void) connect:(BOOL)haveHostAddress;
98 - (void) tunnelStatusChanged: (Tunnel*) tunnel status: (NSString*) status;
73cdd2c @bububa Add Confirm Sheet before drop DB or Collection
authored
99 - (void)dropWarning:(NSString *)msg;
f0632b4 @bububa Add mongo stat monitor
authored
100
101 - (IBAction)startMonitor:(id)sender;
102 - (IBAction)stopMonitor:(id)sender;
103 - (void)updateMonitor;
d0577d5 @bububa first commit
authored
104 @end
Something went wrong with that request. Please try again.