KItinerary

flight.h
1 /*
2  SPDX-FileCopyrightText: 2018 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "kitinerary_export.h"
10 #include "datatypes.h"
11 #include "organization.h"
12 #include "place.h"
13 
14 class QDateTime;
15 
16 namespace KItinerary {
17 
18 class FlightPrivate;
19 
20 /** A flight.
21  * @see https://schema.org/Flight
22  * @see https://developers.google.com/gmail/markup/reference/flight-reservation
23  */
24 class KITINERARY_EXPORT Flight
25 {
26  KITINERARY_GADGET(Flight)
27  KITINERARY_PROPERTY(QString, flightNumber, setFlightNumber)
28  KITINERARY_PROPERTY(KItinerary::Airline, airline, setAirline)
29  KITINERARY_PROPERTY(KItinerary::Airport, departureAirport, setDepartureAirport)
30  KITINERARY_PROPERTY(QString, departureGate, setDepartureGate)
31  KITINERARY_PROPERTY(QString, departureTerminal, setDepartureTerminal)
32  KITINERARY_PROPERTY(QDateTime, departureTime, setDepartureTime)
33  KITINERARY_PROPERTY(KItinerary::Airport, arrivalAirport, setArrivalAirport)
34  KITINERARY_PROPERTY(QString, arrivalTerminal, setArrivalTerminal)
35  KITINERARY_PROPERTY(QDateTime, arrivalTime, setArrivalTime)
36  KITINERARY_PROPERTY(KItinerary::Organization, provider, setProvider)
37 
38  // Google extension for boarding pass data
39  KITINERARY_PROPERTY(QDateTime, boardingTime, setBoardingTime)
40 
41  // KDE extensions
42  /** The scheduled day of departure.
43  * This is part of the unique identification of a flight and part of the IATA BCBP data.
44  * This might be different from departureTime, which reflects the actual time of departure
45  * and thus can in case of delays even move to a following day.
46  */
47  KITINERARY_PROPERTY(QDate, departureDay, setDepartureDay)
48 
49 private:
50  QExplicitlySharedDataPointer<FlightPrivate> d;
51 };
52 
53 }
54 
55 Q_DECLARE_METATYPE(KItinerary::Flight)
56 
An airline.
Definition: organization.h:55
Classes for reservation/travel data models, data extraction and data augmentation.
A flight.
Definition: flight.h:24
An organization.
Definition: organization.h:30
Airport.
Definition: place.h:94
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Oct 15 2021 23:17:15 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.