KItinerary

flight.h
1/*
2 SPDX-FileCopyrightText: 2018 Volker Krause <vkrause@kde.org>
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
14class QDateTime;
15
16namespace KItinerary {
17
18class FlightPrivate;
19
20/** A flight.
21 * @see https://schema.org/Flight
22 * @see https://developers.google.com/gmail/markup/reference/flight-reservation
23 */
24class 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
37 // Google extension for boarding pass data
38 KITINERARY_PROPERTY(QDateTime, boardingTime, setBoardingTime)
39
40 // KDE extensions
41 /** The scheduled day of departure.
42 * This is part of the unique identification of a flight and part of the IATA BCBP data.
43 * This might be different from departureTime, which reflects the actual time of departure
44 * and thus can in case of delays even move to a following day.
45 */
46 KITINERARY_PROPERTY(QDate, departureDay, setDepartureDay)
47
48private:
49 QExplicitlySharedDataPointer<FlightPrivate> d;
50};
51
52}
53
54Q_DECLARE_METATYPE(KItinerary::Flight)
55
A flight.
Definition flight.h:25
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.