mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
refs #335, renamed enums in Application context
component means something different in GUI, renamed to application
This commit is contained in:
committed by
Roland Winklmeier
parent
678cc2e0cc
commit
5eaaf70fcd
@@ -43,18 +43,18 @@ namespace BlackCore
|
||||
IContextApplication(CRuntimeConfig::ContextMode mode, CRuntime *runtime);
|
||||
|
||||
public:
|
||||
//! Components
|
||||
enum Component : uint
|
||||
//! Parts of the application
|
||||
enum Application : uint
|
||||
{
|
||||
ComponentGui,
|
||||
ComponentCore
|
||||
ApplicationGui,
|
||||
ApplicationCore
|
||||
};
|
||||
|
||||
//! What a component does
|
||||
//! State of application
|
||||
enum Actions : uint
|
||||
{
|
||||
ActionStarts,
|
||||
ActionStops
|
||||
ApplicationStarts,
|
||||
ApplicationStops
|
||||
};
|
||||
|
||||
//! Service name
|
||||
|
||||
@@ -65,11 +65,13 @@ MainWindow::~MainWindow()
|
||||
*/
|
||||
void MainWindow::gracefulShutdown()
|
||||
{
|
||||
if (!this->m_init) return;
|
||||
if (!this->m_init) { return; }
|
||||
this->m_init = false;
|
||||
|
||||
if (this->getIContextApplication())
|
||||
this->getIContextApplication()->notifyAboutComponentChange(IContextApplication::ComponentGui, IContextApplication::ActionStops);
|
||||
{
|
||||
this->getIContextApplication()->notifyAboutComponentChange(IContextApplication::ApplicationGui, IContextApplication::ApplicationStops);
|
||||
}
|
||||
|
||||
// close info window
|
||||
if (this->m_compInfoWindow)
|
||||
|
||||
@@ -132,7 +132,7 @@ void MainWindow::init(const CRuntimeConfig &runtimeConfig)
|
||||
this->ps_setMainPage(true);
|
||||
|
||||
// starting
|
||||
this->getIContextApplication()->notifyAboutComponentChange(IContextApplication::ComponentGui, IContextApplication::ActionStarts);
|
||||
this->getIContextApplication()->notifyAboutComponentChange(IContextApplication::ApplicationGui, IContextApplication::ApplicationStarts);
|
||||
|
||||
// We don't receive signals from the past. So ask for it simulate an initial signal
|
||||
ps_onSimulatorConnectionChanged(this->getIContextSimulator()->isConnected());
|
||||
|
||||
Reference in New Issue
Block a user