mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
refs #242, own aircraft context methods
This commit is contained in:
@@ -34,6 +34,16 @@ namespace BlackCore
|
||||
return this->getRuntime()->getIContextApplication();
|
||||
}
|
||||
|
||||
IContextOwnAircraft *CContext::getIContextOwnAircraft()
|
||||
{
|
||||
return this->getRuntime()->getIContextOwnAircraft();
|
||||
}
|
||||
|
||||
const IContextOwnAircraft *CContext::getIContextOwnAircraft() const
|
||||
{
|
||||
return this->getRuntime()->getIContextOwnAircraft();
|
||||
}
|
||||
|
||||
IContextSettings *CContext::getIContextSettings()
|
||||
{
|
||||
return this->getRuntime()->getIContextSettings();
|
||||
|
||||
@@ -47,11 +47,11 @@ namespace BlackCore
|
||||
// cross context access
|
||||
//
|
||||
|
||||
//! Context for network
|
||||
IContextNetwork *getIContextNetwork();
|
||||
//! Context for application
|
||||
const IContextApplication *getIContextApplication() const;
|
||||
|
||||
//! Context for network
|
||||
const IContextNetwork *getIContextNetwork() const;
|
||||
//! Application
|
||||
IContextApplication *getIContextApplication();
|
||||
|
||||
//! Context for network
|
||||
IContextAudio *getIContextAudio();
|
||||
@@ -59,18 +59,24 @@ namespace BlackCore
|
||||
//! Context for network
|
||||
const IContextAudio *getIContextAudio() const;
|
||||
|
||||
//! Context for network
|
||||
IContextNetwork *getIContextNetwork();
|
||||
|
||||
//! Context for network
|
||||
const IContextNetwork *getIContextNetwork() const;
|
||||
|
||||
//! Context for own aircraft
|
||||
IContextOwnAircraft *getIContextOwnAircraft();
|
||||
|
||||
//! Context for own aircraft
|
||||
const IContextOwnAircraft *getIContextOwnAircraft() const;
|
||||
|
||||
//! Settings
|
||||
IContextSettings *getIContextSettings();
|
||||
|
||||
//! Settings
|
||||
const IContextSettings *getIContextSettings() const;
|
||||
|
||||
//! Context for application
|
||||
const IContextApplication *getIContextApplication() const;
|
||||
|
||||
//! Application
|
||||
IContextApplication *getIContextApplication();
|
||||
|
||||
//! Context for simulator
|
||||
const IContextSimulator *getIContextSimulator() const;
|
||||
|
||||
|
||||
@@ -25,6 +25,12 @@ namespace BlackCore
|
||||
//! Destructor
|
||||
virtual ~CContextOwnAircraft();
|
||||
|
||||
//! Own aircraft
|
||||
const BlackMisc::Aviation::CAircraft &ownAircraft() const { return this->m_ownAircraft; }
|
||||
|
||||
//! Own aircraft
|
||||
BlackMisc::Aviation::CAircraft &ownAircraft() { return this->m_ownAircraft; }
|
||||
|
||||
public slots: // IContextOwnAircraft overrides
|
||||
|
||||
//! \copydoc IContextOwnAircraft::setOwnAircraft()
|
||||
@@ -60,7 +66,6 @@ namespace BlackCore
|
||||
//! Init my very own aircraft
|
||||
void initOwnAircraft();
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user