swift
Loading...
Searching...
No Matches
swift::misc::network::CEcosystemAware Class Reference

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

#include <ecosystemprovider.h>

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

Public Member Functions

void setEcosystemProvider (IEcosystemProvider *provider)
 Set the provider.
CEcosystem getCurrentEcosystem () const
 Current ecosystem.
CEcosystem getLastEcosystem () const
 Last known ecosystem.
bool isCurrentEcosystem (const CEcosystem &system) const
 Current ecosystem?
bool isCurrentEcosystemVATSIM () const
 Current ecosystem VATSIM?
bool isNotVATSIMEcosystem () const
 Connected with other system than VATSIM?
bool isLastEcosystem (const CEcosystem &system) const
 Last known ecosystem?

Static Public Member Functions

static IEcosystemProvider * providerIfPossible (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 ()=default
 Dtor.
bool hasProvider () const
 Has provider?
IEcosystemProvider * getProvider () const
 Provider.
void setProvider (IEcosystemProvider *provider)
 Set the provider.
IEcosystemProvider * provider ()
 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.

Constructor & Destructor Documentation

◆ CEcosystemAware()

swift::misc::network::CEcosystemAware::CEcosystemAware ( IEcosystemProvider * EcosystemProvider)
inlineprotected

Constructor.

Definition at line 89 of file ecosystemprovider.h.

Member Function Documentation

◆ anchor()

void swift::misc::network::CEcosystemAware::anchor ( )
privatevirtual

Definition at line 57 of file ecosystemprovider.cpp.

◆ 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 59 of file ecosystemprovider.cpp.

◆ getLastEcosystem()

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

Last known ecosystem.

Remarks
This function is thread safe.

Definition at line 68 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 77 of file ecosystemprovider.cpp.

◆ isCurrentEcosystemVATSIM()

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

Current ecosystem VATSIM?

Remarks
This function is thread safe.

Definition at line 86 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 101 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 88 of file ecosystemprovider.cpp.

◆ providerIfPossible()

IEcosystemProvider * swift::misc::network::CEcosystemAware::providerIfPossible ( QObject * object)
static

Cast as provider if possible.

Definition at line 110 of file ecosystemprovider.cpp.

◆ setEcosystemProvider()

void swift::misc::network::CEcosystemAware::setEcosystemProvider ( IEcosystemProvider * provider)
inline

Set the provider.

Definition at line 63 of file ecosystemprovider.h.


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