6 #ifndef SWIFT_MISC_NETWORK_ECOSYSTEMPROVIDER_H
7 #define SWIFT_MISC_NETWORK_ECOSYSTEMPROVIDER_H
9 #include <QReadWriteLock>
14 namespace swift::misc::network
31 bool isCurrentEcosystem(
const CEcosystem &system)
const;
35 bool isCurrentEcosystemVATSIM()
const;
39 bool isLastEcosystem(
const CEcosystem &system)
const;
44 bool setCurrentEcosystem(
const CEcosystem &ecosystem);
48 bool setLastEcosystem(
const CEcosystem &ecosystem);
53 mutable QReadWriteLock m_lockSystem;
59 virtual void anchor();
72 bool isCurrentEcosystem(
const CEcosystem &system)
const;
75 bool isCurrentEcosystemVATSIM()
const;
79 bool isNotVATSIMEcosystem()
const;
82 bool isLastEcosystem(
const CEcosystem &system)
const;
91 Q_ASSERT(EcosystemProvider);
Base class of provider aware classes.
Base class for providers.
Delegating class which can be directly used to access an.
void setEcosystemProvider(IEcosystemProvider *provider)
Set the provider.
CEcosystemAware(IEcosystemProvider *EcosystemProvider)
Constructor.
Ecosystem of server belonging together.
Direct threadsafe in memory access to current ecosystem.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.