8 namespace swift::misc::network
12 QReadLocker l(&m_lockSystem);
13 return m_currentEcoSystem;
18 QReadLocker l(&m_lockSystem);
19 return m_lastEcoSystem;
37 QReadLocker l(&m_lockSystem);
38 m_currentEcoSystem = ecosystem;
45 QReadLocker l(&m_lockSystem);
46 m_lastEcoSystem = ecosystem;
51 void CEcosystemAware::anchor() {}
56 return this->
provider()->getCurrentEcosystem();
62 return this->
provider()->getLastEcosystem();
68 return this->
provider()->isCurrentEcosystem(system);
87 return this->
provider()->isLastEcosystem(system);
bool hasProvider() const
Has provider?
IEcosystemProvider * provider()
Provider.
static IEcosystemProvider * providerIfPossible(QObject *object)
Cast as provider if possible.
bool isCurrentEcosystemVATSIM() const
Current ecosystem VATSIM?
bool isCurrentEcosystem(const CEcosystem &system) const
Current ecosystem?
CEcosystem getCurrentEcosystem() const
Current ecosystem.
bool isNotVATSIMEcosystem() const
Connected with other system than VATSIM?
bool isLastEcosystem(const CEcosystem &system) const
Last known ecosystem?
CEcosystem getLastEcosystem() const
Last known ecosystem.
Ecosystem of server belonging together.
bool isUnspecified() const
Unknown system?
static const CEcosystem & vatsim()
VATSIM eco system.
static const CEcosystem & swiftTest()
swift test eco system
static const CEcosystem & unspecified()
Unspecified.
Direct threadsafe in memory access to current ecosystem.
bool setCurrentEcosystem(const CEcosystem &ecosystem)
Set the current system.
bool setLastEcosystem(const CEcosystem &ecosystem)
Set the last known system.
bool isCurrentEcosystemVATSIM() const
Current ecosystem VATSIM?
CEcosystem getCurrentEcosystem() const
Current ecosystem.
CEcosystem getLastEcosystem() const
Last known ecosystem.
bool isLastEcosystem(const CEcosystem &system) const
Last known ecosystem?
bool isCurrentEcosystem(const CEcosystem &system) const
Current ecosystem?