FSD client Todo: Send (interim) data updates automatically Todo Check ':' in FSD messages. Disconnect if there is a wrong one.
More...
|
|
| CFSDClient (swift::misc::network::IClientProvider *clientProvider, swift::misc::simulation::IOwnAircraftProvider *ownAircraftProvider, swift::misc::simulation::IRemoteAircraftProvider *remoteAircraftProvider, QObject *owner=nullptr) |
| | Ctor.
|
| |
| const swift::misc::network::CServer & | getServer () 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.
|
| |
| | 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 QString & | getName () |
| | Name of the worker.
|
| |
|
const QObject * | owner () const |
| | Owner of the worker.
|
| |
|
| ~CWorkerBase () |
| | Destructor.
|
| |
|
| CWorkerBase (const CWorkerBase &)=delete |
| | Copy constructor.
|
| |
|
CWorkerBase & | operator= (const CWorkerBase &)=delete |
| | Copy assignment.
|
| |
|
| CWorkerBase (CWorkerBase &&)=delete |
| | Move constructor.
|
| |
|
CWorkerBase & | operator= (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().
|
| |
|
QBindable< QString > | bindableObjectName () |
| |
|
| 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 |
| |
|
T | qobject_cast (QObject *object) |
| |
|
T | 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< QByteArray > | dynamicPropertyNames () 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 |
| |
|
QObject * | parent () const const |
| |
|
QString | objectName () const const |
| |
|
QThread * | thread () const const |
| |
|
QVariant | property (const char *name) const const |
| |
|
T | findChild (QAnyStringView name, Qt::FindChildOptions options) const const |
| |
|
T | 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 QMetaObject * | metaObject () const const |
| |
|
const QObjectList & | children () const const |
| |
|
void | dumpObjectInfo () const const |
| |
|
void | dumpObjectTree () const const |
| |
| 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...
|
| |
|
virtual | ~IProvider ()=default |
| | Dtor.
|
| |
|
| IProvider (const IProvider &)=delete |
| | Copy constructor.
|
| |
|
IProvider & | operator= (const IProvider &)=delete |
| | Copy assignment operator.
|
| |
|
virtual QObject * | asQObject () |
| | Return as QObject.
|
| |
| 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.
|
| |
|
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...
|
| |
|
| ~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.
|
| |
|
IRemoteAircraftProvider * | getRemoteAircraftProvider () const |
| | Get the aircraft provider.
|
| |
|
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...
|
| |