mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
Issue #77 Move all methods of CLogUtilities to other classes
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include "blackmisc/metaclass.h"
|
||||
#include "blackmisc/propertyindexref.h"
|
||||
#include "blackmisc/valueobject.h"
|
||||
#include "blackmisc/statusmessage.h"
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
#include <tuple>
|
||||
@@ -23,6 +24,8 @@ class QStringList;
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
class CStatusMessageList;
|
||||
|
||||
namespace Aviation
|
||||
{
|
||||
//! Value object encapsulating information of a callsign.
|
||||
@@ -204,6 +207,19 @@ namespace BlackMisc
|
||||
//! Representing icon
|
||||
static const CIcon &convertToIcon(const CCallsign &callsign);
|
||||
|
||||
//! Specialized log message for matching / reverse lookup
|
||||
//! \threadsafe
|
||||
static CStatusMessage logMessage(
|
||||
const CCallsign &callsign,
|
||||
const QString &message, const QStringList &extraCategories = {},
|
||||
CStatusMessage::StatusSeverity s = CStatusMessage::SeverityInfo);
|
||||
|
||||
//! Specialized log for matching / reverse lookup
|
||||
//! \threadsafe
|
||||
static void addLogDetailsToList(CStatusMessageList *log, const CCallsign &callsign,
|
||||
const QString &message, const QStringList &extraCategories = {},
|
||||
CStatusMessage::StatusSeverity s = CStatusMessage::SeverityInfo);
|
||||
|
||||
//! Register metadata
|
||||
static void registerMetadata();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user