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

Class which can be directly used to access an. More...

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

Public Member Functions

CClientList getClients () const
 clientprovider More...
 
void setClients (const CClientList &clients)
 Set other clients. More...
 
void clearClients ()
 Set other clients. More...
 
swift::misc::network::CClientList getClientsForCallsigns (const aviation::CCallsignSet &callsigns) const
 Returns a list of other clients corresponding to the given callsigns. More...
 
swift::misc::network::CClient getClientOrDefaultForCallsign (const aviation::CCallsign &callsign) const
 Other client for the given callsigns. More...
 
bool hasClientInfo (const aviation::CCallsign &callsign) const
 Client info for given callsign? More...
 
bool addNewClient (const CClient &client)
 Add a new client, if existing nothing will be added. More...
 
int updateOrAddClient (const aviation::CCallsign &callsign, const CPropertyIndexVariantMap &vm, bool skipEqualValues)
 Update or add a client. More...
 
int removeClient (const aviation::CCallsign &callsign)
 Remove client. More...
 
bool autoAdjustCientGndCapability (const aviation::CAircraftSituation &situation)
 Adjust gnd.flag capability from situation. More...
 
bool addClientGndCapability (const aviation::CCallsign &callsign)
 Add gnd.flag capability. More...
 
void markAsSwiftClient (const aviation::CCallsign &callsign)
 Mark as other swift client. More...
 
void setClientProvider (CClientProvider *provider)
 Provider.
 

Protected Member Functions

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

Detailed Description

Class which can be directly used to access an.

See also
IClientProvider object

Definition at line 113 of file clientprovider.h.

Member Function Documentation

◆ addClientGndCapability()

bool swift::misc::network::CClientAware::addClientGndCapability ( const aviation::CCallsign callsign)

Add gnd.flag capability.

Remarks
This function is thread safe.

Definition at line 195 of file clientprovider.cpp.

◆ addNewClient()

bool swift::misc::network::CClientAware::addNewClient ( const CClient client)

Add a new client, if existing nothing will be added.

Remarks
This function is thread safe.

Definition at line 170 of file clientprovider.cpp.

◆ autoAdjustCientGndCapability()

bool swift::misc::network::CClientAware::autoAdjustCientGndCapability ( const aviation::CAircraftSituation situation)

Adjust gnd.flag capability from situation.

Remarks
This function is thread safe.

Definition at line 189 of file clientprovider.cpp.

◆ clearClients()

void swift::misc::network::CClientAware::clearClients ( )

Set other clients.

Remarks
This function is thread safe.

◆ getClientOrDefaultForCallsign()

CClient swift::misc::network::CClientAware::getClientOrDefaultForCallsign ( const aviation::CCallsign callsign) const

Other client for the given callsigns.

Remarks
This function is thread safe.

Definition at line 158 of file clientprovider.cpp.

◆ getClients()

CClientList swift::misc::network::CClientAware::getClients ( ) const

clientprovider

Definition at line 152 of file clientprovider.cpp.

◆ getClientsForCallsigns()

swift::misc::network::CClientList swift::misc::network::CClientAware::getClientsForCallsigns ( const aviation::CCallsignSet callsigns) const

Returns a list of other clients corresponding to the given callsigns.

Remarks
This function is thread safe.

◆ hasClientInfo()

bool swift::misc::network::CClientAware::hasClientInfo ( const aviation::CCallsign callsign) const

Client info for given callsign?

Remarks
This function is thread safe.

Definition at line 164 of file clientprovider.cpp.

◆ markAsSwiftClient()

void swift::misc::network::CClientAware::markAsSwiftClient ( const aviation::CCallsign callsign)

Mark as other swift client.

Remarks
This function is thread safe.

Definition at line 201 of file clientprovider.cpp.

◆ removeClient()

int swift::misc::network::CClientAware::removeClient ( const aviation::CCallsign callsign)

Remove client.

Remarks
This function is thread safe.

Definition at line 183 of file clientprovider.cpp.

◆ setClients()

void swift::misc::network::CClientAware::setClients ( const CClientList clients)

Set other clients.

Remarks
This function is thread safe.

◆ updateOrAddClient()

int swift::misc::network::CClientAware::updateOrAddClient ( const aviation::CCallsign callsign,
const CPropertyIndexVariantMap vm,
bool  skipEqualValues 
)

Update or add a client.

Remarks
This function is thread safe.

Definition at line 176 of file clientprovider.cpp.


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