mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user