root/trunk/TunnelController.h

Revision 29, 0.9 kB (checked in by kevin, 4 years ago)

Tunnels now identify themselves with UUIDs rather than names
When iterating over lists of tunnels and such, use NSEnumerator rather than a for loop (unless we want to modify the array during the loop)
Fix a few code style things I ran across
Fix a preferences size issue I ran into where the first pref view (i.e. General) was being resized incorrectly (because blankView was being created *after* switching to General initially)
Remove an unnecessary -arrayWithArray: call; just retain the original object instead
Fix a dealloc issue - in dealloc, call -release for ivars, not -dealloc

Line 
1 #import <Foundation/Foundation.h>
2 #import <Security/Security.h>
3
4 @interface TunnelController : NSObject {
5        
6         /* Tunnels Menu Item. */
7         IBOutlet id mainMenuTunnelsItem, dockMenuTunnelsItem, statusbarMenuTunnelsItem;
8        
9         NSMutableArray *tunnels;
10        
11         BOOL allKeysOnAgent;
12
13         /* Threaded notification support */
14         NSMutableArray *notificationQueue;
15         NSThread *notificationThread;
16         NSLock *notificationLock;
17         NSMachPort *notificationPort;
18 }
19
20 + (TunnelController *)sharedController;
21
22 - (void)sync;
23 - (void)changeTunnel:(NSString *)uuid setName:(NSString *)newName;
24 - (void)removeTunnelWithUUID:(NSString *)uuid;
25
26 - (void)setToolTipForActiveTunnels;
27
28 - (void)closeAllTunnels;
29 - (void)launchAfterSleepTunnels;
30
31 - (IBAction)toggleTunnel:(id)sender;
32
33 - (void)openTunnelWithDict:(NSMutableDictionary *)dict;
34
35 - (void)warningPanelWithTitle:(NSString *)title andMessage:(NSString *)message;
36
37 - (void)handleMachMessage:(void *)msg;
38
39 @end
Note: See TracBrowser for help on using the browser.