refactor: new signal ClientConnection::requestShowError
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user