refs #601, #600, #485 Status message handling.

* follow up of debug session, added failure/success to status message
* return status messages instead of directly logging in functions returning CStatusMessage.
* Ignore empty preformatted messages.
* new log category
This commit is contained in:
Klaus Basan
2016-02-25 22:26:28 +00:00
committed by Mathew Sutcliffe
parent f490504f52
commit 144ba62572
9 changed files with 70 additions and 33 deletions

View File

@@ -142,6 +142,16 @@ namespace BlackMisc
return c.isEmpty() ? this->getCategoriesAsString() : c;
}
bool CStatusMessage::isSuccess() const
{
return !isFailure();
}
bool CStatusMessage::isFailure() const
{
return getSeverity() == SeverityError;
}
void CStatusMessage::prependMessage(const QString &msg)
{
if (msg.isEmpty()) { return; }