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/TrafficFactorData.h"
30#include "traffic/Warning.h"
197 return m_connectivityStatus;
212 return m_errorString;
219 [[nodiscard]]
virtual QString
icon()
const = 0;
227 return m_positionInfo.value();
236 return &m_positionInfo;
251 return &m_pressureAltitude;
260 return m_receivingHeartbeat.value();
269 return &m_receivingHeartbeat;
284 return m_trafficReceiverRuntimeError.value();
293 return &m_trafficReceiverRuntimeError;
302 return m_trafficReceiverSelfTestError.value();
311 return &m_trafficReceiverSelfTestError;
442 virtual void setPassword(
const QString& SSID,
const QString& password)
539 QProperty<QString> m_trafficReceiverRuntimeError;
540 QProperty<QString> m_trafficReceiverSelfTestError;
541 QProperty<Traffic::ConnectionInfo> m_connectionInfo;
552 void processFLARMSentence(
const QString& sentence);
554 void processFLARMMessageGxGGA(
const QStringList& arguments);
555 void processFLARMMessageGxRMC(
const QStringList& arguments);
556 void processFLARMMessagePFLAA(
const QStringList& arguments);
557 void processFLARMMessagePFLAE(
const QStringList& arguments);
558 static void processFLARMMessagePFLAS(
const QStringList& arguments);
559 void processFLARMMessagePFLAU(
const QStringList& arguments);
560 void processFLARMMessagePFLAV(
const QStringList& arguments);
561 void processFLARMMessagePGRMZ(
const QStringList& arguments);
562 void processFLARMMessagePXCV(
const QStringList& arguments);
563 QString m_FLARMDataBuffer;
566 bool m_canonical =
false;
567 QString m_connectivityStatus;
568 QString m_errorString;
578 QTimer m_trueAltitudeTimer;
582 QProperty<Units::Distance> m_pressureAltitude;
583 QTimer m_pressureAltitudeTimer;
587 QTimer m_heartbeatTimer;
590 QProperty<Positioning::PositionInfo> m_positionInfo;
591 QTimer m_positionInfoTimer;
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.
Positioning::PositionInfo positionInfo
Position information.
Positioning::PositionInfo positionInfo() const
Getter method for 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.
QBindable< Traffic::ConnectionInfo > bindableConnectionInfo() const
Getter function for the property with the same name.
TrafficDataSource_Abstract(bool isCanonical, QObject *parent)
Default constructor.
void errorStringChanged(QString newError)
Notifier signal.
void connectivityStatusChanged(QString newStatus)
Notifier signal.
Traffic::ConnectionInfo connectionInfo() const
Getter function for the property with the same name.
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.
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.
Units::Distance pressureAltitude() const
Getter method for property with the same name.
void setPositionInfo(const Positioning::PositionInfo &info)
Setter function for the property with the same name.
QString trafficReceiverRuntimeError
String describing the last traffic data receiver runtime error.
void dataReceived(QString data)
Indicates new data has arrived, can be used in the GUI for monitoring purposes.
QBindable< QString > bindableTrafficReceiverSelfTestError()
Getter function for the property with the same name.
void passwordStorageRequest(const QString &SSID, const QString &password)
Password storage request.
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 factorWithoutPosition(const Traffic::TrafficFactorData_DistanceOnly &factor)
Traffic factor without position.
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.
void passwordRequest(const QString &SSID)
Password request.
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.
QBindable< Positioning::PositionInfo > bindablePositionInfo() const
Getter method for property with the same name.
QString errorString
String describing the last socket error.
void factorWithPosition(const Traffic::TrafficFactorData_WithPosition &factor)
Traffic factor with position.
QString errorString() const
Getter function for the property with the same name.
QString trafficReceiverSelfTestError
String describing the last traffic data receiver self-test error.
void trafficReceiverObVersion(QString result)
Traffic receiver obstacle database version.
void receivingHeartbeatChanged(bool newReceivingHeartbeat)
Notifier signal.
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.
Convenience class for distance computations.
Conversion between units used in aviation.
Plain-data record of a traffic factor whose position is not known.
Plain-data record of a traffic factor whose precise position is known.