![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <page_network.h>
Inheritance diagram for page_network:
Collaboration diagram for page_network:Public Member Functions | |
| page_network (QWidget *, fc_client *) | |
| ~page_network () override | |
| void | update_network_page () |
| void | update_network_lists () |
| Stop and restart the metaserver and lan server scans. More... | |
| void | set_connection_state (enum connection_state state) |
| Update network page connection state. More... | |
| void | destroy_server_scans () |
| Free the server scans. More... | |
| void | handle_authentication_req (enum authentication_type type, const char *message) |
| Configure the dialog depending on what type of authentication request the server is making. More... | |
Private Slots | |
| void | slot_meta_scan () |
| Executes metaserver scan network. More... | |
| void | slot_connect () |
| If on the network page, switch page to the login page (with new server and port). More... | |
| void | slot_lan_scan () |
| Executes lan scan network. More... | |
| void | slot_selection_changed (const QItemSelection &, const QItemSelection &) |
Private Member Functions | |
| void | update_server_list (enum server_scan_type sstype, const struct server_list *list) |
| Updates list of servers in network page in proper QTableViews. More... | |
| bool | check_server_scan (server_scan *scan_data) |
| This function updates the list of servers every so often. More... | |
Private Attributes | |
| fc_client * | king |
| QTimer * | meta_scan_timer |
| QTimer * | lan_scan_timer |
| Ui::FormPageNetwork | ui |
Definition at line 24 of file page_network.h.
| page_network::page_network | ( | QWidget * | parent, |
| fc_client * | gui | ||
| ) |
Definition at line 29 of file page_network.cpp.
|
overridedefault |
|
private |
This function updates the list of servers every so often.
Definition at line 346 of file page_network.cpp.
Referenced by slot_lan_scan(), and slot_meta_scan().
| void page_network::destroy_server_scans | ( | ) |
Free the server scans.
Definition at line 286 of file page_network.cpp.
Referenced by handle_authentication_req(), and update_network_lists().
| void page_network::handle_authentication_req | ( | enum authentication_type | type, |
| const char * | message | ||
| ) |
Configure the dialog depending on what type of authentication request the server is making.
Definition at line 398 of file page_network.cpp.
| void page_network::set_connection_state | ( | enum connection_state | state | ) |
Update network page connection state.
Definition at line 137 of file page_network.cpp.
Referenced by handle_authentication_req(), and slot_connect().
|
privateslot |
If on the network page, switch page to the login page (with new server and port).
if on the login page, send connect and/or authentication requests to the server.
Definition at line 439 of file page_network.cpp.
Referenced by page_network().
|
privateslot |
Executes lan scan network.
Definition at line 376 of file page_network.cpp.
Referenced by update_network_lists().
|
privateslot |
Executes metaserver scan network.
Definition at line 387 of file page_network.cpp.
Referenced by update_network_lists().
|
privateslot |
Definition at line 488 of file page_network.cpp.
Referenced by page_network().
| void page_network::update_network_lists | ( | ) |
Stop and restart the metaserver and lan server scans.
Definition at line 318 of file page_network.cpp.
Referenced by page_network().
| void page_network::update_network_page | ( | ) |
|
private |
Updates list of servers in network page in proper QTableViews.
Definition at line 173 of file page_network.cpp.
Referenced by check_server_scan().
|
private |
Definition at line 48 of file page_network.h.
Referenced by handle_authentication_req(), page_network(), set_connection_state(), and slot_connect().
|
private |
Definition at line 50 of file page_network.h.
Referenced by destroy_server_scans(), slot_lan_scan(), and update_network_lists().
|
private |
Definition at line 49 of file page_network.h.
Referenced by destroy_server_scans(), slot_meta_scan(), and update_network_lists().
|
private |
Definition at line 51 of file page_network.h.
Referenced by page_network(), set_connection_state(), slot_connect(), slot_selection_changed(), and update_server_list().