Ref T566, added DBus streaming operators so the DECLARED enums can be used with DBus

This commit is contained in:
Klaus Basan
2019-04-09 01:38:22 +02:00
committed by Mat Sutcliffe
parent df119c6e98
commit 269bad3c42
5 changed files with 64 additions and 16 deletions

View File

@@ -309,9 +309,7 @@ namespace BlackCore
MatchingLog CContextSimulatorProxy::isMatchingMessagesEnabled() const
{
//! \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);
return m_dBusInterface->callDBusRet<MatchingLog>(QLatin1String("isMatchingMessagesEnabled"));
}
void CContextSimulatorProxy::enableMatchingMessages(MatchingLog enabled)