refactor: new signal ClientConnection::requestShowError

This commit is contained in:
sithlord48
2025-11-27 09:21:43 -05:00
committed by Nick Bolton
parent 5287c51957
commit 2485916ad1
2 changed files with 8 additions and 0 deletions

View File

@ -75,6 +75,7 @@ void ClientConnection::showMessage(const QString &logLine)
if (error == NoError)
return;
Q_EMIT requestShowError(error, address);
Q_EMIT messageShowing();
m_deps->showError(m_pParent, error, address);
}

View File

@ -42,6 +42,13 @@ public:
}
Q_SIGNALS:
/**
* @brief requestShowError, This signal is emitted when the client
* connection would like the owning process to report an error message
* @param error the type of error being reported
* @param address of the host
*/
void requestShowError(deskflow::gui::messages::ClientError error, const QString &address);
void messageShowing();
private: