Freeciv-3.3
Loading...
Searching...
No Matches
connectdlg.cpp
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14#ifdef HAVE_CONFIG_H
15#include <fc_config.h>
16#endif
17
18// utility
19#include "fcintl.h"
20#include "log.h"
21#include "support.h"
22
23#include "connectdlg_g.h"
24
25// client
26#include "chatline_common.h" // For append_output_window
27#include "client_main.h"
28#include "packhand_gen.h"
29
30// gui-qt
31#include "connectdlg.h"
32#include "fc_client.h"
33
34
35/**********************************************************************/
45
46/**********************************************************************/
51 const char *message)
52{
53 gui()->handle_authentication_req(type, message);
54}
55
56/**********************************************************************/
62void handle_game_load(bool load_successful, const char *filename)
63{
64 if (load_successful) {
66
67 if (game.info.is_new_game) {
68 // It's pregame. Create a player and connect to it
69 send_chat("/take -");
70 }
71 }
72}
73
74/**********************************************************************/
78{
79 // PORTME
80}
int send_chat(const char *message)
char * incite_cost
Definition comments.c:76
authentication_type
Definition conn_types.h:41
void handle_game_load(bool load_successful, const char *filename)
void qtg_close_connection_dialog()
void qtg_server_connect()
void handle_authentication_req(enum authentication_type type, const char *message)
struct civ_game game
Definition game.c:61
static enum client_pages current_page
Definition pages.c:78
GType type
Definition repodlgs.c:1313
static mpgui * gui
Definition mpgui_qt.cpp:52
void qtg_real_set_client_page(enum client_pages page)
Definition pages.cpp:104
struct packet_game_info info
Definition game.h:89
void set_client_page(enum client_pages page)