Improved log level when DB reading fails

(Mapping between severity and read status flags)
This commit is contained in:
Klaus Basan
2015-10-18 23:26:52 +02:00
committed by Mathew Sutcliffe
parent 3970b96eaf
commit bcf1bed1d0
3 changed files with 43 additions and 15 deletions

View File

@@ -13,6 +13,7 @@
#define BLACKMISC_NETWORK_ENTITRFLAGS_H
#include "blackmisc/blackmiscexport.h"
#include "blackmisc/statusmessage.h"
#include <QObject>
namespace BlackMisc
@@ -62,6 +63,12 @@ namespace BlackMisc
//! Convert to string
static QString flagToString(ReadState flag);
//! Flag to severity
static BlackMisc::CStatusMessage::StatusSeverity flagToSeverity(ReadState state);
//! Read state representing warning or above?
static bool isWarningOrAbove(ReadState state);
//! Register metadata
static void registerMetadata();
};