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

Client provider dummy for testing. More...

#include <clientprovider.h>

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

Static Public Member Functions

static CClientProviderDummy * instance ()
 Dummy instance.

Additional Inherited Members

Public Member Functions inherited from swift::misc::network::CClientProvider
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.
Protected Member Functions inherited from swift::misc::IProvider
 IProvider ()
 Constructor.

Detailed Description

Client provider dummy for testing.

Definition at line 167 of file clientprovider.h.

Member Function Documentation

◆ instance()

CClientProviderDummy * swift::misc::network::CClientProviderDummy::instance ( )
static

Dummy instance.

Definition at line 285 of file clientprovider.cpp.


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