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
34 // KDE extensions
35 /** The scheduled day of departure.
36 * This is needed for unbound train reservations where we don't know the
37 * exact travel details yet.
38 * @see Flight
39 */
40 KITINERARY_PROPERTY(QDate, departureDay, setDepartureDay)
41
42private:
43 QExplicitlySharedDataPointer<BusTripPrivate> d;
44};
45
46}
47
48Q_DECLARE_METATYPE(KItinerary::BusTrip)
49
Bus station.
Definition place.h:136
A bus trip.
Definition bustrip.h:22
QDate departureDay
The scheduled day of departure.
Definition bustrip.h:40
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-2025 The KDE developers.
Generated on Fri Feb 28 2025 11:55:13 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.