7#include "reservation.h"
8#include "datatypes_p.h"
21class ReservationPrivate :
public QSharedData
23 KITINERARY_PRIVATE_BASE_GADGET(Reservation)
25 QString reservationNumber;
26 QVariant reservationFor;
27 QVariant reservedTicket;
30 QString pkpassPassTypeIdentifier;
31 QString pkpassSerialNumber;
33 QVariantList potentialAction;
34 QDateTime modifiedTime;
35 QVariantList subjectOf;
37 ProgramMembership programMembershipUsed;
38 double totalPrice = NAN;
39 QString priceCurrency;
43KITINERARY_MAKE_PROPERTY(
Reservation, QString, reservationNumber, setReservationNumber)
44KITINERARY_MAKE_PROPERTY(
Reservation, QVariant, reservationFor, setReservationFor)
45KITINERARY_MAKE_PROPERTY(
Reservation, QVariant, reservedTicket, setReservedTicket)
46KITINERARY_MAKE_PROPERTY(
Reservation, QVariant, underName, setUnderName)
47KITINERARY_MAKE_PROPERTY(
Reservation, QUrl, url, setUrl)
48KITINERARY_MAKE_PROPERTY(
Reservation, QString, pkpassPassTypeIdentifier, setPkpassPassTypeIdentifier)
49KITINERARY_MAKE_PROPERTY(
Reservation, QString, pkpassSerialNumber, setPkpassSerialNumber)
51KITINERARY_MAKE_PROPERTY(
Reservation, QVariantList, potentialAction, setPotentialAction)
52KITINERARY_MAKE_PROPERTY(
Reservation, QDateTime, modifiedTime, setModifiedTime)
53KITINERARY_MAKE_PROPERTY(
Reservation, QVariantList, subjectOf, setSubjectOf)
56KITINERARY_MAKE_PROPERTY(
Reservation,
double, totalPrice, setTotalPrice)
57KITINERARY_MAKE_PROPERTY(
Reservation, QString, priceCurrency, setPriceCurrency)
60class LodgingReservationPrivate :
public ReservationPrivate
62 KITINERARY_PRIVATE_GADGET(LodgingReservation)
64 QDateTime checkinTime;
65 QDateTime checkoutTime;
73class FlightReservationPrivate :
public ReservationPrivate
75 KITINERARY_PRIVATE_GADGET(FlightReservation)
77 QString passengerSequenceNumber;
79 QString boardingGroup;
83KITINERARY_MAKE_PROPERTY(
FlightReservation, QString, passengerSequenceNumber, setPassengerSequenceNumber)
84KITINERARY_MAKE_PROPERTY(
FlightReservation, QString, airplaneSeat, setAirplaneSeat)
85KITINERARY_MAKE_PROPERTY(
FlightReservation, QString, boardingGroup, setBoardingGroup)
88class TrainReservationPrivate :
public ReservationPrivate
90 KITINERARY_PRIVATE_GADGET(TrainReservation)
95class BusReservationPrivate :
public ReservationPrivate
97 KITINERARY_PRIVATE_GADGET(BusReservation)
102class FoodEstablishmentReservationPrivate :
public ReservationPrivate
104 KITINERARY_PRIVATE_GADGET(FoodEstablishmentReservation)
116class EventReservationPrivate :
public ReservationPrivate
118 KITINERARY_PRIVATE_GADGET(EventReservation)
123class RentalCarReservationPrivate :
public ReservationPrivate
125 KITINERARY_PRIVATE_GADGET(RentalCarReservation)
127 QDateTime dropoffTime;
128 QDateTime pickupTime;
129 Place pickupLocation;
130 Place dropoffLocation;
140class TaxiReservationPrivate :
public ReservationPrivate
142 KITINERARY_PRIVATE_GADGET(TaxiReservation)
144 QDateTime pickupTime;
145 Place pickupLocation;
148KITINERARY_MAKE_PROPERTY(
TaxiReservation, QDateTime, pickupTime, setPickupTime)
153class BoatReservationPrivate :
public ReservationPrivate
155 KITINERARY_PRIVATE_GADGET(BoatReservation)
168#include "moc_reservation.cpp"
A boat or ferry reservation.
A restaurant reservation.
A frequent traveler, bonus points or discount scheme program membership.
A Rental Car reservation.
Abstract base class for reservations.
ReservationStatus
Reservation status enum.
Classes for reservation/travel data models, data extraction and data augmentation.