mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Improved log level when DB reading fails
(Mapping between severity and read status flags)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
3970b96eaf
commit
bcf1bed1d0
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user