|
|
| Flight () |
| | Default constructor — generates a unique identity.
|
| auto | departureICAO () const -> QString |
| | Getter function for property of the same name.
|
| auto | arrivalICAO () const -> QString |
| | Getter function for property of the same name.
|
| auto | offBlockTime () const -> QDateTime |
| | Getter function for property of the same name.
|
| auto | startTime () const -> QDateTime |
| | Getter function for property of the same name.
|
| auto | landingTime () const -> QDateTime |
| | Getter function for property of the same name.
|
| auto | onBlockTime () const -> QDateTime |
| | Getter function for property of the same name.
|
| auto | pilotName () const -> QString |
| | Getter function for property of the same name.
|
| auto | aircraftCallsign () const -> QString |
| | Getter function for property of the same name.
|
| auto | comments () const -> QString |
| | Getter function for property of the same name.
|
| auto | landingCount () const -> int |
| | Getter function for property of the same name.
|
| auto | departureCoordinate () const -> QGeoCoordinate |
| | Coordinate of the departure airport.
|
| auto | arrivalCoordinate () const -> QGeoCoordinate |
| | Coordinate of the arrival airport.
|
| auto | hasTrack () const -> bool |
| | Check if this flight has a recorded GPS track.
|
| auto | trackFile () const -> QString |
| | Get the track file name.
|
| void | setDepartureICAO (const QString &icao) |
| | Setter function for property of the same name.
|
| void | setArrivalICAO (const QString &icao) |
| | Setter function for property of the same name.
|
| void | setOffBlockTime (const QDateTime &dt) |
| | Setter function for property of the same name.
|
| void | setStartTime (const QDateTime &dt) |
| | Setter function for property of the same name.
|
| void | setLandingTime (const QDateTime &dt) |
| | Setter function for property of the same name.
|
| void | setOnBlockTime (const QDateTime &dt) |
| | Setter function for property of the same name.
|
| void | setPilotName (const QString &name) |
| | Setter function for property of the same name.
|
| void | setAircraftCallsign (const QString &callsign) |
| | Setter function for property of the same name.
|
| void | setComments (const QString &text) |
| | Setter function for property of the same name.
|
| void | setLandingCount (int count) |
| | Setter function for property of the same name.
|
| void | setDepartureCoordinate (const QGeoCoordinate &coord) |
| | Set departure coordinate.
|
| void | setArrivalCoordinate (const QGeoCoordinate &coord) |
| | Set arrival coordinate.
|
| void | setTrackFile (const QString &fileName) |
| | Set the track file name.
|
| Q_INVOKABLE Units::Distance | distance () const |
| | Direct distance between departure and arrival airports.
|
| Q_INVOKABLE QString | flightTime () const |
| | Flight duration as a human-readable string (H:MM).
|
| Q_INVOKABLE QString | blockTime () const |
| | Block time as a formatted string.
|
| Q_INVOKABLE qint64 | flightTimeSeconds () const |
| | Flight duration in seconds.
|
| auto | toJSON () const -> QJsonObject |
| | Serialize to JSON.
|
| Q_INVOKABLE bool | operator== (const Flightlog::Flight &other) const |
| | Comparison operator.
|
|
|
QUuid | uuid |
| | Unique identity of this flight entry (stable across sorting and edits).
|
|
QString | departureICAO |
| | ICAO code of the departure airport.
|
|
QString | arrivalICAO |
| | ICAO code of the arrival airport.
|
|
QDateTime | offBlockTime |
| | Off-block time in UTC (optional).
|
|
QDateTime | startTime |
| | Start (takeoff) time in UTC.
|
|
QDateTime | landingTime |
| | Landing time in UTC.
|
|
QDateTime | onBlockTime |
| | On-block time in UTC (optional).
|
|
QString | pilotName |
| | Pilot name (optional).
|
|
QString | aircraftCallsign |
| | Aircraft callsign (e.g. D-KEBE, optional).
|
|
QString | comments |
| | Free-text comments (optional).
|
|
int | landingCount |
| | Number of landings (touch-and-goes + final landing).
|
|
bool | hasTrack |
| | Whether this flight has a recorded track.
|
|
QString | trackFile |
| | Filename of the track file (relative to tracks directory).
|
A single flight log entry.
This class represents a single flight with departure/arrival airports, times, and optional metadata. It can compute the direct distance between departure and arrival, and the flight duration.
Definition at line 40 of file Flight.h.