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.value();
260 return &m_trafficReceiverRuntimeError;
269 return m_trafficReceiverSelfTestError.value();
278 return &m_trafficReceiverSelfTestError;
314 void passwordRequest(
const QString& SSID);
323 void passwordStorageRequest(
const QString& SSID,
const QString& password);
399 virtual void setPassword(
const QString& SSID,
const QString& password)
484 QProperty<QString> m_trafficReceiverRuntimeError;
485 QProperty<QString> m_trafficReceiverSelfTestError;
496 void processFLARMSentence(
const QString& sentence);
498 void processFLARMMessageGPGGA(
const QStringList& arguments);
499 void processFLARMMessageGPRMC(
const QStringList& arguments);
500 void processFLARMMessagePFLAA(
const QStringList& arguments);
501 void processFLARMMessagePFLAE(
const QStringList& arguments);
502 static void processFLARMMessagePFLAS(
const QStringList& arguments);
503 void processFLARMMessagePFLAU(
const QStringList& arguments);
504 void processFLARMMessagePFLAV(
const QStringList& arguments);
505 void processFLARMMessagePGRMZ(
const QStringList& arguments);
506 static void processFLARMMessagePXCV(
const QStringList& arguments);
507 QString m_FLARMDataBuffer;
510 bool m_canonical {
false};
511 QString m_connectivityStatus;
512 QString m_errorString;
522 QTimer m_trueAltitudeTimer;
526 QProperty<Units::Distance> m_pressureAltitude;
527 QTimer m_pressureAltitudeTimer;
530 QTimer m_heartbeatTimer;
Connection to a traffic data receiver.
Base class for all traffic receiver data sources.
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.
QString trafficReceiverRuntimeError
String describing the last traffic data receiver runtime error.
void receivingHeartbeatChanged(bool)
Notifier signal.
QBindable< QString > bindableTrafficReceiverSelfTestError()
Getter function for the property with the same name.
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.
QString errorString() const
Getter function for the property with the same name.
void factorWithoutPosition(const Traffic::TrafficFactor_DistanceOnly &factor)
Traffic factor without position.
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.
QBindable< QString > bindableTrafficReceiverRuntimeError()
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.