#import #import @interface TunnelController : NSObject { /* Tunnels Menu Item. */ IBOutlet id mainMenuTunnelsItem, dockMenuTunnelsItem, statusbarMenuTunnelsItem; NSMutableArray *tunnels; BOOL allKeysOnAgent; /* Threaded notification support */ NSMutableArray *notificationQueue; NSThread *notificationThread; NSLock *notificationLock; NSMachPort *notificationPort; } + (TunnelController *)sharedController; - (void)sync; - (void)changeTunnel:(NSString *)uuid setName:(NSString *)newName; - (void)removeTunnelWithUUID:(NSString *)uuid; - (void)setToolTipForActiveTunnels; - (void)closeAllTunnels; - (void)launchAfterSleepTunnels; - (IBAction)toggleTunnel:(id)sender; - (void)openTunnelWithDict:(NSMutableDictionary *)dict; - (void)warningPanelWithTitle:(NSString *)title andMessage:(NSString *)message; - (void)handleMachMessage:(void *)msg; @end