refs #288, parseCommand in runtime, which distributes it to the contexts (easier, also for core command line)

This commit is contained in:
Klaus Basan
2014-11-29 20:03:41 +00:00
committed by Roland Winklmeier
parent 8b002e1510
commit 788078f72a
4 changed files with 15 additions and 8 deletions

View File

@@ -126,6 +126,15 @@ namespace BlackCore
return (token == this->m_contextApplication->ping(token));
}
bool CRuntime::parseCommandLine(const QString commandLine)
{
bool handled = false;
if (this->getIContextAudio()) { handled = handled || this->getIContextAudio()->parseCommandLine(commandLine); }
if (this->getIContextNetwork()) { handled = handled || this->getIContextNetwork()->parseCommandLine(commandLine); }
if (this->getIContextOwnAircraft()) { handled = handled || this->getIContextOwnAircraft()->parseCommandLine(commandLine); }
return handled;
}
void CRuntime::initDBusServer(const QString &dBusAddress)
{
if (this->m_dbusServer) return;