KItinerary::Rct2Ticket
#include <rct2ticket.h>
Public Types | |
enum | Type { Transport , TransportReservation , Reservation , Upgrade , RailPass , Unknown } |
Public Member Functions | |
Rct2Ticket (const Rct2Ticket &) | |
Rct2Ticket (const Uic9183TicketLayout &layout) | |
QString | coachNumber () const |
QString | currency () const |
QDate | firstDayOfValidity () const |
bool | isValid () const |
Rct2Ticket & | operator= (const Rct2Ticket &) |
QString | outboundArrivalStation () const |
QDateTime | outboundArrivalTime () const |
QString | outboundClass () const |
QString | outboundDepartureStation () const |
QDateTime | outboundDepartureTime () const |
QString | passengerName () const |
double | price () const |
QString | returnArrivalStation () const |
QDateTime | returnArrivalTime () const |
QString | returnClass () const |
QString | returnDepartureStation () const |
QDateTime | returnDepartureTime () const |
QString | seatNumber () const |
void | setContextDate (const QDateTime &contextDt) |
QString | title () const |
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
Type of RCT2 ticket.
- See also
- ERA TAP TSI Annex B.6.
Enumerator | |
---|---|
Transport | Non-integrated Reservation Ticket (NRT) |
TransportReservation | Integration Reservation Ticket (IRT) |
Reservation | Reservation Only Document (RES) |
Upgrade | Update Document (UPG) |
RailPass | Rail Pass Ticket (RPT) |
Unknown | ticket type could not be detected, or ticket type not supported yet |
Definition at line 69 of file rct2ticket.h.
Property Documentation
◆ coachNumber
|
read |
Definition at line 43 of file rct2ticket.h.
◆ currency
|
read |
Definition at line 46 of file rct2ticket.h.
◆ firstDayOfValidity
|
read |
Definition at line 25 of file rct2ticket.h.
◆ outboundArrivalStation
|
read |
Definition at line 33 of file rct2ticket.h.
◆ outboundArrivalTime
|
read |
Definition at line 31 of file rct2ticket.h.
◆ outboundClass
|
read |
Definition at line 34 of file rct2ticket.h.
◆ outboundDepartureStation
|
read |
Definition at line 32 of file rct2ticket.h.
◆ outboundDepartureTime
|
read |
Definition at line 30 of file rct2ticket.h.
◆ passengerName
|
read |
Definition at line 28 of file rct2ticket.h.
◆ price
|
read |
Definition at line 47 of file rct2ticket.h.
◆ returnArrivalStation
|
read |
Definition at line 39 of file rct2ticket.h.
◆ returnArrivalTime
|
read |
Definition at line 37 of file rct2ticket.h.
◆ returnClass
|
read |
Definition at line 40 of file rct2ticket.h.
◆ returnDepartureStation
|
read |
Definition at line 38 of file rct2ticket.h.
◆ returnDepartureTime
|
read |
Definition at line 36 of file rct2ticket.h.
◆ seatNumber
|
read |
Definition at line 44 of file rct2ticket.h.
◆ title
|
read |
Definition at line 27 of file rct2ticket.h.
◆ trainNumber
|
read |
Definition at line 42 of file rct2ticket.h.
◆ type
|
read |
Definition at line 26 of file rct2ticket.h.
Constructor & Destructor Documentation
◆ Rct2Ticket() [1/2]
Rct2Ticket::Rct2Ticket | ( | ) |
Definition at line 109 of file rct2ticket.cpp.
◆ Rct2Ticket() [2/2]
Rct2Ticket::Rct2Ticket | ( | const Uic9183TicketLayout & | layout | ) |
Parse RCT2 ticket information from a U_TLAY layout block.
Definition at line 114 of file rct2ticket.cpp.
Member Function Documentation
◆ coachNumber()
QString Rct2Ticket::coachNumber | ( | ) | const |
Coach number (for reservation tickets).
Definition at line 333 of file rct2ticket.cpp.
◆ currency()
QString Rct2Ticket::currency | ( | ) | const |
Currency used for the price value.
Definition at line 362 of file rct2ticket.cpp.
◆ firstDayOfValidity()
QDate Rct2Ticket::firstDayOfValidity | ( | ) | const |
First day the ticket is valid.
Definition at line 135 of file rct2ticket.cpp.
◆ isValid()
bool Rct2Ticket::isValid | ( | ) | const |
Returns whether this is a valid RCT2 ticket layout block.
Definition at line 124 of file rct2ticket.cpp.
◆ outboundArrivalStation()
QString Rct2Ticket::outboundArrivalStation | ( | ) | const |
Arrival station of the outbound segment.
Definition at line 260 of file rct2ticket.cpp.
◆ outboundArrivalTime()
QDateTime Rct2Ticket::outboundArrivalTime | ( | ) | const |
Arrival time of the outbound segment.
Definition at line 228 of file rct2ticket.cpp.
◆ outboundClass()
QString Rct2Ticket::outboundClass | ( | ) | const |
Class of the outbound segment.
Definition at line 265 of file rct2ticket.cpp.
◆ outboundDepartureStation()
QString Rct2Ticket::outboundDepartureStation | ( | ) | const |
Departure station of the outbound segment.
Definition at line 246 of file rct2ticket.cpp.
◆ outboundDepartureTime()
QDateTime Rct2Ticket::outboundDepartureTime | ( | ) | const |
Departure time of the outbound segment.
Definition at line 223 of file rct2ticket.cpp.
◆ passengerName()
QString Rct2Ticket::passengerName | ( | ) | const |
Name of the passenger this ticket is for.
Definition at line 216 of file rct2ticket.cpp.
◆ price()
double Rct2Ticket::price | ( | ) | const |
Price of the ticket.
Definition at line 370 of file rct2ticket.cpp.
◆ returnArrivalStation()
QString Rct2Ticket::returnArrivalStation | ( | ) | const |
Arrival station of the return segment, if present.
Definition at line 290 of file rct2ticket.cpp.
◆ returnArrivalTime()
QDateTime Rct2Ticket::returnArrivalTime | ( | ) | const |
Arrival time of the return segment, if present.
Definition at line 275 of file rct2ticket.cpp.
◆ returnClass()
QString Rct2Ticket::returnClass | ( | ) | const |
Class of the return segment, if present.
Definition at line 295 of file rct2ticket.cpp.
◆ returnDepartureStation()
QString Rct2Ticket::returnDepartureStation | ( | ) | const |
Departure station of the return segment, if present.
Definition at line 284 of file rct2ticket.cpp.
◆ returnDepartureTime()
QDateTime Rct2Ticket::returnDepartureTime | ( | ) | const |
Departure time of the return segment, if present.
Definition at line 270 of file rct2ticket.cpp.
◆ seatNumber()
QString Rct2Ticket::seatNumber | ( | ) | const |
Seat number (for reservation tickets).
Definition at line 343 of file rct2ticket.cpp.
◆ setContextDate()
void Rct2Ticket::setContextDate | ( | const QDateTime & | contextDt | ) |
Date/time this ticket was first encountered, to recover possibly missing year numbers.
Definition at line 130 of file rct2ticket.cpp.
◆ title()
QString Rct2Ticket::title | ( | ) | const |
Name or title of the ticket.
Definition at line 199 of file rct2ticket.cpp.
◆ trainNumber()
QString Rct2Ticket::trainNumber | ( | ) | const |
Train number (for reservation tickets).
Definition at line 300 of file rct2ticket.cpp.
◆ type()
Rct2Ticket::Type Rct2Ticket::type | ( | ) | const |
Returns the ticket type.
Definition at line 165 of file rct2ticket.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.