OpenTTD Source 20260421-master-gc2fbc6fdeb
ClientGamePasswordRequestHandler Class Reference

Handles requests by immediately returning the server password, or show the user to password window. More...

Inheritance diagram for ClientGamePasswordRequestHandler:
NetworkAuthenticationPasswordRequestHandler NetworkAuthenticationPasswordRequest

Private Member Functions

void SendResponse () override
 Callback to trigger sending the response for the password request.
void AskUserForPassword (std::shared_ptr< NetworkAuthenticationPasswordRequest > request) override
 Callback to trigger asking the user for the password.

Additional Inherited Members

Public Member Functions inherited from NetworkAuthenticationPasswordRequestHandler
void Reply (const std::string &password) override
 Reply to the request with the given password.
Public Member Functions inherited from NetworkAuthenticationPasswordRequest
virtual ~NetworkAuthenticationPasswordRequest ()=default
 Ensure the destructor of the sub classes are called as well.
Protected Attributes inherited from NetworkAuthenticationPasswordRequestHandler
std::string password
 The entered password.

Detailed Description

Handles requests by immediately returning the server password, or show the user to password window.

Definition at line 711 of file network_client.cpp.

Member Function Documentation

◆ AskUserForPassword()

void ClientGamePasswordRequestHandler::AskUserForPassword ( std::shared_ptr< NetworkAuthenticationPasswordRequest > request)
inlineoverrideprivatevirtual

Callback to trigger asking the user for the password.

Parameters
requestThe request to the user, to which it can reply with the password.

Implements NetworkAuthenticationPasswordRequestHandler.

Definition at line 713 of file network_client.cpp.

References _network_join, and ShowNetworkNeedPassword().

◆ SendResponse()

void ClientGamePasswordRequestHandler::SendResponse ( )
inlineoverrideprivatevirtual

Callback to trigger sending the response for the password request.

Implements NetworkAuthenticationPasswordRequestHandler.

Definition at line 712 of file network_client.cpp.

References ClientNetworkGameSocketHandler::SendAuthResponse().


The documentation for this class was generated from the following file: