1 /***************************************************************************
2                           client_handlers.h  -  description
3                              -------------------
4     begin                : Sat Oct 26 12:02:57 CEST 2002
5     copyright            : (C) 2002 by Michael Speck
6     email                : kulkanie@gmx.net
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 
18 #ifndef __CLIENT_HANDLERS_H
19 #define __CLIENT_HANDLERS_H
20 
21 /*
22 ====================================================================
23 Disconnect from current server if any.
24 ====================================================================
25 */
26 void client_disconnect();
27 
28 /*
29 ====================================================================
30 Try to connect to a game server. Retry twice every three seconds
31 or quit then.
32 ====================================================================
33 */
34 void client_connect( GuiWidget *widget, GuiEvent *event );
35 
36 /*
37 ====================================================================
38 Open/close the connection window.
39 ====================================================================
40 */
41 void client_open_connect_window( GuiWidget *widget, GuiEvent *event );
42 void client_close_connect_window( GuiWidget *widget, GuiEvent *event );
43 
44 /*
45 ====================================================================
46 Close chatroom and return to LBreakout's menu.
47 ====================================================================
48 */
49 void client_quit( GuiWidget *widget, GuiEvent *event );
50 
51 /*
52 ====================================================================
53 Close the info window and clear state.
54 ====================================================================
55 */
56 void client_close_info( GuiWidget *widget, GuiEvent *event );
57 
58 /*
59 ====================================================================
60 Send chatter this function is either called by the send button
61 or by the edit.
62 ====================================================================
63 */
64 void client_send_chatter(
65     GuiWidget *widget, GuiEvent *event );
66 /*
67 ====================================================================
68 Whisper chatter if a user is selected.
69 ====================================================================
70 */
71 void client_whisper_chatter(
72     GuiWidget *widget, GuiEvent *event );
73 
74 /*
75 ====================================================================
76 Update selected peer and levelset.
77 ====================================================================
78 */
79 void client_handle_user_list(
80     GuiWidget *widget, GuiEvent *event );
81 void client_handle_levelset_list(
82     GuiWidget *widget, GuiEvent *event );
83 
84 /*
85 ====================================================================
86 Handle confirmation/cancelling of confirmation dialogue.
87 ====================================================================
88 */
89 void client_confirm( GuiWidget *widget, GuiEvent *event );
90 void client_cancel( GuiWidget *widget, GuiEvent *event );
91 
92 /*
93 ====================================================================
94 Challenge selected user.
95 ====================================================================
96 */
97 void client_challenge( GuiWidget *widget, GuiEvent *event );
98 
99 /*
100 ====================================================================
101 Update multiplayer network configuration.
102 ====================================================================
103 */
104 void client_update_difficulty( GuiWidget *widget, GuiEvent *event );
105 void client_update_rounds( GuiWidget *widget, GuiEvent *event );
106 void client_update_frags( GuiWidget *widget, GuiEvent *event );
107 void client_update_balls( GuiWidget *widget, GuiEvent *event );
108 void client_update_port( GuiWidget *widget, GuiEvent *event );
109 
110 /*
111 ====================================================================
112 Allow user to transfer a levelset.
113 ====================================================================
114 */
115 void client_listen( GuiWidget *widget, GuiEvent *event );
116 
117 /*
118 ====================================================================
119 Initiate levelset transfer.
120 ====================================================================
121 */
122 void client_transfer( GuiWidget *widget, GuiEvent *event );
123 
124 /*
125 ====================================================================
126 Open channel selector
127 ====================================================================
128 */
129 void client_select_channel( GuiWidget *widget, GuiEvent *event );
130 /*
131 ====================================================================
132 Handle channel (un)selection.
133 ====================================================================
134 */
135 void client_handle_channel_list(
136     GuiWidget *widget, GuiEvent *event );
137 /*
138 ====================================================================
139 Close channel selector or enter new channel.
140 ====================================================================
141 */
142 void client_enter_channel( GuiWidget *widget, GuiEvent *event );
143 void client_cancel_channel( GuiWidget *widget, GuiEvent *event );
144 
145 /*
146 ====================================================================
147 Close statistics
148 ====================================================================
149 */
150 void client_close_stats( GuiWidget *widget, GuiEvent *event );
151 
152 /*
153 ====================================================================
154 Send chatter to gamepeer in pauseroom when ENTER was pressed.
155 ====================================================================
156 */
157 void client_send_pausechatter( GuiWidget *widget, GuiEvent *event );
158 
159 /*
160 ====================================================================
161 Close pauseroom.
162 ====================================================================
163 */
164 void client_close_pauseroom( GuiWidget *widget, GuiEvent *event );
165 
166 /*
167 ====================================================================
168 Popup help dialogue.
169 ====================================================================
170 */
171 void client_popup_help( GuiWidget *widget, GuiEvent *event );
172 /*
173 ====================================================================
174 Close help dialogue.
175 ====================================================================
176 */
177 void client_close_help( GuiWidget *widget, GuiEvent *event );
178 /*
179 ====================================================================
180 Select topic and display help text.
181 ====================================================================
182 */
183 void client_handle_topic_list( GuiWidget *widget, GuiEvent *event );
184 
185 #endif
186 
187