26#include "traffic/TrafficDataSource_Abstract.h"
28using namespace Qt::Literals::StringLiterals;
67 [[nodiscard]] QString
dataFormat()
const override {
return u
"FLARM/NMEA"_s; }
76 [[nodiscard]] QString
icon()
const override {
return u
"/icons/material/ic_file_download.svg"_s; }
87 return tr(
"Simulator file %1").arg(simulatorFile.fileName());
109 void readFromSimulatorStream();
112 void updateProperties();
117 QTextStream textStream;
121 QTextStream simulatorTextStream;
122 QTimer simulatorTimer;
TrafficDataSource_Abstract(bool isCanonical, QObject *parent)
Default constructor.
TrafficDataSource_File(bool isCanonical, const QString &fileName, QObject *parent)
Default constructor.
void disconnectFromTrafficReceiver() override
Disconnect from traffic receiver.
QString sourceName() const override
Getter function for the property with the same name.
static auto containsFLARMSimulationData(const QString &fileName) -> bool
Reads file and checks if the file contains FLARM simulation data.
void connectToTrafficReceiver() override
Start attempt to connect to traffic receiver.
QString dataFormat() const override
Getter function for the property with the same name.
QString icon() const override
Getter function for the property with the same name.