refactor: new signal ClientConnection::requestShowError
This commit is contained in:
parent
5287c51957
commit
2485916ad1
2 changed files with 8 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ void ClientConnection::showMessage(const QString &logLine)
|
||||||
if (error == NoError)
|
if (error == NoError)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Q_EMIT requestShowError(error, address);
|
||||||
Q_EMIT messageShowing();
|
Q_EMIT messageShowing();
|
||||||
m_deps->showError(m_pParent, error, address);
|
m_deps->showError(m_pParent, error, address);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,13 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_SIGNALS:
|
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();
|
void messageShowing();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue