25#include "positioning/PositionInfo.h"
26#include "traffic/ConnectionInfo.h"
27#include "traffic/TrafficFactor_DistanceOnly.h"
28#include "traffic/TrafficFactor_WithPosition.h"
29#include "traffic/Warning.h"
182 return m_connectivityStatus;
197 return m_errorString;
204 [[nodiscard]]
virtual QString
icon()
const = 0;
218 return &m_pressureAltitude;
227 return m_receivingHeartbeat.value();
236 return &m_receivingHeartbeat;
251 return m_trafficReceiverRuntimeError;
260 return m_trafficReceiverSelfTestError;
296 void passwordRequest(
const QString& SSID);
305 void passwordStorageRequest(
const QString& SSID,
const QString& password);
387 virtual void setPassword(
const QString& SSID,
const QString& password)
493 void processFLARMSentence(
const QString& sentence);
495 void processFLARMMessageGPGGA(
const QStringList& arguments);
496 void processFLARMMessageGPRMC(
const QStringList& arguments);
497 void processFLARMMessagePFLAA(
const QStringList& arguments);
498 void processFLARMMessagePFLAE(
const QStringList& arguments);
499 static void processFLARMMessagePFLAS(
const QStringList& arguments);
500 void processFLARMMessagePFLAU(
const QStringList& arguments);
501 void processFLARMMessagePFLAV(
const QStringList& arguments);
502 void processFLARMMessagePGRMZ(
const QStringList& arguments);
503 static void processFLARMMessagePXCV(
const QStringList& arguments);
504 QString m_FLARMDataBuffer;
507 bool m_canonical {
false};
508 QString m_connectivityStatus;
509 QString m_errorString;
510 QString m_trafficReceiverRuntimeError;
511 QString m_trafficReceiverSelfTestError;
521 QTimer m_trueAltitudeTimer;
525 QProperty<Units::Distance> m_pressureAltitude;
526 QTimer m_pressureAltitudeTimer;
529 QTimer m_heartbeatTimer;
Connection to a traffic data receiver.
Base class for all traffic receiver data sources.
void trafficReceiverSelfTestErrorChanged()
Notifier signal.
virtual QString dataFormat() const =0
Getter function for the property with the same name.
QString icon
Icon that can be used to represent the connection in a GUI.
bool receivingHeartbeat
Heartbeat indicator.
bool receivingHeartbeat() const
Getter function for the property with the same name.
QString trafficReceiverRuntimeError() const
Getter function for the property with the same name.
void processAPRS(const QString &data)
Process APRS-IS data.
TrafficDataSource_Abstract(bool isCanonical, QObject *parent)
Default constructor.
void errorStringChanged(QString newError)
Notifier signal.
void connectivityStatusChanged(QString newStatus)
Notifier signal.
QString trafficReceiverSelfTestError() const
Getter function for the property with the same name.
void processXGPSString(const QByteArray &data)
Process one XGPS string.
QString connectivityStatus() const
Getter function for the property with the same name.
QString dataFormat
Data format.
virtual Traffic::ConnectionInfo connectionInfo() const
Getter function for the property with the same name.
void setReceivingHeartbeat(bool newReceivingHeartbeat)
Setter method for the property with the same name.
void setErrorString(const QString &newErrorString=QString())
Setter function for the property with the same name.
virtual void setPassword(const QString &SSID, const QString &password)
Set password.
void warning(const Traffic::Warning &warning)
Traffic warning.
bool canonical
Canonicity.
void resetReceivingHeartbeat()
Resetter method for the property with the same name.
Units::Distance pressureAltitude
Pressure altitude.
void processGDLMessage(const QByteArray &message)
Process one GDL90 message.
void trafficReceiverHwVersion(QString result)
Traffic receiver hardware version.
void factorWithPosition(const Traffic::TrafficFactor_WithPosition &factor)
Traffic factor with position.
Units::Distance pressureAltitude() const
Getter method for property with the same name.
void setTrafficReceiverSelfTestError(const QString &newErrorString)
Setter function for the property with the same name.
QString trafficReceiverRuntimeError
String describing the last traffic data receiver runtime error.
void receivingHeartbeatChanged(bool)
Notifier signal.
virtual void connectToTrafficReceiver()=0
Start attempt to connect to traffic receiver.
QBindable< bool > bindableReceivingHeartbeat() const
Getter function for the property with the same name.
void processFLARMData(const QString &data)
Process FLARM/NMEA data.
virtual QString icon() const =0
Getter function for the property with the same name.
Traffic::ConnectionInfo connectionInfo
Connection Info.
QBindable< Units::Distance > bindablePressureAltitude() const
Getter method for property with the same name.
QString connectivityStatus
Connectivity status.
void setPressureAltitude(Units::Distance newPressureAltitude)
Setter function for the property with the same name.
virtual void disconnectFromTrafficReceiver()=0
Disconnect from traffic receiver.
void setConnectivityStatus(const QString &newConnectivityStatus)
Setter function for the property with the same name.
void trafficReceiverSwVersion(QString result)
Traffic receiver software version.
QString errorString
String describing the last socket error.
void setTrafficReceiverRuntimeError(const QString &newErrorString)
Setter function for the property with the same name.
QString errorString() const
Getter function for the property with the same name.
void factorWithoutPosition(const Traffic::TrafficFactor_DistanceOnly &factor)
Traffic factor without position.
void trafficReceiverRuntimeErrorChanged()
Notifier signal.
void positionUpdated(Positioning::PositionInfo pInfo)
Position info.
QString trafficReceiverSelfTestError
String describing the last traffic data receiver self-test error.
void trafficReceiverObVersion(QString result)
Traffic receiver obstacle database version.
virtual QString sourceName() const =0
Getter function for the property with the same name.
QString sourceName
Source name.
Traffic factor where only distance is known.
Traffic factor whose precise position is known.
Convenience class for distance computations.
Conversion between units used in aviation.