swift
Public Member Functions | Protected Member Functions | List of all members
swift::misc::network::IEcosystemProvider Class Reference

Direct threadsafe in memory access to current ecosystem. More...

Inheritance diagram for swift::misc::network::IEcosystemProvider:
[legend]

Public Member Functions

CEcosystem getCurrentEcosystem () const
 Current ecosystem. More...
 
CEcosystem getLastEcosystem () const
 Last known ecosystem. More...
 
bool isCurrentEcosystem (const CEcosystem &system) const
 Current ecosystem? More...
 
bool isCurrentEcosystemVATSIM () const
 Current ecosystem VATSIM? More...
 
bool isLastEcosystem (const CEcosystem &system) const
 Last known ecosystem? More...
 
- Public Member Functions inherited from swift::misc::IProvider
virtual ~IProvider ()
 Dtor.
 
 IProvider (const IProvider &)=delete
 Copy constructor.
 
IProvideroperator= (const IProvider &)=delete
 Copy assignment operator.
 
virtual QObject * asQObject ()
 Return as QObject.
 

Protected Member Functions

bool setCurrentEcosystem (const CEcosystem &ecosystem)
 Set the current system. More...
 
bool setLastEcosystem (const CEcosystem &ecosystem)
 Set the last known system. More...
 
- Protected Member Functions inherited from swift::misc::IProvider
 IProvider ()
 Constructor.
 

Detailed Description

Direct threadsafe in memory access to current ecosystem.

Definition at line 17 of file ecosystemprovider.h.

Member Function Documentation

◆ getCurrentEcosystem()

CEcosystem swift::misc::network::IEcosystemProvider::getCurrentEcosystem ( ) const

Current ecosystem.

Remarks
CEcosystem::Unspecified if not connected with any network
This function is thread safe.

Definition at line 10 of file ecosystemprovider.cpp.

◆ getLastEcosystem()

CEcosystem swift::misc::network::IEcosystemProvider::getLastEcosystem ( ) const

Last known ecosystem.

Remarks
This function is thread safe.

Definition at line 16 of file ecosystemprovider.cpp.

◆ isCurrentEcosystem()

bool swift::misc::network::IEcosystemProvider::isCurrentEcosystem ( const CEcosystem system) const

Current ecosystem?

Remarks
This function is thread safe.

Definition at line 22 of file ecosystemprovider.cpp.

◆ isCurrentEcosystemVATSIM()

bool swift::misc::network::IEcosystemProvider::isCurrentEcosystemVATSIM ( ) const

Current ecosystem VATSIM?

Remarks
This function is thread safe.

Definition at line 27 of file ecosystemprovider.cpp.

◆ isLastEcosystem()

bool swift::misc::network::IEcosystemProvider::isLastEcosystem ( const CEcosystem system) const

Last known ecosystem?

Remarks
This function is thread safe.

Definition at line 29 of file ecosystemprovider.cpp.

◆ setCurrentEcosystem()

bool swift::misc::network::IEcosystemProvider::setCurrentEcosystem ( const CEcosystem ecosystem)
protected

Set the current system.

Remarks
This function is thread safe.

Definition at line 34 of file ecosystemprovider.cpp.

◆ setLastEcosystem()

bool swift::misc::network::IEcosystemProvider::setLastEcosystem ( const CEcosystem ecosystem)
protected

Set the last known system.

Remarks
This function is thread safe.

Definition at line 42 of file ecosystemprovider.cpp.


The documentation for this class was generated from the following files: