Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
NetClientDlg.h
Go to the documentation of this file.
1 /* Project Starshatter 4.5
2  Destroyer Studios LLC
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: Stars.exe
6  FILE: NetClientDlg.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Main Menu Dialog Active Window class
13 */
14 
15 #ifndef NetClientDlg_h
16 #define NetClientDlg_h
17 
18 #include "Types.h"
19 #include "NetClientConfig.h"
20 #include "NetLobby.h"
21 
22 #include "FormWindow.h"
23 #include "Bitmap.h"
24 #include "Button.h"
25 #include "ComboBox.h"
26 #include "ListBox.h"
27 #include "Font.h"
28 
29 // +--------------------------------------------------------------------+
30 
31 class MenuScreen;
32 
33 // +--------------------------------------------------------------------+
34 
35 class NetClientDlg : public FormWindow
36 {
37 public:
38  NetClientDlg(Screen* s, FormDef& def, MenuScreen* mgr);
39  virtual ~NetClientDlg();
40 
41  virtual void RegisterControls();
42  virtual void Show();
43  virtual void ExecFrame();
44 
45  // Operations:
46  virtual void OnSelect(AWEvent* event);
47  virtual void OnAdd(AWEvent* event);
48  virtual void OnDel(AWEvent* event);
49  virtual void OnServer(AWEvent* event);
50  virtual void OnHost(AWEvent* event);
51  virtual void OnJoin(AWEvent* event);
52  virtual void OnCancel(AWEvent* event);
53 
54  virtual void ShowServers();
55  virtual void UpdateServers();
56  virtual void PingServer(int n);
57  virtual bool PingComplete();
58  virtual void StopNetProc();
59 
60 protected:
63 
70  HANDLE hnet;
72 
77 };
78 
79 #endif NetClientDlg_h
80