#include <remote_connection_controller.h>
Owns the RemoteClient and its worker thread. Encapsulates all connection, authentication, and registration logic so that MainWindow only needs to react to high-level signals.
◆ ConnectionController()
| ConnectionController::ConnectionController |
( |
QWidget * | dialogParent, |
|
|
QObject * | parent = nullptr ) |
|
explicit |
◆ ~ConnectionController()
| ConnectionController::~ConnectionController |
( |
| ) |
|
|
override |
◆ client()
◆ connectToServer()
| void ConnectionController::connectToServer |
( |
| ) |
|
◆ connectToServerDirect()
| void ConnectionController::connectToServerDirect |
( |
const QString & | host, |
|
|
unsigned int | port, |
|
|
const QString & | playerName, |
|
|
const QString & | password ) |
◆ disconnectFromServer()
| void ConnectionController::disconnectFromServer |
( |
| ) |
|
◆ extractInvalidUsernameMessage()
| QString ConnectionController::extractInvalidUsernameMessage |
( |
QString & | in | ) |
|
|
staticprivate |
Parse the server's pipe-delimited username-rule string into HTML.
◆ forgotPasswordRequest()
| void ConnectionController::forgotPasswordRequest |
( |
| ) |
|
◆ onActivateAccepted
| void ConnectionController::onActivateAccepted |
( |
| ) |
|
|
privateslot |
◆ onActivateError
| void ConnectionController::onActivateError |
( |
| ) |
|
|
privateslot |
◆ onConnectionClosedEvent
| void ConnectionController::onConnectionClosedEvent |
( |
const Event_ConnectionClosed & | event | ) |
|
|
privateslot |
◆ onForgotPasswordError
| void ConnectionController::onForgotPasswordError |
( |
| ) |
|
|
privateslot |
◆ onForgotPasswordSuccess
| void ConnectionController::onForgotPasswordSuccess |
( |
| ) |
|
|
privateslot |
◆ onLoginError
| void ConnectionController::onLoginError |
( |
int | r, |
|
|
QString | reasonStr, |
|
|
quint32 | endTime, |
|
|
const QList< QString > & | missingFeatures ) |
|
privateslot |
◆ onNotifyUserAboutUpdate
| void ConnectionController::onNotifyUserAboutUpdate |
( |
| ) |
|
|
privateslot |
◆ onPromptForgotPasswordChallenge
| void ConnectionController::onPromptForgotPasswordChallenge |
( |
| ) |
|
|
privateslot |
◆ onPromptForgotPasswordReset
| void ConnectionController::onPromptForgotPasswordReset |
( |
| ) |
|
|
privateslot |
◆ onProtocolVersionMismatch
| void ConnectionController::onProtocolVersionMismatch |
( |
int | localVersion, |
|
|
int | remoteVersion ) |
|
privateslot |
◆ onRegisterAccepted
| void ConnectionController::onRegisterAccepted |
( |
| ) |
|
|
privateslot |
◆ onRegisterAcceptedNeedsActivate
| void ConnectionController::onRegisterAcceptedNeedsActivate |
( |
| ) |
|
|
privateslot |
◆ onRegisterError
| void ConnectionController::onRegisterError |
( |
int | r, |
|
|
QString | reasonStr, |
|
|
quint32 | endTime ) |
|
privateslot |
◆ onServerShutdownEvent
| void ConnectionController::onServerShutdownEvent |
( |
const Event_ServerShutdown & | event | ) |
|
|
privateslot |
◆ onServerTimeout
| void ConnectionController::onServerTimeout |
( |
| ) |
|
|
privateslot |
◆ onSocketError
| void ConnectionController::onSocketError |
( |
const QString & | errorStr | ) |
|
|
privateslot |
◆ onStatusChanged
| void ConnectionController::onStatusChanged |
( |
ClientStatus | status | ) |
|
|
privateslot |
◆ onUserInfoReceived
| void ConnectionController::onUserInfoReceived |
( |
const ServerInfo_User & | info | ) |
|
|
privateslot |
◆ refreshWindowTitle()
| void ConnectionController::refreshWindowTitle |
( |
| ) |
|
|
inline |
◆ registerToServer()
| void ConnectionController::registerToServer |
( |
| ) |
|
◆ statusChanged
| void ConnectionController::statusChanged |
( |
ClientStatus | status | ) |
|
|
signal |
◆ tabSupervisorStartRequested
| void ConnectionController::tabSupervisorStartRequested |
( |
const ServerInfo_User & | info | ) |
|
|
signal |
◆ tabSupervisorStopRequested
| void ConnectionController::tabSupervisorStopRequested |
( |
| ) |
|
|
signal |
◆ updateWindowTitle()
| void ConnectionController::updateWindowTitle |
( |
| ) |
|
|
private |
◆ windowTitleChanged
| void ConnectionController::windowTitleChanged |
( |
const QString & | title | ) |
|
|
signal |
◆ wireClientSignals()
| void ConnectionController::wireClientSignals |
( |
| ) |
|
|
private |
◆ clientThread
| QThread* ConnectionController::clientThread {nullptr} |
|
private |
◆ dialogParent
| QWidget* ConnectionController::dialogParent {nullptr} |
|
private |
◆ dlgConnect
| DlgConnect* ConnectionController::dlgConnect {nullptr} |
|
private |
◆ remoteClient
◆ serverShutdownMessageBox
| QMessageBox ConnectionController::serverShutdownMessageBox |
|
private |
The documentation for this class was generated from the following files: