mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
Ref T566, log flags/enum in own files and DBus/meta registration
I do not want to have to include the complex matcher and network classes just for the enums/flags
This commit is contained in:
committed by
Mat Sutcliffe
parent
b2065b5da3
commit
002f9e6a9b
36
src/blackmisc/simulation/reverselookup.h
Normal file
36
src/blackmisc/simulation/reverselookup.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/* Copyright (C) 2019
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
|
||||
* or distributed except according to the terms contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKMISC_SIMULATION_REVERSELOOKUP_H
|
||||
#define BLACKMISC_SIMULATION_REVERSELOOKUP_H
|
||||
|
||||
#include <QMetaType>
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Simulation
|
||||
{
|
||||
//! Lookup log.messages
|
||||
enum ReverseLookupLoggingFlag
|
||||
{
|
||||
RevLogDisabled = 0,
|
||||
RevLogEnabled = 1 << 0,
|
||||
RevLogSimplifiedInfo = 1 << 1,
|
||||
RevLogEnabledSimplified = RevLogEnabled | RevLogSimplifiedInfo
|
||||
};
|
||||
Q_DECLARE_FLAGS(ReverseLookupLogging, ReverseLookupLoggingFlag)
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Q_DECLARE_METATYPE(BlackMisc::Simulation::ReverseLookupLogging)
|
||||
Q_DECLARE_METATYPE(BlackMisc::Simulation::ReverseLookupLoggingFlag)
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(BlackMisc::Simulation::ReverseLookupLogging)
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user