1 #ifndef __PROGRESS_H
2 #define __PROGRESS_H
3 
4 /*
5 	progress.h
6 
7 	Copyright (C) 1991-2001 and beyond by Bungie Studios, Inc.
8 	and the "Aleph One" developers.
9 
10 	This program is free software; you can redistribute it and/or modify
11 	it under the terms of the GNU General Public License as published by
12 	the Free Software Foundation; either version 3 of the License, or
13 	(at your option) any later version.
14 
15 	This program is distributed in the hope that it will be useful,
16 	but WITHOUT ANY WARRANTY; without even the implied warranty of
17 	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 	GNU General Public License for more details.
19 
20 	This license is contained in the file "COPYING",
21 	which is included with this source code; it is available online at
22 	http://www.gnu.org/licenses/gpl.html
23 
24 	Saturday, October 28, 1995 10:58:57 PM- rdm created.
25 
26 */
27 
28 #include <stddef.h>
29 
30 enum {
31 	strPROGRESS_MESSAGES= 143,
32 	_distribute_map_single= 0,
33 	_distribute_map_multiple,
34 	_receiving_map,
35 	_awaiting_map,
36 	_distribute_physics_single,
37 	_distribute_physics_multiple,
38 	_receiving_physics,
39 	// non-network ones
40 	_loading,
41 	// more network ones
42 	_opening_router_ports,
43 	_closing_router_ports,
44 	_checking_for_updates
45 };
46 
47 void open_progress_dialog(size_t message_id, bool show_progress_bar = false);
48 void close_progress_dialog(void);
49 
50 void set_progress_dialog_message(size_t message_id);
51 
52 void draw_progress_bar(size_t sent, size_t total);
53 
54 void reset_progress_bar(void);
55 
56 #endif
57 
58