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

Delegating class which can be directly used to access an. More...

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

Public Member Functions

void setEcosystemProvider (IEcosystemProvider *provider)
 Set the provider.
 
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 isNotVATSIMEcosystem () const
 Connected with other system than VATSIM? More...
 
bool isLastEcosystem (const CEcosystem &system) const
 Last known ecosystem? More...
 

Static Public Member Functions

static IEcosystemProviderproviderIfPossible (QObject *object)
 Cast as provider if possible.
 

Protected Member Functions

 CEcosystemAware (IEcosystemProvider *EcosystemProvider)
 Constructor.
 
- Protected Member Functions inherited from swift::misc::IProviderAware< IEcosystemProvider >
 IProviderAware (IEcosystemProvider *provider=nullptr)
 Ctor.
 
virtual ~IProviderAware ()
 Dtor.
 
bool hasProvider () const
 Has provider?
 
IEcosystemProvider * getProvider () const
 Provider.
 
void setProvider (IEcosystemProvider *provider)
 Set the provider. More...
 
IEcosystemProvider * provider ()
 Provider.
 
const IEcosystemProvider * provider () const
 Const provider.
 

Detailed Description

Delegating class which can be directly used to access an.

See also
IEcosystemProvider instance

Definition at line 57 of file ecosystemprovider.h.

Member Function Documentation

◆ getCurrentEcosystem()

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

Current ecosystem.

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

Definition at line 53 of file ecosystemprovider.cpp.

◆ getLastEcosystem()

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

Last known ecosystem.

Remarks
This function is thread safe.

Definition at line 59 of file ecosystemprovider.cpp.

◆ isCurrentEcosystem()

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

Current ecosystem?

Remarks
This function is thread safe.

Definition at line 65 of file ecosystemprovider.cpp.

◆ isCurrentEcosystemVATSIM()

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

Current ecosystem VATSIM?

Remarks
This function is thread safe.

Definition at line 71 of file ecosystemprovider.cpp.

◆ isLastEcosystem()

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

Last known ecosystem?

Remarks
This function is thread safe.

Definition at line 84 of file ecosystemprovider.cpp.

◆ isNotVATSIMEcosystem()

bool swift::misc::network::CEcosystemAware::isNotVATSIMEcosystem ( ) const

Connected with other system than VATSIM?

Remarks
use this function to skip VATSIM specific provider tasks etc.

Definition at line 73 of file ecosystemprovider.cpp.


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