File indexing completed on 2024-12-29 04:49:56

0001 /*
0002     SPDX-FileCopyrightText: 2021 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 "place.h"
0012 
0013 class QDateTime;
0014 
0015 namespace KItinerary {
0016 
0017 class BoatTripPrivate;
0018 
0019 /** A boat or ferry trip.
0020  *  @see https://schema.org/BoatTrip
0021  */
0022 class KITINERARY_EXPORT BoatTrip
0023 {
0024     KITINERARY_GADGET(BoatTrip)
0025     KITINERARY_PROPERTY(QString, name, setName)
0026     KITINERARY_PROPERTY(KItinerary::BoatTerminal, arrivalBoatTerminal, setArrivalBoatTerminal)
0027     KITINERARY_PROPERTY(QDateTime, arrivalTime, setArrivalTime)
0028     KITINERARY_PROPERTY(KItinerary::BoatTerminal, departureBoatTerminal, setDepartureBoatTerminal)
0029     KITINERARY_PROPERTY(QDateTime, departureTime, setDepartureTime)
0030 
0031 private:
0032     QExplicitlySharedDataPointer<BoatTripPrivate> d;
0033 };
0034 
0035 }
0036 
0037 Q_DECLARE_METATYPE(KItinerary::BoatTrip)
0038