3#include <QtCore/QLoggingCategory>
4#include <QtCore/QObject>
5#include <QtNetwork/QHostAddress>
25 explicit ADSBTCPLink(
const QHostAddress &hostAddress, quint16 port = 30003, QObject *parent =
nullptr);
52 void _parseLine(
const QString &line);
69 QHostAddress _hostAddress;
70 quint16 _port = 30003;
72 QTcpSocket *_socket =
nullptr;
73 QTimer *_processTimer =
nullptr;
74 QStringList _lineBuffer;
76 static constexpr int _processInterval = 50;
77 static constexpr int _maxLinesToProcess = 100;
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
bool init()
Attempts connection to a host.
void errorOccurred(const QString &errorMsg, bool stopped=false)
~ADSBTCPLink()
Destroys the ADSBTCPLink object.
void adsbVehicleUpdate(const ADSB::VehicleInfo_t &vehicleInfo)