swift
Classes | Signals | Public Member Functions | Static Public Member Functions | List of all members
swift::core::fsd::CFSDClient Class Reference

FSD client Todo: Send (interim) data updates automatically Todo Check ':' in FSD messages. Disconnect if there is a wrong one. More...

Inheritance diagram for swift::core::fsd::CFSDClient:
[legend]

Signals

void atisReplyReceived (const swift::misc::aviation::CCallsign &callsign, const swift::misc::aviation::CInformationMessage &atis)
 We received a reply to one of our ATIS queries.
 
void atisLogoffTimeReplyReceived (const swift::misc::aviation::CCallsign &callsign, const QString &zuluTime)
 We received a reply to one of our ATIS queries, containing the controller's planned logoff time.
 
void textMessageSent (const swift::misc::network::CTextMessage &sentMessage)
 We have sent a text message.
 
void connectionStatusChanged (swift::misc::network::CConnectionStatus oldStatus, swift::misc::network::CConnectionStatus newStatus)
 Connection status has been changed.
 
void severeNetworkError (const QString &errorMessage)
 Network error.
 
void killRequestReceived (const QString &reason)
 Kill request (aka kicked)
 
void atcDataUpdateReceived (const swift::misc::aviation::CCallsign &callsign, const swift::misc::physical_quantities::CFrequency &freq, const swift::misc::geo::CCoordinateGeodetic &pos, const swift::misc::physical_quantities::CLength &range)
 Client responses received.
 
void deleteAtcReceived (const QString &cid)
 Client responses received.
 
void deletePilotReceived (const QString &cid)
 Client responses received.
 
void pilotDataUpdateReceived (const swift::misc::aviation::CAircraftSituation &situation, const swift::misc::aviation::CTransponder &transponder)
 Client responses received.
 
void pongReceived (const QString &sender, double elapsedTimeMs)
 Client responses received.
 
void flightPlanReceived (const swift::misc::aviation::CCallsign &callsign, const swift::misc::aviation::CFlightPlan &flightPlan)
 Client responses received.
 
void textMessagesReceived (const swift::misc::network::CTextMessageList &messages)
 Client responses received.
 
void aircraftConfigReceived (const QString &sender, const QJsonObject &config, qint64 currentOffsetTimeMs)
 Client responses received.
 
void validAtcResponseReceived (const QString &callsign, bool isValidAtc)
 Client responses received.
 
void capabilityResponseReceived (const swift::misc::aviation::CCallsign &sender, swift::misc::network::CClient::Capabilities capabilities)
 Client responses received.
 
void com1FrequencyResponseReceived (const QString &sender, const swift::misc::physical_quantities::CFrequency &frequency)
 Client responses received.
 
void realNameResponseReceived (const QString &sender, const QString &realName)
 Client responses received.
 
void serverResponseReceived (const QString &sender, const QString &hostName)
 Client responses received.
 
void planeInformationReceived (const QString &sender, const QString &aircraft, const QString &airline, const QString &livery)
 Client responses received.
 
void customPilotPacketReceived (const QString &sender, const QStringList &data)
 Client responses received.
 
void interimPilotDataUpdatedReceived (const swift::misc::aviation::CAircraftSituation &situation)
 Client responses received.
 
void visualPilotDataUpdateReceived (const swift::misc::aviation::CAircraftSituation &situation)
 Client responses received.
 
void euroscopeSimDataUpdatedReceived (const swift::misc::aviation::CAircraftSituation &situation, const swift::misc::aviation::CAircraftParts &parts, qint64 currentOffsetTimeMs, const QString &model, const QString &livery)
 Client responses received.
 
void rawFsdMessage (const swift::misc::network::CRawFsdMessage &rawFsdMessage)
 Client responses received.
 
void planeInformationFsinnReceived (const swift::misc::aviation::CCallsign &callsign, const QString &airlineIcaoDesignator, const QString &aircraftDesignator, const QString &combinedAircraftType, const QString &modelString)
 Client responses received.
 
void muteRequestReceived (bool mute)
 Client responses received.
 
- Signals inherited from swift::misc::CWorkerBase
void aboutToStart ()
 Emitted when the task is about to start.
 
void finished ()
 Emitted when the task is finished. More...
 

Public Member Functions

 CFSDClient (swift::misc::network::IClientProvider *clientProvider, swift::misc::simulation::IOwnAircraftProvider *ownAircraftProvider, swift::misc::simulation::IRemoteAircraftProvider *remoteAircraftProvider, QObject *owner=nullptr)
 Ctor.
 
const swift::misc::network::CServergetServer () const
 Get the server. More...
 
QStringList getPresetValues () const
 List of all preset values. More...
 
swift::misc::aviation::CCallsign getPresetCallsign () const
 Callsign if any. More...
 
swift::misc::aviation::CCallsign getPresetPartnerCallsign () const
 Partner callsign if any. More...
 
swift::misc::network::CLoginMode getLoginMode () const
 Mode. More...
 
PilotRating getPilotRating () const
 Rating. More...
 
void clearStatistics ()
 Clear the statistics.
 
QString getNetworkStatisticsAsText (bool reset, const QString &separator="\n")
 Text statistics.
 
void printToConsole (bool on)
 Debugging and UNIT tests.
 
void gracefulShutdown ()
 Gracefully shut down FSD client.
 
void setClientName (const QString &clientName)
 Preset functions. More...
 
void setHostApplication (const QString &hostApplication)
 Preset functions. More...
 
void setVersion (int major, int minor)
 Preset functions. More...
 
void setClientCapabilities (Capabilities capabilities)
 Preset functions. More...
 
void setServer (const swift::misc::network::CServer &server)
 Preset functions. More...
 
void setLoginMode (const swift::misc::network::CLoginMode &mode)
 Preset functions. More...
 
void setCallsign (const swift::misc::aviation::CCallsign &callsign)
 Preset functions. More...
 
void setPartnerCallsign (const swift::misc::aviation::CCallsign &callsign)
 Preset functions. More...
 
void setIcaoCodes (const swift::misc::simulation::CSimulatedAircraft &ownAircraft)
 Preset functions. More...
 
void setLiveryAndModelString (const QString &livery, bool sendLiveryString, const QString &modelString, bool sendModelString)
 Preset functions. More...
 
void setSimType (const swift::misc::simulation::CSimulatorInfo &simInfo)
 Preset functions. More...
 
void setSimType (swift::misc::simulation::CSimulatorInfo::Simulator simulator)
 Preset functions. More...
 
void setPilotRating (PilotRating rating)
 Preset functions. More...
 
void setAtcRating (AtcRating rating)
 Preset functions. More...
 
void connectToServer ()
 Connect/disconnect.
 
void disconnectFromServer ()
 Connect/disconnect.
 
void addInterimPositionReceiver (const swift::misc::aviation::CCallsign &receiver)
 Interim positions.
 
void removeInterimPositionReceiver (const swift::misc::aviation::CCallsign &receiver)
 Interim positions.
 
swift::misc::aviation::CCallsignSet getInterimPositionReceivers () const
 Interim pos.receivers.
 
void setInterimPositionReceivers (const swift::misc::aviation::CCallsignSet &interimPositionReceivers)
 Interim pos.receivers.
 
swift::misc::network::CConnectionStatus getConnectionStatus () const
 Connection status.
 
bool isConnected () const
 Connection status.
 
bool isDisconnected () const
 Connection status.
 
bool isPendingConnection () const
 Connection status.
 
bool setStatisticsEnable (bool enabled)
 Statistics enable functions.
 
bool isStatisticsEnabled () const
 Statistics enable functions.
 
- Public Member Functions inherited from swift::misc::CContinuousWorker
 CContinuousWorker (QObject *owner, const QString &name)
 Constructor. More...
 
void start (QThread::Priority priority=QThread::InheritPriority)
 Starts a thread and moves the worker into it.
 
void quit () noexcept final
 Stops the thread the next time around its event loop. The thread and the worker will then be deleted. More...
 
void quitAndWait () noexcept final
 Calls quit() and blocks until the thread is finished. More...
 
bool isEnabled () const
 Enabled (running)? More...
 
const QStringgetName ()
 Name of the worker.
 
const QObjectowner () const
 Owner of the worker.
 
- Public Member Functions inherited from swift::misc::CWorkerBase
 ~CWorkerBase ()
 Destructor.
 
 CWorkerBase (const CWorkerBase &)=delete
 Copy constructor.
 
CWorkerBaseoperator= (const CWorkerBase &)=delete
 Copy assignment.
 
 CWorkerBase (CWorkerBase &&)=delete
 Move constructor.
 
CWorkerBaseoperator= (CWorkerBase &&)=delete
 Move assignment.
 
template<typename T , typename F >
void then (T *context, F functor)
 Connects to a functor or method which will be called when the task is finished. More...
 
template<typename F >
void then (F functor)
 Connects to a functor which will be called when the task is finished. More...
 
bool isFinished () const
 Returns true if the task has finished. More...
 
template<typename F >
void doIfFinished (F functor) const
 Executes some code (in the caller's thread) if the task has finished. More...
 
template<typename F >
void doIfNotFinished (F functor) const
 Executes some code (in the caller's thread) if the task has not finished. More...
 
template<typename F1 , typename F2 >
void doIfFinishedElse (F1 ifFunctor, F2 elseFunctor) const
 Executes some code (in the caller's thread) if the task has finished and some different code if it has not finished. More...
 
void waitForFinished () noexcept
 Blocks until the task is finished. More...
 
void abandon () noexcept
 Notify the task that its result is no longer needed, so it can finish early. More...
 
void abandonAndWait () noexcept
 Convenience to call abandon() followed by waitForFinished().
 
- Public Member Functions inherited from QObject
QBindable< QStringbindableObjectName ()
 
 QObject (QObject *parent)
 
 QT_NO_CONTEXTLESS_CONNECT QT_NO_CONTEXTLESS_CONNECT
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUMS (...)
 
 Q_ENUM_NS (...)
 
 Q_FLAG (...)
 
 Q_FLAGS (...)
 
 Q_FLAG_NS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (QObject *object)
 
qobject_cast (const QObject *object)
 
bool blockSignals (bool block)
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
bool moveToThread (QThread *targetThread)
 
bool setProperty (const char *name, QVariant &&value)
 
bool setProperty (const char *name, const QVariant &value)
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::nanoseconds interval, Qt::TimerType timerType)
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
void installEventFilter (QObject *filterObj)
 
void killTimer (Qt::TimerId id)
 
void killTimer (int id)
 
void objectNameChanged (const QString &objectName)
 
void removeEventFilter (QObject *obj)
 
void setObjectName (QAnyStringView name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
QList< QByteArraydynamicPropertyNames () const const
 
QList< T > findChildren (QAnyStringView name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
QObjectparent () const const
 
QString objectName () const const
 
QThreadthread () const const
 
QVariant property (const char *name) const const
 
findChild (QAnyStringView name, Qt::FindChildOptions options) const const
 
findChild (Qt::FindChildOptions options) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool inherits (const char *className) const const
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
bool signalsBlocked () const const
 
virtual const QMetaObjectmetaObject () const const
 
const QObjectListchildren () const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
- Public Member Functions inherited from swift::misc::network::IEcosystemProvider
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 isLastEcosystem (const CEcosystem &system) const
 Last known ecosystem? More...
 
- Public Member Functions inherited from swift::misc::IProvider
virtual ~IProvider ()=default
 Dtor.
 
 IProvider (const IProvider &)=delete
 Copy constructor.
 
IProvideroperator= (const IProvider &)=delete
 Copy assignment operator.
 
virtual QObjectasQObject ()
 Return as QObject.
 
- Public Member Functions inherited from swift::misc::network::CClientAware
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.
 
- Public Member Functions inherited from swift::misc::simulation::COwnAircraftAware
void setOwnAircraftProvider (IOwnAircraftProvider *provider)
 Set the provider.
 
CSimulatedAircraft getOwnAircraft () const
 Own aircraft. More...
 
aviation::CCallsign getOwnCallsign () const
 Own aircraft's callsign. More...
 
aviation::CComSystem getOwnComSystem (aviation::CComSystem::ComUnit unit) const
 Own aircraft COM unit. More...
 
aviation::CTransponder getOwnTransponder () const
 Own aircraft XPDR. More...
 
swift::misc::geo::CCoordinateGeodetic getOwnAircraftPosition () const
 Own aircraft's position. More...
 
aviation::CAircraftSituation getOwnAircraftSituation () const
 Own aircraft's position. More...
 
aviation::CAircraftParts getOwnAircraftParts () const
 Own aircraft's parts. More...
 
swift::misc::simulation::CAircraftModel getOwnAircraftModel () const
 Own aircraft model. More...
 
swift::misc::physical_quantities::CLength getDistanceToOwnAircraft (const swift::misc::geo::ICoordinateGeodetic &position) const
 Distance to own aircraft. More...
 
bool updateCockpit (const swift::misc::simulation::CSimulatedAircraft &aircraft, const swift::misc::CIdentifier &originator)
 Update cockpit, but only send signals when applicable. More...
 
bool updateCockpit (const aviation::CComSystem &com1, const aviation::CComSystem &com2, const aviation::CTransponder &transponder, const swift::misc::CIdentifier &originator)
 Update cockpit, but only send signals when applicable. More...
 
bool updateActiveComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator)
 Update cockpit, but only send signals when applicable. More...
 
bool updateSelcal (const aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)
 Update cockpit, but only send signals when applicable. More...
 
bool updateOwnCallsign (const aviation::CCallsign &callsign)
 Update aircraft's callsign. More...
 
bool updateOwnIcaoCodes (const aviation::CAircraftIcaoCode &aircraftIcaoData, const aviation::CAirlineIcaoCode &airlineIcaoCode)
 Update ICAO data. More...
 
bool updateOwnModel (const swift::misc::simulation::CAircraftModel &model)
 Update model. More...
 
bool updateOwnSituation (const aviation::CAircraftSituation &situation)
 Update own situation. More...
 
bool updateOwnParts (const aviation::CAircraftParts &parts)
 Update own parts. More...
 
bool updateOwnCG (const physical_quantities::CLength &cg)
 Update own aircraft's CG (aka vertical offset) More...
 
- Public Member Functions inherited from swift::misc::simulation::CRemoteAircraftAware
 ~CRemoteAircraftAware ()=default
 Destructor.
 
CSimulatedAircraftList getAircraftInRange () const
 All remote aircraft. More...
 
bool isAircraftInRange (const aviation::CCallsign &callsign) const
 Is aircraft in range? More...
 
bool isVtolAircraft (const aviation::CCallsign &callsign) const
 Is VTOL aircraft? More...
 
int getAircraftInRangeCount () const
 Count remote aircraft. More...
 
aviation::CCallsignSet getAircraftInRangeCallsigns () const
 Unique callsigns for aircraft in range. More...
 
CSimulatedAircraft getAircraftInRangeForCallsign (const aviation::CCallsign &callsign) const
 Aircraft for callsign. More...
 
CAircraftModel getAircraftInRangeModelForCallsign (const aviation::CCallsign &callsign) const
 Aircraft model for callsign. More...
 
CAirspaceAircraftSnapshot getLatestAirspaceAircraftSnapshot () const
 Current snapshot. More...
 
aviation::CAircraftSituationList remoteAircraftSituations (const aviation::CCallsign &callsign) const
 Rendered aircraft situations (per callsign, time history) More...
 
aviation::CAircraftSituation remoteAircraftSituation (const aviation::CCallsign &callsign, int index) const
 Rendered aircraft situations (per callsign and index) More...
 
aviation::CAircraftSituationList latestRemoteAircraftSituations () const
 Latest aircraft situation for all callsigns. More...
 
aviation::CAircraftSituationList latestOnGroundProviderElevations () const
 Latest aircraft situation "on ground" having a provider elevation. More...
 
int remoteAircraftSituationsCount (const aviation::CCallsign &callsign) const
 Number of remote aircraft situations for callsign. More...
 
aviation::CAircraftPartsList remoteAircraftParts (const aviation::CCallsign &callsign) const
 All parts (per callsign, time history) More...
 
int remoteAircraftPartsCount (const aviation::CCallsign &callsign) const
 All parts (per callsign, time history) More...
 
aviation::CAircraftSituationChangeList remoteAircraftSituationChanges (const aviation::CCallsign &callsign) const
 Aircraft changes. More...
 
aviation::CCallsignSet remoteAircraftSupportingParts () const
 Remote aircraft supporting parts. More...
 
bool isRemoteAircraftSupportingParts (const aviation::CCallsign &callsign) const
 Is remote aircraft supporting parts? More...
 
int getRemoteAircraftSupportingPartsCount () const
 Number of aircraft supporting parts. More...
 
bool updateAircraftEnabled (const aviation::CCallsign &callsign, bool enabledForRendering)
 Enable/disable aircraft and follow up logic like sending signals. More...
 
bool setAircraftEnabledFlag (const aviation::CCallsign &callsign, bool enabledForRendering)
 Just set enable/disable aircraft flag, no further logic. More...
 
bool updateMultipleAircraftEnabled (const aviation::CCallsignSet &callsigns, bool enabledForRendering)
 Enable/disable aircraft. More...
 
bool updateAircraftModel (const aviation::CCallsign &callsign, const CAircraftModel &model, const CIdentifier &originator)
 Change model. More...
 
bool updateAircraftNetworkModel (const aviation::CCallsign &callsign, const CAircraftModel &model, const CIdentifier &originator)
 Change network model. More...
 
bool updateAircraftRendered (const aviation::CCallsign &callsign, bool rendered)
 Set aircraft rendered. More...
 
bool updateMultipleAircraftRendered (const aviation::CCallsignSet &callsigns, bool rendered)
 Set aircraft rendered. More...
 
int updateAircraftGroundElevation (const aviation::CCallsign &callsign, const geo::CElevationPlane &elevation, aviation::CAircraftSituation::GndElevationInfo info, bool *updateAircraftGroundElevation)
 Update the ground elevation. More...
 
bool updateCG (const aviation::CCallsign &callsign, const physical_quantities::CLength &cg)
 Update the CG. More...
 
aviation::CCallsignSet updateCGForModel (const QString &modelString, const physical_quantities::CLength &cg)
 Update the CG for this model string. More...
 
bool updateCGAndModelString (const aviation::CCallsign &callsign, const physical_quantities::CLength &cg, const QString &modelString)
 Update the CG and model string. More...
 
void updateMarkAllAsNotRendered ()
 Mark all as not rendered. More...
 
int aircraftSituationsAdded () const
 Number of situations added. More...
 
int aircraftPartsAdded () const
 Number of parts added. More...
 
qint64 situationsLastModified (const aviation::CCallsign &callsign) const
 When last modified. More...
 
qint64 partsLastModified (const aviation::CCallsign &callsign) const
 When last modified. More...
 
geo::CElevationPlane averageElevationOfNonMovingAircraft (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &range, int minValues=1) const
 Average elevation of aircraft in given range, which are NOT moving. More...
 
void setRemoteAircraftProvider (IRemoteAircraftProvider *remoteAircraftProvider)
 Set remote aircraft provider.
 
IRemoteAircraftProvidergetRemoteAircraftProvider () const
 Get the aircraft provider.
 
- Public Member Functions inherited from swift::misc::simulation::CSimulationEnvironmentAware
void setSimulationEnvironmentProvider (ISimulationEnvironmentProvider *provider)
 Set the provider.
 
geo::CElevationPlane findClosestElevationWithinRange (const geo::ICoordinateGeodetic &reference, const physical_quantities::CLength &range) const
 Find closest elevation (or return NULL) More...
 
geo::CElevationPlane findClosestElevationWithinRangeOrRequest (const geo::ICoordinateGeodetic &reference, const physical_quantities::CLength &range, const aviation::CCallsign &callsign)
 Find closest elevation or request elevation. More...
 
geo::CElevationPlane averageElevationOfOnGroundAircraft (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &range, int minValues, int sufficientValues) const
 Average elevation of "on ground" cached values. More...
 
aviation::CAltitude highestElevation () const
 Highest elevation. More...
 
bool requestElevation (const geo::ICoordinateGeodetic &reference, const aviation::CCallsign &callsign)
 Request elevation, there is no guarantee the requested elevation will be available in the provider. More...
 
bool requestElevation (const aviation::CAircraftSituation &situation)
 Request elevation, there is no guarantee the requested elevation will be available in the provider. More...
 
QPair< int, int > getElevationsFoundMissed () const
 Elevations found/missed statistics. More...
 
QString getElevationsFoundMissedInfo () const
 Elevations found/missed statistics info as string. More...
 
QPair< qint64, qint64 > getElevationRequestTimes () const
 The elevation request times. More...
 
QString getElevationRequestTimesInfo () const
 Elevation request times. More...
 
CSimulatorPluginInfo getSimulatorPluginInfo () const
 Get the represented plugin. More...
 
CSimulatorInfo getSimulatorInfo () const
 Get the represented plugin. More...
 
QString getSimulatorNameAndVersion () const
 Version and simulator details info. More...
 
CAircraftModel getDefaultModel () const
 Default model. More...
 
physical_quantities::CLength getSimulatorCG (const aviation::CCallsign &callsign) const
 Get CG per callsign, NULL if not found. More...
 
physical_quantities::CLength getSimulatorOrDbCG (const aviation::CCallsign &callsign, const physical_quantities::CLength &dbCG) const
 Get CG per callsign, NULL if not found. More...
 
bool hasSimulatorCG (const aviation::CCallsign &callsign) const
 Has a CG? More...
 
bool cleanElevationValues (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &range, bool forced=false)
 Remove cached elevations outside range, "forced" cleans always, otherwise only if max.values are reached. More...
 

Static Public Member Functions

static const QStringListgetLogCategories ()
 Categories.
 
- Static Public Member Functions inherited from swift::misc::CWorkerBase
static const QStringListgetLogCategories ()
 Log categories.
 
static const QSet< CWorkerBase * > & allWorkers ()
 All workers currently existing.
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
void sendClientQueryCom1Freq (const swift::misc::aviation::CCallsign &callsign)
 
void sendClientQueryRealName (const swift::misc::aviation::CCallsign &callsign)
 
void sendClientQueryServer (const swift::misc::aviation::CCallsign &callsign)
 
void sendClientQueryAtis (const swift::misc::aviation::CCallsign &callsign)
 
void sendClientQueryFlightPlan (const swift::misc::aviation::CCallsign &callsign)
 
void sendClientQueryAircraftConfig (const swift::misc::aviation::CCallsign &callsign)
 
void sendTextMessages (const swift::misc::network::CTextMessageList &messages)
 
void sendTextMessage (const swift::misc::network::CTextMessage &message)
 
void sendTextMessage (TextMessageGroups receiverGroup, const QString &message)
 
void sendRadioMessage (const QVector< int > &frequencieskHz, const QString &message)
 
void sendFlightPlan (const swift::misc::aviation::CFlightPlan &flightPlan)
 
void sendPlaneInfoRequest (const swift::misc::aviation::CCallsign &receiver)
 
void sendPlaneInfoRequestFsinn (const swift::misc::aviation::CCallsign &callsign)
 

Additional Inherited Members

- Public Types inherited from QObject
enum  TimerId
 
- Public Attributes inherited from QObject
typedef QObjectList
 
 Invalid
 
- Protected Member Functions inherited from swift::misc::CContinuousWorker
virtual void initialize ()
 Called when the thread is started.
 
virtual void cleanup ()
 Called when the thread is finished.
 
virtual void beforeQuit () noexcept
 Called before quit is called. More...
 
virtual unsigned long waitTimeoutMs () const
 Wait time for quitAndWait, 0 means not waiting.
 
- Protected Member Functions inherited from swift::misc::CWorkerBase
 CWorkerBase ()
 Constructor.
 
bool isAbandoned () const
 For the task to check whether it can finish early. More...
 
bool hasStarted () const
 True if the worker has started.
 
void setStarted ()
 Mark the task as started.
 
void setFinished ()
 Mark the task as finished.
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
virtual void timerEvent (QTimerEvent *event)
 
QObjectsender () const const
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
int senderSignalIndex () const const
 
- Protected Member Functions inherited from swift::misc::network::IEcosystemProvider
bool setCurrentEcosystem (const CEcosystem &ecosystem)
 Set the current system. More...
 
bool setLastEcosystem (const CEcosystem &ecosystem)
 Set the last known system. More...
 
- Protected Member Functions inherited from swift::misc::IProvider
 IProvider ()
 Constructor.
 
- Protected Member Functions inherited from swift::misc::network::CClientAware
 CClientAware ()
 Default constructor.
 
 CClientAware (IClientProvider *clientProvider)
 Constructor.
 
- Protected Member Functions inherited from swift::misc::IProviderAware< IClientProvider >
 IProviderAware (IClientProvider *provider=nullptr)
 Ctor.
 
virtual ~IProviderAware ()=default
 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.
 
- Protected Member Functions inherited from swift::misc::simulation::COwnAircraftAware
 COwnAircraftAware (IOwnAircraftProvider *ownAircraftProvider)
 Constructor.
 
- Protected Member Functions inherited from swift::misc::IProviderAware< IOwnAircraftProvider >
 IProviderAware (IOwnAircraftProvider *provider=nullptr)
 Ctor.
 
virtual ~IProviderAware ()=default
 Dtor.
 
bool hasProvider () const
 Has provider?
 
IOwnAircraftProvider * getProvider () const
 Provider.
 
void setProvider (IOwnAircraftProvider *provider)
 Set the provider. More...
 
IOwnAircraftProvider * provider ()
 Provider.
 
const IOwnAircraftProvider * provider () const
 Const provider.
 
- Protected Member Functions inherited from swift::misc::simulation::CRemoteAircraftAware
 CRemoteAircraftAware ()
 Default constructor.
 
 CRemoteAircraftAware (IRemoteAircraftProvider *remoteAircraftProvider)
 Constructor.
 
- Protected Member Functions inherited from swift::misc::IProviderAware< IRemoteAircraftProvider >
 IProviderAware (IRemoteAircraftProvider *provider=nullptr)
 Ctor.
 
virtual ~IProviderAware ()=default
 Dtor.
 
bool hasProvider () const
 Has provider?
 
IRemoteAircraftProvider * getProvider () const
 Provider.
 
void setProvider (IRemoteAircraftProvider *provider)
 Set the provider. More...
 
IRemoteAircraftProvider * provider ()
 Provider.
 
const IRemoteAircraftProvider * provider () const
 Const provider.
 
- Protected Member Functions inherited from swift::misc::simulation::CSimulationEnvironmentAware
 CSimulationEnvironmentAware ()
 Default constructor.
 
 CSimulationEnvironmentAware (ISimulationEnvironmentProvider *simEnvProvider)
 Constructor.
 
- Protected Member Functions inherited from swift::misc::IProviderAware< ISimulationEnvironmentProvider >
 IProviderAware (ISimulationEnvironmentProvider *provider=nullptr)
 Ctor.
 
virtual ~IProviderAware ()=default
 Dtor.
 
bool hasProvider () const
 Has provider?
 
ISimulationEnvironmentProvider * getProvider () const
 Provider.
 
void setProvider (ISimulationEnvironmentProvider *provider)
 Set the provider. More...
 
ISimulationEnvironmentProvider * provider ()
 Provider.
 
const ISimulationEnvironmentProvider * provider () const
 Const provider.
 
- Properties inherited from QObject
 objectName
 

Detailed Description

FSD client Todo: Send (interim) data updates automatically Todo Check ':' in FSD messages. Disconnect if there is a wrong one.

Definition at line 76 of file fsdclient.h.

Member Function Documentation

◆ getLoginMode()

swift::misc::network::CLoginMode swift::core::fsd::CFSDClient::getLoginMode ( ) const
inline

Mode.

Remarks
This function is thread safe.

Definition at line 189 of file fsdclient.h.

◆ getPilotRating()

PilotRating swift::core::fsd::CFSDClient::getPilotRating ( ) const
inline

Rating.

Remarks
This function is thread safe.

Definition at line 197 of file fsdclient.h.

◆ getPresetCallsign()

swift::misc::aviation::CCallsign swift::core::fsd::CFSDClient::getPresetCallsign ( ) const
inline

Callsign if any.

Remarks
This function is thread safe.

Definition at line 173 of file fsdclient.h.

◆ getPresetPartnerCallsign()

swift::misc::aviation::CCallsign swift::core::fsd::CFSDClient::getPresetPartnerCallsign ( ) const
inline

Partner callsign if any.

Remarks
This function is thread safe.

Definition at line 181 of file fsdclient.h.

◆ getPresetValues()

QStringList swift::core::fsd::CFSDClient::getPresetValues ( ) const

List of all preset values.

Remarks
This function is thread safe.

Definition at line 217 of file fsdclient.cpp.

◆ getServer()

const swift::misc::network::CServer& swift::core::fsd::CFSDClient::getServer ( ) const
inline

Get the server.

Remarks
This function is thread safe.

Definition at line 161 of file fsdclient.h.

◆ sendClientQueryAircraftConfig()

void swift::core::fsd::CFSDClient::sendClientQueryAircraftConfig ( const swift::misc::aviation::CCallsign callsign)
Fixme:
that would be the official string, can this be used?

Definition at line 484 of file fsdclient.cpp.

◆ sendClientQueryAtis()

void swift::core::fsd::CFSDClient::sendClientQueryAtis ( const swift::misc::aviation::CCallsign callsign)
Fixme:
that would be the official string, can this be used?

Definition at line 474 of file fsdclient.cpp.

◆ sendClientQueryCom1Freq()

void swift::core::fsd::CFSDClient::sendClientQueryCom1Freq ( const swift::misc::aviation::CCallsign callsign)
Fixme:
that would be the official string, can this be used?

Definition at line 459 of file fsdclient.cpp.

◆ sendClientQueryFlightPlan()

void swift::core::fsd::CFSDClient::sendClientQueryFlightPlan ( const swift::misc::aviation::CCallsign callsign)
Fixme:
that would be the official string, can this be used?

Definition at line 479 of file fsdclient.cpp.

◆ sendClientQueryRealName()

void swift::core::fsd::CFSDClient::sendClientQueryRealName ( const swift::misc::aviation::CCallsign callsign)
Fixme:
that would be the official string, can this be used?

Definition at line 464 of file fsdclient.cpp.

◆ sendClientQueryServer()

void swift::core::fsd::CFSDClient::sendClientQueryServer ( const swift::misc::aviation::CCallsign callsign)
Fixme:
that would be the official string, can this be used?

Definition at line 469 of file fsdclient.cpp.

◆ sendFlightPlan()

void swift::core::fsd::CFSDClient::sendFlightPlan ( const swift::misc::aviation::CFlightPlan flightPlan)
Fixme:
that would be the official string, can this be used?

Definition at line 668 of file fsdclient.cpp.

◆ sendPlaneInfoRequest()

void swift::core::fsd::CFSDClient::sendPlaneInfoRequest ( const swift::misc::aviation::CCallsign receiver)
Fixme:
that would be the official string, can this be used?

Definition at line 718 of file fsdclient.cpp.

◆ sendPlaneInfoRequestFsinn()

void swift::core::fsd::CFSDClient::sendPlaneInfoRequestFsinn ( const swift::misc::aviation::CCallsign callsign)
Fixme:
that would be the official string, can this be used?

Definition at line 733 of file fsdclient.cpp.

◆ sendRadioMessage()

void swift::core::fsd::CFSDClient::sendRadioMessage ( const QVector< int > &  frequencieskHz,
const QString message 
)
Fixme:
that would be the official string, can this be used?

Definition at line 655 of file fsdclient.cpp.

◆ sendTextMessage() [1/2]

void swift::core::fsd::CFSDClient::sendTextMessage ( const swift::misc::network::CTextMessage message)
Fixme:
that would be the official string, can this be used?

Definition at line 613 of file fsdclient.cpp.

◆ sendTextMessage() [2/2]

void swift::core::fsd::CFSDClient::sendTextMessage ( TextMessageGroups  receiverGroup,
const QString message 
)
Fixme:
that would be the official string, can this be used?

Definition at line 619 of file fsdclient.cpp.

◆ sendTextMessages()

void swift::core::fsd::CFSDClient::sendTextMessages ( const swift::misc::network::CTextMessageList messages)
Fixme:
that would be the official string, can this be used?

Definition at line 567 of file fsdclient.cpp.

◆ setAtcRating()

void swift::core::fsd::CFSDClient::setAtcRating ( AtcRating  rating)
inline

Preset functions.

Remarks
Necessary functions to setup client. Set them all!
This function is thread safe.

Definition at line 150 of file fsdclient.h.

◆ setCallsign()

void swift::core::fsd::CFSDClient::setCallsign ( const swift::misc::aviation::CCallsign callsign)

Preset functions.

Remarks
Necessary functions to setup client. Set them all!
This function is thread safe.

Definition at line 159 of file fsdclient.cpp.

◆ setClientCapabilities()

void swift::core::fsd::CFSDClient::setClientCapabilities ( Capabilities  capabilities)
inline

Preset functions.

Remarks
Necessary functions to setup client. Set them all!
This function is thread safe.

Definition at line 123 of file fsdclient.h.

◆ setClientName()

void swift::core::fsd::CFSDClient::setClientName ( const QString clientName)
inline

Preset functions.

Remarks
Necessary functions to setup client. Set them all!
This function is thread safe.

Definition at line 102 of file fsdclient.h.

◆ setHostApplication()

void swift::core::fsd::CFSDClient::setHostApplication ( const QString hostApplication)
inline

Preset functions.

Remarks
Necessary functions to setup client. Set them all!
This function is thread safe.

Definition at line 107 of file fsdclient.h.

◆ setIcaoCodes()

void swift::core::fsd::CFSDClient::setIcaoCodes ( const swift::misc::simulation::CSimulatedAircraft ownAircraft)

Preset functions.

Remarks
Necessary functions to setup client. Set them all!
This function is thread safe.

Definition at line 169 of file fsdclient.cpp.

◆ setLiveryAndModelString()

void swift::core::fsd::CFSDClient::setLiveryAndModelString ( const QString livery,
bool  sendLiveryString,
const QString modelString,
bool  sendModelString 
)

Preset functions.

Remarks
Necessary functions to setup client. Set them all!
This function is thread safe.

Definition at line 188 of file fsdclient.cpp.

◆ setLoginMode()

void swift::core::fsd::CFSDClient::setLoginMode ( const swift::misc::network::CLoginMode mode)
inline

Preset functions.

Remarks
Necessary functions to setup client. Set them all!
This function is thread safe.

Definition at line 129 of file fsdclient.h.

◆ setPartnerCallsign()

void swift::core::fsd::CFSDClient::setPartnerCallsign ( const swift::misc::aviation::CCallsign callsign)
inline

Preset functions.

Remarks
Necessary functions to setup client. Set them all!
This function is thread safe.

Definition at line 135 of file fsdclient.h.

◆ setPilotRating()

void swift::core::fsd::CFSDClient::setPilotRating ( PilotRating  rating)
inline

Preset functions.

Remarks
Necessary functions to setup client. Set them all!
This function is thread safe.

Definition at line 145 of file fsdclient.h.

◆ setServer()

void swift::core::fsd::CFSDClient::setServer ( const swift::misc::network::CServer server)

Preset functions.

Remarks
Necessary functions to setup client. Set them all!
This function is thread safe.

Definition at line 140 of file fsdclient.cpp.

◆ setSimType() [1/2]

void swift::core::fsd::CFSDClient::setSimType ( const swift::misc::simulation::CSimulatorInfo simInfo)

Preset functions.

Remarks
Necessary functions to setup client. Set them all!
This function is thread safe.

Definition at line 198 of file fsdclient.cpp.

◆ setSimType() [2/2]

void swift::core::fsd::CFSDClient::setSimType ( swift::misc::simulation::CSimulatorInfo::Simulator  simulator)

Preset functions.

Remarks
Necessary functions to setup client. Set them all!
This function is thread safe.

Definition at line 200 of file fsdclient.cpp.

◆ setVersion()

void swift::core::fsd::CFSDClient::setVersion ( int  major,
int  minor 
)
inline

Preset functions.

Remarks
Necessary functions to setup client. Set them all!
This function is thread safe.

Definition at line 112 of file fsdclient.h.


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