OpenTTD Source 20250205-master-gfd85ab1e2c
network_gui.h File Reference

GUIs related to networking. More...

Go to the source code of this file.

Data Structures

struct  NetworkCompanyInfo
 Company information stored at the client side. More...
 

Enumerations

enum  NetworkRelayWindowCloseData : uint8_t { NRWCD_UNHANDLED = 0 , NRWCD_HANDLED = 1 }
 

Functions

void ShowNetworkNeedPassword (std::shared_ptr< class NetworkAuthenticationPasswordRequest > request)
 
void ShowNetworkChatQueryWindow (DestType type, int dest)
 Show the chat window.
 
void ShowJoinStatusWindow ()
 
void ShowNetworkGameWindow ()
 
void ShowClientList ()
 
void ShowNetworkAskRelay (const std::string &server_connection_string, const std::string &relay_connection_string, const std::string &token)
 Show a modal confirmation window with "no" / "yes, once" / "yes, always" buttons.
 
void ShowNetworkAskSurvey ()
 Show a modal confirmation window with "no" / "preview" / "yes" buttons.
 
void ShowSurveyResultTextfileWindow ()
 

Detailed Description

GUIs related to networking.

Definition in file network_gui.h.

Enumeration Type Documentation

◆ NetworkRelayWindowCloseData

Enumerator
NRWCD_UNHANDLED 

Relay request is unhandled.

NRWCD_HANDLED 

Relay request is handled, either by user or by timeout.

Definition at line 41 of file network_gui.h.

Function Documentation

◆ ShowClientList()

void ShowClientList ( )

Definition at line 2073 of file network_gui.cpp.

◆ ShowJoinStatusWindow()

void ShowJoinStatusWindow ( )

Definition at line 2207 of file network_gui.cpp.

◆ ShowNetworkAskRelay()

void ShowNetworkAskRelay ( const std::string &  server_connection_string,
const std::string &  relay_connection_string,
const std::string &  token 
)

Show a modal confirmation window with "no" / "yes, once" / "yes, always" buttons.

Parameters
server_connection_stringThe game server we want to connect to.
relay_connection_stringThe relay server we want to connect to.
tokenThe token for this connection.

Definition at line 2330 of file network_gui.cpp.

References CloseWindowByClass(), GetMainWindow(), NRWCD_HANDLED, and WC_NETWORK_ASK_RELAY.

Referenced by ClientNetworkCoordinatorSocketHandler::Receive_GC_TURN_CONNECT().

◆ ShowNetworkAskSurvey()

void ShowNetworkAskSurvey ( )

Show a modal confirmation window with "no" / "preview" / "yes" buttons.

Definition at line 2425 of file network_gui.cpp.

References CloseWindowByClass(), GetMainWindow(), and WC_NETWORK_ASK_SURVEY.

◆ ShowNetworkChatQueryWindow()

void ShowNetworkChatQueryWindow ( DestType  type,
int  dest 
)

Show the chat window.

Parameters
typeThe type of destination.
destThe actual destination index.

Definition at line 445 of file network_chat_gui.cpp.

References _chat_window_desc, CloseWindowByClass(), and WC_SEND_NETWORK_MSG.

Referenced by NetworkClientListWindow::OnClickClientChat(), NetworkClientListWindow::OnClickCompanyChat(), and MainWindow::OnHotkey().

◆ ShowNetworkGameWindow()

void ShowNetworkGameWindow ( )

Definition at line 971 of file network_gui.cpp.

◆ ShowSurveyResultTextfileWindow()

void ShowSurveyResultTextfileWindow ( )

Definition at line 2450 of file network_gui.cpp.