File indexing completed on 2024-12-29 04:49:56
0001 /* 0002 SPDX-FileCopyrightText: 2018 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "kitinerary_export.h" 0010 #include "datatypes.h" 0011 #include "organization.h" 0012 #include "place.h" 0013 0014 namespace KItinerary { 0015 0016 class BusTripPrivate; 0017 0018 /** A bus trip. 0019 * @see https://schema.org/BusTrip 0020 */ 0021 class KITINERARY_EXPORT BusTrip 0022 { 0023 KITINERARY_GADGET(BusTrip) 0024 KITINERARY_PROPERTY(QString, arrivalPlatform, setArrivalPlatform) // ### is this used? it's not in the schema 0025 KITINERARY_PROPERTY(KItinerary::BusStation, arrivalBusStop, setArrivalBusStop) 0026 KITINERARY_PROPERTY(QDateTime, arrivalTime, setArrivalTime) 0027 KITINERARY_PROPERTY(QString, departurePlatform, setDeparturePlatform) // ### not in the schema 0028 KITINERARY_PROPERTY(KItinerary::BusStation, departureBusStop, setDepartureBusStop) 0029 KITINERARY_PROPERTY(QDateTime, departureTime, setDepartureTime) 0030 KITINERARY_PROPERTY(QString, busName, setBusName) 0031 KITINERARY_PROPERTY(QString, busNumber, setBusNumber) 0032 KITINERARY_PROPERTY(KItinerary::Organization, provider, setProvider) 0033 0034 private: 0035 QExplicitlySharedDataPointer<BusTripPrivate> d; 0036 }; 0037 0038 } 0039 0040 Q_DECLARE_METATYPE(KItinerary::BusTrip) 0041