8#include "datatypes_impl.h"
9#include "datatypes_p.h"
18class FlightPrivate :
public QSharedData
23 Airport departureAirport;
24 QString departureGate;
25 QString departureTerminal;
26 QDateTime departureTime;
27 Airport arrivalAirport;
28 QString arrivalTerminal;
29 QDateTime arrivalTime;
30 QDateTime boardingTime;
34KITINERARY_MAKE_CLASS(
Flight)
35KITINERARY_MAKE_PROPERTY(
Flight, QString, flightNumber, setFlightNumber)
37KITINERARY_MAKE_PROPERTY(
Flight,
Airport, departureAirport, setDepartureAirport)
38KITINERARY_MAKE_PROPERTY(
Flight, QString, departureGate, setDepartureGate)
39KITINERARY_MAKE_PROPERTY(
Flight, QString, departureTerminal, setDepartureTerminal)
40KITINERARY_MAKE_PROPERTY(
Flight, QDateTime, departureTime, setDepartureTime)
41KITINERARY_MAKE_PROPERTY(
Flight,
Airport, arrivalAirport, setArrivalAirport)
42KITINERARY_MAKE_PROPERTY(
Flight, QDateTime, arrivalTime, setArrivalTime)
43KITINERARY_MAKE_PROPERTY(
Flight, QString, arrivalTerminal, setArrivalTerminal)
44KITINERARY_MAKE_PROPERTY(
Flight, QDateTime, boardingTime, setBoardingTime)
45KITINERARY_MAKE_PROPERTY_OPERATOR(
Flight, QDate, departureDay)
46KITINERARY_MAKE_OPERATOR(
Flight)
50 if (d->departureDay.isValid()) {
51 return d->departureDay;
54 if (d->departureTime.isValid() && d->departureTime.date().year() > 1970) {
55 return d->departureTime.date();
57 if (d->boardingTime.isValid() && d->boardingTime.date().year() > 1970) {
58 return d->boardingTime.date();
63void Flight::setDepartureDay(
const QDate &value)
66 d->departureDay = value;
71#include "moc_flight.cpp"
QDate departureDay
The scheduled day of departure.
Classes for reservation/travel data models, data extraction and data augmentation.