KItinerary

bustrip.cpp
1/*
2 SPDX-FileCopyrightText: 2018 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "bustrip.h"
8#include "datatypes_p.h"
9
10#include <QDateTime>
11
12using namespace KItinerary;
13
14namespace KItinerary {
15
16class BusTripPrivate : public QSharedData
17{
18public:
19 QString arrivalPlatform;
20 BusStation arrivalBusStop;
21 QDateTime arrivalTime;
22 QString departurePlatform;
23 BusStation departureBusStop;
24 QDateTime departureTime;
25 QString busName;
26 QString busNumber;
27 Organization provider;
28};
29
30KITINERARY_MAKE_CLASS(BusTrip)
31KITINERARY_MAKE_PROPERTY(BusTrip, QString, arrivalPlatform, setArrivalPlatform)
32KITINERARY_MAKE_PROPERTY(BusTrip, BusStation, arrivalBusStop, setArrivalBusStop)
33KITINERARY_MAKE_PROPERTY(BusTrip, QDateTime, arrivalTime, setArrivalTime)
34KITINERARY_MAKE_PROPERTY(BusTrip, QString, departurePlatform, setDeparturePlatform)
35KITINERARY_MAKE_PROPERTY(BusTrip, BusStation, departureBusStop, setDepartureBusStop)
36KITINERARY_MAKE_PROPERTY(BusTrip, QDateTime, departureTime, setDepartureTime)
37KITINERARY_MAKE_PROPERTY(BusTrip, QString, busName, setBusName)
38KITINERARY_MAKE_PROPERTY(BusTrip, QString, busNumber, setBusNumber)
39KITINERARY_MAKE_PROPERTY(BusTrip, Organization, provider, setProvider)
40KITINERARY_MAKE_OPERATOR(BusTrip)
41
42}
43
44#include "moc_bustrip.cpp"
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 Mon Nov 18 2024 12:09:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.