refs #199, removed reEmitSignal for time being.

* Discussion: https://dev.vatsim-germany.org/issues/199#note-11
* Turned widgetGuiStarted / Terminated in more generic method
This commit is contained in:
Klaus Basan
2014-04-10 18:07:18 +02:00
parent 429f79f841
commit 4776b1e650
10 changed files with 44 additions and 64 deletions

View File

@@ -33,13 +33,8 @@ namespace BlackCore
"statusMessages", this, SIGNAL(statusMessages(BlackMisc::CStatusMessageList)));
connection.connect(serviceName, IContextApplication::ObjectPath(), IContextApplication::InterfaceName(),
"redirectedOutput", this, SIGNAL(redirectedOutput(BlackMisc::CStatusMessage, qint64)));
// 1. No need to connect widgetGuiTerminating, only orginates from Proxy side / or is local
// 2. No need to connect widgetGuiStarting
// signals originating from proxy side
connect(this, &CContextApplicationProxy::widgetGuiStarting, [this] { this->signalFromProxy("widgetGuiStarting");});
connect(this, &CContextApplicationProxy::widgetGuiTerminating, [this] { this->signalFromProxy("widgetGuiTerminating");});
connection.connect(serviceName, IContextApplication::ObjectPath(), IContextApplication::InterfaceName(),
"componentChanged", this, SIGNAL(componentChanged(uint, uint)));
}
/*
@@ -51,14 +46,6 @@ namespace BlackCore
return t;
}
/*
* Signal from proxy
*/
void CContextApplicationProxy::signalFromProxy(const QString &signalName)
{
this->m_dBusInterface->callDBus(QLatin1Literal("signalFromProxy"), signalName);
}
/*
* Status messages
*/
@@ -75,4 +62,12 @@ namespace BlackCore
this->m_dBusInterface->callDBus(QLatin1Literal("sendStatusMessages"), messages);
}
/*
* Component has changed
*/
void CContextApplicationProxy::notifyAboutComponentChange(uint component, uint action)
{
this->m_dBusInterface->callDBus(QLatin1Literal("notifyAboutComponentChange"), component, action);
}
} // namespace