KItinerary

traintrip.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 TrainTripPrivate;
19
20/** A train trip.
21 * @see https://schema.org/TrainTrip
22 */
23class 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
44private:
45 QExplicitlySharedDataPointer<TrainTripPrivate> d;
46};
47
48}
49
50Q_DECLARE_METATYPE(KItinerary::TrainTrip)
51
Train station.
Definition place.h:126
A train trip.
Definition traintrip.h:24
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 Fri Jun 7 2024 11:52:32 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.