19 Q_PROPERTY(uint icaoAddress READ icaoAddress CONSTANT)
20 Q_PROPERTY(QString callsign READ callsign NOTIFY callsignChanged)
21 Q_PROPERTY(QGeoCoordinate coordinate READ coordinate NOTIFY coordinateChanged)
22 Q_PROPERTY(
double altitude READ altitude NOTIFY altitudeChanged)
23 Q_PROPERTY(
double heading READ heading NOTIFY headingChanged)
24 Q_PROPERTY(
double velocity READ velocity NOTIFY velocityChanged)
25 Q_PROPERTY(
double verticalVel READ verticalVel NOTIFY verticalVelChanged)
26 Q_PROPERTY(uint16_t squawk READ squawk NOTIFY squawkChanged)
27 Q_PROPERTY(
bool alert READ alert NOTIFY alertChanged)
33 uint32_t icaoAddress()
const {
return _info.icaoAddress; }
34 QString callsign()
const {
return _info.callsign; }
35 QGeoCoordinate coordinate()
const {
return _info.location; }
36 double altitude()
const {
return _info.location.altitude(); }
37 double heading()
const {
return _info.heading; }
38 double velocity()
const {
return _info.velocity; }
39 double verticalVel()
const {
return _info.verticalVel; }
40 uint16_t squawk()
const {
return _info.squawk; }
41 bool alert()
const {
return _info.alert; }
42 bool expired()
const {
return _lastUpdateTimer.hasExpired(_expirationTimeoutMs); }
57 QElapsedTimer _lastUpdateTimer;
59 static constexpr qint64 _expirationTimeoutMs = 120000;