Added log categories for driver/plugin

This commit is contained in:
Klaus Basan
2016-11-16 02:57:58 +01:00
parent 3903a24696
commit 6a66ab84c2
4 changed files with 27 additions and 1 deletions

View File

@@ -76,6 +76,12 @@ namespace BlackCore
CLogMessage(this).info("Initialized simulator driver %1") << m_simulatorPluginInfo.toQString();
}
const CLogCategoryList &CSimulatorCommon::getLogCategories()
{
static const CLogCategoryList cats( { CLogCategory::driver(), CLogCategory::plugin() });
return cats;
}
CSimulatorCommon::~CSimulatorCommon() { }
bool CSimulatorCommon::logicallyAddRemoteAircraft(const CSimulatedAircraft &remoteAircraft)

View File

@@ -63,6 +63,9 @@ namespace BlackCore
Q_OBJECT
public:
//! Log categories
static const BlackMisc::CLogCategoryList &getLogCategories();
//! Destructor
virtual ~CSimulatorCommon();
@@ -79,7 +82,6 @@ namespace BlackCore
//! @}
protected slots:
//! \name Connected with remote aircraft provider signals
//! @{
//! Slow timer used to highlight aircraft, can be used for other things too