forked from reuben/coccinellida
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TunnelController.h
99 lines (74 loc) · 2.67 KB
/
TunnelController.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
//
// TunnelController.h
// Coccinellida
//
// Licensed under GPL v3 Terms
//
// Created by Dmitry Geurkov on 6/8/10.
// Copyright 2010-2011. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "Tunnel.h"
@interface TunnelController : NSObject <NSUserNotificationCenterDelegate> {
IBOutlet NSWindow* prefWindow;
IBOutlet NSWindow* tunnelWindow;
IBOutlet NSWindow* passwordWindow;
IBOutlet NSTabView* tabView;
IBOutlet NSButton* soundEffectsButton;
IBOutlet NSButton* notificationsButton;
IBOutlet NSTextField* nameTextField;
IBOutlet NSButton* autostartCheckBox;
IBOutlet NSTextField* hostTextField;
IBOutlet NSTextField* portTextField;
IBOutlet NSTextField* userTextField;
IBOutlet NSSecureTextField* passwordTextField;
IBOutlet NSTextField* identityTextField;
IBOutlet NSTextField* socksHostTextField;
IBOutlet NSTextField* socksPortTextField;
IBOutlet NSTextField* connectionTimeoutTextField;
IBOutlet NSTextField* aliveIntervalTextField;
IBOutlet NSTextField* aliveCountMaxTextField;
IBOutlet NSButton* tcpKeepAliveCheckBox;
IBOutlet NSButton* compressionCheckBox;
IBOutlet NSTextView* additionalArgsTextField;
IBOutlet NSTextView* sshCommandTextField;
IBOutlet NSTableView* portForwardingList;
IBOutlet NSButton* addPortForwardingButton;
IBOutlet NSButton* removePortForwardingButton;
IBOutlet NSSecureTextField* passwordChangeTextField;
NSMutableArray* tunnels;
Tunnel* passwordChangeTunnel;
BOOL passwordChanged;
Tunnel* selectedTunnel;
uint selectedTunnelIndex;
BOOL exitThread;
NSMutableArray* portForwardings;
NSSound* onSound;
NSSound* offSound;
IBOutlet NSMenu* statusMenu;
IBOutlet NSTableView* tunnelsList;
IBOutlet NSButton* addTunnelButton;
IBOutlet NSButton* editTunnelButton;
IBOutlet NSButton* deleteTunnelButton;
}
-(void) checkTunnels;
-(void) tunnelStatusChanged: (Tunnel*) tunnel status: (NSString*) status;
- (IBAction) chooseIdentityFile: (id) sender;
- (IBAction) changePassword: (id) sender;
- (IBAction) cancelPasswordChange: (id) sender;
- (IBAction) saveEditDialog: (id) sender;
- (IBAction) closeEditDialog: (id) sender;
- (IBAction) buttonAddTunnel: (id) sender;
- (IBAction) buttonEditTunnel: (id) sender;
- (IBAction) buttonDeleteTunnel: (id) sender;
- (IBAction) addPortForwardDialog: (id) sender;
- (IBAction) removePortForwardDialog: (id) sender;
-(void) addTunnel: (Tunnel*) tunnel;
-(void) editTunnel: (int) indexToEdit;
-(void) saveTunnelsData;
-(void) deleteTunnel: (int) indexToRemove;
-(void) rebuildMenuList;
-(IBAction) startStopTunnel: (id) sender;
- (IBAction) prepareSSHCommand: (id) sender;
- (void) notificationActionText: (NSString*) actionText notificationTitle: (NSString*) title;
@end