2 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 // File: NetTrafficController.h
6 // Created: Wed Sep 24 2003
8 // Copyright: 2003 Chaz McGarvey. All rights reserved.
9 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11 #import <Cocoa/Cocoa.h>
14 #import "NetTrafficControlling.h"
16 #include "cheat_globals.h"
19 @interface NetTrafficController
: NSWindowController
23 IBOutlet id netTrafficWindow
;
24 IBOutlet id broadcastNameText
;
25 IBOutlet id listenPortText
;
26 IBOutlet id serverListTable
;
27 IBOutlet id connectionCountText
;
28 IBOutlet id killConnectionButton
;
31 - (id
)initWithDelegate
:(id
)del
;
33 - (void)initialInterfaceSetup
;
34 - (void)interfaceUpdate
;
36 - (void)serverSetAllowRemote
:(BOOL
)allow listenPort
:(int)port broadcastName
:(NSString
*)name
;
39 - (void)allowRemoteChanged:(BOOL)allow;
40 - (void)listenPortChanged:(int)port;
41 - (void)broadcastNameChanged:(NSString *)name;
44 - (void)connectionListChanged
;
46 - (void)setConnectionCount
:(int)count
;
48 - (IBAction
)killConnectionButton
:(id
)sender
;