Freeciv21
Develop your civilization from humble roots to a global empire
connectdlg_common.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  __ __ part of Freeciv21. Freeciv21 is free software: you can
4 / \\..// \ redistribute it and/or modify it under the terms of the GNU
5  ( oo ) General Public License as published by the Free Software
6  \__/ Foundation, either version 3 of the License, or (at your
7  option) any later version. You should have received
8  a copy of the GNU General Public License along with Freeciv21. If not,
9  see https://www.gnu.org/licenses/.
10 **************************************************************************/
11 #pragma once
12 
13 // Forward declarations
14 class QString;
15 
16 bool client_start_server(const QString &user_name);
17 void client_kill_server(bool force);
18 
19 bool is_server_running();
21 
22 void send_client_wants_hack(const char *filename);
23 void send_save_game(const char *filename);
24 
25 void set_ruleset(const char *ruleset);
static QString ruleset
Definition: civmanual.cpp:152
bool can_client_access_hack()
Returns TRUE if the client has hack access.
void send_client_wants_hack(const char *filename)
If the client is capable of 'wanting hack', then the server will send the client a filename in the pa...
bool is_server_running()
The general chain of events:
void send_save_game(const char *filename)
Send server command to save game.
void set_ruleset(const char *ruleset)
Called by the GUI code when the user sets the ruleset.
bool client_start_server(const QString &user_name)
Forks a server if it can.
void client_kill_server(bool force)
Kills the server if the client has started it.