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 #include "bustrip.h" 0008 #include "datatypes_p.h" 0009 0010 #include <QDateTime> 0011 0012 using namespace KItinerary; 0013 0014 namespace KItinerary { 0015 0016 class BusTripPrivate : public QSharedData 0017 { 0018 public: 0019 QString arrivalPlatform; 0020 BusStation arrivalBusStop; 0021 QDateTime arrivalTime; 0022 QString departurePlatform; 0023 BusStation departureBusStop; 0024 QDateTime departureTime; 0025 QString busName; 0026 QString busNumber; 0027 Organization provider; 0028 }; 0029 0030 KITINERARY_MAKE_CLASS(BusTrip) 0031 KITINERARY_MAKE_PROPERTY(BusTrip, QString, arrivalPlatform, setArrivalPlatform) 0032 KITINERARY_MAKE_PROPERTY(BusTrip, BusStation, arrivalBusStop, setArrivalBusStop) 0033 KITINERARY_MAKE_PROPERTY(BusTrip, QDateTime, arrivalTime, setArrivalTime) 0034 KITINERARY_MAKE_PROPERTY(BusTrip, QString, departurePlatform, setDeparturePlatform) 0035 KITINERARY_MAKE_PROPERTY(BusTrip, BusStation, departureBusStop, setDepartureBusStop) 0036 KITINERARY_MAKE_PROPERTY(BusTrip, QDateTime, departureTime, setDepartureTime) 0037 KITINERARY_MAKE_PROPERTY(BusTrip, QString, busName, setBusName) 0038 KITINERARY_MAKE_PROPERTY(BusTrip, QString, busNumber, setBusNumber) 0039 KITINERARY_MAKE_PROPERTY(BusTrip, Organization, provider, setProvider) 0040 KITINERARY_MAKE_OPERATOR(BusTrip) 0041 0042 } 0043 0044 #include "moc_bustrip.cpp"