mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Ref T566, configurable matching log in matcher/simulator components
* log flag/enum in own file * pass "what to log" as parameter
This commit is contained in:
committed by
Mat Sutcliffe
parent
991c7d59ef
commit
0d2e6dd997
@@ -307,12 +307,14 @@ namespace BlackCore
|
||||
return m_dBusInterface->callDBusRet<BlackMisc::CStatusMessageList>(QLatin1String("getMatchingMessages"), callsign);
|
||||
}
|
||||
|
||||
bool CContextSimulatorProxy::isMatchingMessagesEnabled() const
|
||||
MatchingLog CContextSimulatorProxy::isMatchingMessagesEnabled() const
|
||||
{
|
||||
return m_dBusInterface->callDBusRet<bool>(QLatin1String("isMatchingMessagesEnabled"));
|
||||
//! \fixme KB 2019-04 directly return MatchingLog causes issues with QDbusArgument
|
||||
const int r = m_dBusInterface->callDBusRet<int>(QLatin1String("isMatchingMessagesEnabled"));
|
||||
return static_cast<MatchingLog>(r);
|
||||
}
|
||||
|
||||
void CContextSimulatorProxy::enableMatchingMessages(bool enabled)
|
||||
void CContextSimulatorProxy::enableMatchingMessages(MatchingLog enabled)
|
||||
{
|
||||
m_dBusInterface->callDBus(QLatin1String("enableMatchingMessages"), enabled);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user