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>
13 #import "NetTrafficControlling.h"
15 #include "cheat_globals.h"
18 @interface NetTrafficController
: NSWindowController
22 IBOutlet id netTrafficWindow
;
23 IBOutlet id broadcastNameText
;
24 IBOutlet id listenPortText
;
25 IBOutlet id serverListTable
;
26 IBOutlet id connectionCountText
;
27 IBOutlet id killConnectionButton
;
30 - (id
)initWithDelegate
:(id
)del
;
32 - (void)initialInterfaceSetup
;
33 - (void)interfaceUpdate
;
35 - (void)allowRemoteChanged
:(BOOL
)allow
;
36 - (void)listenPortChanged
:(int)port
;
37 - (void)broadcastNameChanged
:(NSString
*)name
;
39 - (void)connectionListChanged
;
41 - (void)setConnectionCount
:(int)count
;
43 - (IBAction
)killConnectionButton
:(id
)sender
;