KItinerary

bustrip.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
14namespace KItinerary {
15
16class BusTripPrivate;
17
18/** A bus trip.
19 * @see https://schema.org/BusTrip
20 */
21class 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
34private:
36};
37
38}
39
40Q_DECLARE_METATYPE(KItinerary::BusTrip)
41
Bus station.
Definition place.h:136
A bus trip.
Definition bustrip.h:22
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 Nov 22 2024 12:00:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.