Search for usage in LXR

KItinerary::Rct2Ticket Class Reference

#include <rct2ticket.h>

Public Types

enum  Type {
  Transport, TransportReservation, Reservation, Upgrade,


QString coachNumber
QDate firstDayOfValidity
QString outboundArrivalStation
QDateTime outboundArrivalTime
QString outboundClass
QString outboundDepartureStation
QDateTime outboundDepartureTime
QString passengerName
QString seatNumber
QString trainNumber
Type type

Public Member Functions

 Rct2Ticket (const Uic9183TicketLayout &layout)
 Rct2Ticket (const Rct2Ticket &)
QString coachNumber () const
QDate firstDayOfValidity () const
bool isValid () const
Rct2Ticketoperator= (const Rct2Ticket &)
QString outboundArrivalStation () const
QDateTime outboundArrivalTime () const
QString outboundClass () const
QString outboundDepartureStation () const
QDateTime outboundDepartureTime () const
QString passengerName () const
 Q_ENUM (Type)
QString seatNumber () const
void setContextDate (const QDateTime &contextDt)
QString trainNumber () const
Type type () const

Detailed Description

RCT2 ticket layout payload of an UIC 918.3 ticket token.

Definition at line 22 of file rct2ticket.h.

Member Enumeration Documentation

Type of RCT2 ticket.

See also
ERA TAP TSI Annex B.6.

Non-integrated Reservation Ticket (NRT)


Integration Reservation Ticket (IRT)


Reservation Only Document (RES)


Update Document (UPG)


ticket type could not be detected, or ticket type not supported yet

Definition at line 57 of file rct2ticket.h.

Constructor & Destructor Documentation

Rct2Ticket::Rct2Ticket ( const Uic9183TicketLayout layout)

Parse RCT2 ticket information from a U_TLAY layout block.

Definition at line 102 of file rct2ticket.cpp.

Member Function Documentation

QString KItinerary::Rct2Ticket::coachNumber ( ) const

Coach number (for reservation tickets).

QDate KItinerary::Rct2Ticket::firstDayOfValidity ( ) const

First day the ticket is valid.

bool Rct2Ticket::isValid ( ) const

Returns whether this is a valid RCT2 ticket layout block.

Definition at line 112 of file rct2ticket.cpp.

QString KItinerary::Rct2Ticket::outboundArrivalStation ( ) const

Arrival station of the outbound segment.

QDateTime KItinerary::Rct2Ticket::outboundArrivalTime ( ) const

Arrival time of the outbound segment.

QString KItinerary::Rct2Ticket::outboundClass ( ) const

Class of the outbound segment.

QString KItinerary::Rct2Ticket::outboundDepartureStation ( ) const

Departure station of the outbound segment.

QDateTime KItinerary::Rct2Ticket::outboundDepartureTime ( ) const

Departure time of the outbound segment.

QString KItinerary::Rct2Ticket::passengerName ( ) const

Name of the passenger this ticket is for.

QString KItinerary::Rct2Ticket::seatNumber ( ) const

Seat number (for reservation tickets).

void Rct2Ticket::setContextDate ( const QDateTime contextDt)

Date/time this ticket was first encountered, to recover possibly missing year numbers.

Definition at line 117 of file rct2ticket.cpp.

QString KItinerary::Rct2Ticket::trainNumber ( ) const

Train number (for reservation tickets).

Type KItinerary::Rct2Ticket::type ( ) const

Returns the ticket type.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:06:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.