KItinerary
9#include "kitinerary_export.h"
11#include <QExplicitlySharedDataPointer>
18class Rct2TicketPrivate;
22class KITINERARY_EXPORT Rct2Ticket
25 Q_PROPERTY(
QDate firstDayOfValidity READ firstDayOfValidity)
26 Q_PROPERTY(
Type type READ type)
27 Q_PROPERTY(
QString title READ title)
28 Q_PROPERTY(
QString passengerName READ passengerName)
30 Q_PROPERTY(
QDateTime outboundDepartureTime READ outboundDepartureTime)
31 Q_PROPERTY(
QDateTime outboundArrivalTime READ outboundArrivalTime)
32 Q_PROPERTY(
QString outboundDepartureStation READ outboundDepartureStation)
33 Q_PROPERTY(
QString outboundArrivalStation READ outboundArrivalStation)
34 Q_PROPERTY(
QString outboundClass READ outboundClass)
36 Q_PROPERTY(
QDateTime returnDepartureTime READ returnDepartureTime)
37 Q_PROPERTY(
QDateTime returnArrivalTime READ returnArrivalTime)
38 Q_PROPERTY(
QString returnDepartureStation READ returnDepartureStation)
39 Q_PROPERTY(
QString returnArrivalStation READ returnArrivalStation)
40 Q_PROPERTY(
QString returnClass READ returnClass)
42 Q_PROPERTY(
QString trainNumber READ trainNumber)
43 Q_PROPERTY(
QString coachNumber READ coachNumber)
44 Q_PROPERTY(
QString seatNumber READ seatNumber)
46 Q_PROPERTY(
QString currency READ currency)
47 Q_PROPERTY(
double price READ price)
53 Rct2Ticket(
const Rct2Ticket&);
55 Rct2Ticket& operator=(
const Rct2Ticket&);
64 QDate firstDayOfValidity()
const;
92 QString outboundDepartureStation()
const;
94 QString outboundArrivalStation()
const;
103 QString returnDepartureStation()
const;
105 QString returnArrivalStation()
const;
119 double price()
const;
@ Transport
Non-integrated Reservation Ticket (NRT)
@ RailPass
Rail Pass Ticket (RPT)
@ Upgrade
Update Document (UPG)
@ TransportReservation
Integration Reservation Ticket (IRT)
@ Unknown
ticket type could not be detected, or ticket type not supported yet
@ Reservation
Reservation Only Document (RES)
void setContextDate(const QDateTime &contextDt)
Date/time this ticket was first encountered, to recover possibly missing year numbers.
bool isValid() const
Returns whether this is a valid RCT2 ticket layout block.
Parser for a U_TLAY block in a UIC 918-3 ticket container, such as a ERA TLB ticket.
Classes for reservation/travel data models, data extraction and data augmentation.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:36 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.