KItinerary

bustrip.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 namespace KItinerary {
15 
16 class BusTripPrivate;
17 
18 /** A bus trip.
19  * @see https://schema.org/BusTrip
20  */
21 class KITINERARY_EXPORT BusTrip
22 {
23  KITINERARY_GADGET(BusTrip)
24  KITINERARY_PROPERTY(QString, arrivalPlatform, setArrivalPlatform) // ### is this used? it's not in the schema
25  KITINERARY_PROPERTY(KItinerary::BusStation, arrivalBusStop, setArrivalBusStop)
26  KITINERARY_PROPERTY(QDateTime, arrivalTime, setArrivalTime)
27  KITINERARY_PROPERTY(QString, departurePlatform, setDeparturePlatform) // ### not in the schema
28  KITINERARY_PROPERTY(KItinerary::BusStation, departureBusStop, setDepartureBusStop)
29  KITINERARY_PROPERTY(QDateTime, departureTime, setDepartureTime)
30  KITINERARY_PROPERTY(QString, busName, setBusName)
31  KITINERARY_PROPERTY(QString, busNumber, setBusNumber)
32  KITINERARY_PROPERTY(KItinerary::Organization, provider, setProvider)
33 
34 private:
36 };
37 
38 }
39 
40 Q_DECLARE_METATYPE(KItinerary::BusTrip)
41 
Classes for reservation/travel data models, data extraction and data augmentation.
A bus trip.
Definition: bustrip.h:21
An organization.
Definition: organization.h:30
Bus station.
Definition: place.h:119
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.