KItinerary

traintrip.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 TrainTripPrivate;
19 
20 /** A train trip.
21  * @see https://schema.org/TrainTrip
22  */
23 class KITINERARY_EXPORT TrainTrip
24 {
25  KITINERARY_GADGET(TrainTrip)
26  KITINERARY_PROPERTY(QString, arrivalPlatform, setArrivalPlatform)
27  KITINERARY_PROPERTY(KItinerary::TrainStation, arrivalStation, setArrivalStation)
28  KITINERARY_PROPERTY(QDateTime, arrivalTime, setArrivalTime)
29  KITINERARY_PROPERTY(QString, departurePlatform, setDeparturePlatform)
30  KITINERARY_PROPERTY(KItinerary::TrainStation, departureStation, setDepartureStation)
31  KITINERARY_PROPERTY(QDateTime, departureTime, setDepartureTime)
32  KITINERARY_PROPERTY(QString, trainName, setTrainName)
33  KITINERARY_PROPERTY(QString, trainNumber, setTrainNumber)
34  KITINERARY_PROPERTY(KItinerary::Organization, provider, setProvider)
35 
36  // KDE extensions
37  /** The scheduled day of departure.
38  * This is needed for unbound train reservations where we don't know the
39  * exact travel details yet.
40  * @see Flight
41  */
42  KITINERARY_PROPERTY(QDate, departureDay, setDepartureDay)
43 
44 private:
45  QExplicitlySharedDataPointer<TrainTripPrivate> d;
46 };
47 
48 }
49 
50 Q_DECLARE_METATYPE(KItinerary::TrainTrip)
51 
Classes for reservation/travel data models, data extraction and data augmentation.
Train station.
Definition: place.h:111
An organization.
Definition: organization.h:30
A train trip.
Definition: traintrip.h:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Oct 15 2021 23:17:19 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.