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

Direct in memory access to client (network client) data. More...

#include <clientprovider.h>

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

Public Member Functions

CClientList getClients () const
 clientprovider
void setClients (const CClientList &clients)
 Set other clients.
void clearClients ()
 Set other clients.
CClientList getClientsForCallsigns (const aviation::CCallsignSet &callsigns) const
 Returns a list of other clients corresponding to the given callsigns.
CClient getClientOrDefaultForCallsign (const aviation::CCallsign &callsign) const
 Other client for the given callsigns.
bool hasClientInfo (const aviation::CCallsign &callsign) const
 Client info for given callsign?
bool addNewClient (const CClient &client)
 Add a new client, if existing nothing will be added.
bool setOtherClient (const swift::misc::network::CClient &client)
 Set client for its callsign.
int updateOrAddClient (const aviation::CCallsign &callsign, const CPropertyIndexVariantMap &vm, bool skipEqualValues=true)
 Update or add a client.
int removeClient (const aviation::CCallsign &callsign)
 Remove client.
bool autoAdjustCientGndCapability (const aviation::CAircraftSituation &situation)
 Adjust gnd.flag capability from situation.
bool addClientGndCapability (const aviation::CCallsign &callsign)
 Add gnd.flag capability.
bool setClientGndCapability (const aviation::CCallsign &callsign, bool supportGndFlag)
 Set gnd.flag capability.
void markAsSwiftClient (const aviation::CCallsign &callsign)
 Mark as other swift client.
Public Member Functions inherited from swift::misc::IProvider
virtual ~IProvider ()=default
 Dtor.
 IProvider (const IProvider &)=delete
 Copy constructor.
IProvider & operator= (const IProvider &)=delete
 Copy assignment operator.
virtual QObject * asQObject ()
 Return as QObject.

Additional Inherited Members

Protected Member Functions inherited from swift::misc::IProvider
 IProvider ()
 Constructor.

Detailed Description

Direct in memory access to client (network client) data.

Definition at line 87 of file clientprovider.h.

Member Function Documentation

◆ addClientGndCapability()

bool swift::misc::network::CClientProvider::addClientGndCapability ( const aviation::CCallsign & callsign)
virtual

Add gnd.flag capability.

Remarks
This function is thread safe.

Implements swift::misc::network::IClientProvider.

Definition at line 149 of file clientprovider.cpp.

◆ addNewClient()

bool swift::misc::network::CClientProvider::addNewClient ( const CClient & client)
virtual

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

Remarks
This function is thread safe.

Implements swift::misc::network::IClientProvider.

Definition at line 84 of file clientprovider.cpp.

◆ autoAdjustCientGndCapability()

bool swift::misc::network::CClientProvider::autoAdjustCientGndCapability ( const aviation::CAircraftSituation & situation)
virtual

Adjust gnd.flag capability from situation.

Remarks
This function is thread safe.

Implements swift::misc::network::IClientProvider.

Definition at line 132 of file clientprovider.cpp.

◆ clearClients()

void swift::misc::network::CClientProvider::clearClients ( )
virtual

Set other clients.

Remarks
This function is thread safe.

Implements swift::misc::network::IClientProvider.

Definition at line 30 of file clientprovider.cpp.

◆ getClientOrDefaultForCallsign()

CClient swift::misc::network::CClientProvider::getClientOrDefaultForCallsign ( const aviation::CCallsign & callsign) const
virtual

Other client for the given callsigns.

Remarks
This function is thread safe.

Implements swift::misc::network::IClientProvider.

Definition at line 45 of file clientprovider.cpp.

◆ getClients()

CClientList swift::misc::network::CClientProvider::getClients ( ) const
virtual

clientprovider

Implements swift::misc::network::IClientProvider.

Definition at line 13 of file clientprovider.cpp.

◆ getClientsForCallsigns()

CClientList swift::misc::network::CClientProvider::getClientsForCallsigns ( const aviation::CCallsignSet & callsigns) const
virtual

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

Remarks
This function is thread safe.

Implements swift::misc::network::IClientProvider.

Definition at line 36 of file clientprovider.cpp.

◆ hasClientInfo()

bool swift::misc::network::CClientProvider::hasClientInfo ( const aviation::CCallsign & callsign) const
virtual

Client info for given callsign?

Remarks
This function is thread safe.

Implements swift::misc::network::IClientProvider.

Definition at line 74 of file clientprovider.cpp.

◆ markAsSwiftClient()

void swift::misc::network::CClientProvider::markAsSwiftClient ( const aviation::CCallsign & callsign)
virtual

Mark as other swift client.

Remarks
This function is thread safe.

Implements swift::misc::network::IClientProvider.

Definition at line 186 of file clientprovider.cpp.

◆ removeClient()

int swift::misc::network::CClientProvider::removeClient ( const aviation::CCallsign & callsign)
virtual

Remove client.

Remarks
This function is thread safe.

Implements swift::misc::network::IClientProvider.

Definition at line 126 of file clientprovider.cpp.

◆ setClientGndCapability()

bool swift::misc::network::CClientProvider::setClientGndCapability ( const aviation::CCallsign & callsign,
bool supportGndFlag )
virtual

Set gnd.flag capability.

Remarks
This function is thread safe.

Implements swift::misc::network::IClientProvider.

Definition at line 154 of file clientprovider.cpp.

◆ setClients()

void swift::misc::network::CClientProvider::setClients ( const CClientList & clients)
virtual

Set other clients.

Remarks
This function is thread safe.

Implements swift::misc::network::IClientProvider.

Definition at line 23 of file clientprovider.cpp.

◆ setOtherClient()

bool swift::misc::network::CClientProvider::setOtherClient ( const swift::misc::network::CClient & client)
virtual

Set client for its callsign.

Remarks
This function is thread safe.

Implements swift::misc::network::IClientProvider.

Definition at line 61 of file clientprovider.cpp.

◆ updateOrAddClient()

int swift::misc::network::CClientProvider::updateOrAddClient ( const aviation::CCallsign & callsign,
const CPropertyIndexVariantMap & vm,
bool skipEqualValues = true )
virtual

Update or add a client.

Remarks
This function is thread safe.

Implements swift::misc::network::IClientProvider.

Definition at line 101 of file clientprovider.cpp.


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