refs #452, status messages

* DB support
* finders and convenience methods
This commit is contained in:
Klaus Basan
2015-09-23 03:30:08 +02:00
committed by Mathew Sutcliffe
parent 5587c06d37
commit b5477c7c94
4 changed files with 66 additions and 56 deletions

View File

@@ -43,12 +43,23 @@ namespace BlackMisc
//! Find by severity
CStatusMessageList findBySeverity(CStatusMessage::StatusSeverity severity) const;
//! Error messages
bool hasErrorMessages() const;
//! Warning messages
bool hasWarningMessages() const;
//! Warning or error messages
bool hasWarningOrErrorMessages() const;
//! Add a category to all messages in the list
void addCategory(const CLogCategory &category);
//! Add some categories to all messages in the list
void addCategories(const CLogCategoryList &categories);
//! From our database JSON format
static CStatusMessageList fromDatabaseJson(const QJsonArray &array);
};
} // ns