mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
refs #786, prepare contexts for matching messages
In same step cleaned up contexts a bit * added function for model set strings * renamed functions to getModelSet... instead of installed models (the set is smaller and is what we want to use with DBus) * signal when debug/log flags changed * removed some \copydoc * allow to enable/disable rev.lookup/matching messages * removed reload model function (dangling)
This commit is contained in:
@@ -69,7 +69,8 @@ namespace BlackCore
|
||||
|
||||
void CContext::setDebugEnabled(bool debug)
|
||||
{
|
||||
this->m_debugEnabled = debug;
|
||||
if (this->m_debugEnabled == debug) { return; }
|
||||
emit this->changedLogOrDebugSettings();
|
||||
}
|
||||
|
||||
bool CContext::isDebugEnabled() const
|
||||
@@ -77,6 +78,13 @@ namespace BlackCore
|
||||
return this->m_debugEnabled;
|
||||
}
|
||||
|
||||
void CContext::relayBaseClassSignals(const QString &serviceName, QDBusConnection &connection, const QString &objectPath, const QString &interfaceName)
|
||||
{
|
||||
bool s = connection.connect(serviceName, objectPath, interfaceName,
|
||||
"changedLogOrDebugSettings", this, SIGNAL(changedLogOrDebugSettings()));
|
||||
Q_ASSERT(s);
|
||||
}
|
||||
|
||||
const IContextSimulator *CContext::getIContextSimulator() const
|
||||
{
|
||||
return this->getRuntime()->getIContextSimulator();
|
||||
|
||||
Reference in New Issue
Block a user