KItinerary::SSBv1Ticket
#include <ssbv1ticket.h>
Properties | |
QString | arrivalStationAlpha |
int | arrivalStationNum |
int | arrivalStationType |
QString | berthNumber |
int | classOfTransport |
int | coachNumber |
quint64 | customerNumber |
int | customerNumberType |
QString | departureStationAlpha |
int | departureStationNum |
int | departureStationType |
int | departureTimeSlot |
int | firstDayOfValidityDay |
int | issuerCode |
QString | issuerPNRNumber |
int | lastDayOfValidityDay |
int | numberOfAdultPassengers |
int | numberOfChildPassengers |
int | numberOfTickets |
int | overbookingIndicator |
QByteArray | rawData |
int | rct2TypeIndicator |
quint64 | reservationReference |
int | seatNumber |
int | specimen |
int | ticketType |
int | trainNumber |
int | version |
QString | viaStations |
Public Member Functions | |
SSBv1Ticket (const QByteArray &data) | |
Q_INVOKABLE QDateTime | departureTime (const QDateTime &contextDate=QDateTime::currentDateTime()) const |
Q_INVOKABLE QDate | firstDayOfValidity (const QDateTime &contextDate=QDateTime::currentDateTime()) const |
bool | isValid () const |
QByteArray | rawData () const |
Static Public Member Functions | |
static bool | maybeSSB (const QByteArray &data) |
Additional Inherited Members | |
Protected Member Functions inherited from KItinerary::SSBTicketBase | |
Q_INVOKABLE quint64 | readNumber (int start, int length) const |
Q_INVOKABLE QString | readString (int start, int length) const |
Static Protected Member Functions inherited from KItinerary::SSBTicketBase | |
static QDate | dayNumberToDate (int days, const QDateTime &context) |
Protected Attributes inherited from KItinerary::SSBTicketBase | |
QByteArray | m_data |
Detailed Description
ERA SSB ticket barcode (version 1).
- See also
- ERA TAP TSI Annex B.6 - Appendix C.1
Definition at line 20 of file ssbv1ticket.h.
Property Documentation
◆ arrivalStationAlpha
|
read |
Definition at line 39 of file ssbv1ticket.h.
◆ arrivalStationNum
|
read |
Definition at line 38 of file ssbv1ticket.h.
◆ arrivalStationType
|
read |
Definition at line 37 of file ssbv1ticket.h.
◆ berthNumber
|
read |
Definition at line 50 of file ssbv1ticket.h.
◆ classOfTransport
|
read |
ERA/TD/2009-14/INT: PASSENGER CODE LIST TO TAP TSI - §B.5.24 - Class Possible values are: 1 (1st), 2 (2nd), C (Club), P (Superior), T (Tourist)
Definition at line 47 of file ssbv1ticket.h.
◆ coachNumber
|
read |
Definition at line 48 of file ssbv1ticket.h.
◆ customerNumber
|
read |
Definition at line 33 of file ssbv1ticket.h.
◆ customerNumberType
|
read |
Definition at line 32 of file ssbv1ticket.h.
◆ departureStationAlpha
|
read |
Definition at line 36 of file ssbv1ticket.h.
◆ departureStationNum
|
read |
Definition at line 35 of file ssbv1ticket.h.
◆ departureStationType
|
read |
Definition at line 34 of file ssbv1ticket.h.
◆ departureTimeSlot
|
read |
departure time encoded as 48 30min time slots
Definition at line 41 of file ssbv1ticket.h.
◆ firstDayOfValidityDay
|
read |
Days since Jan 01.
Definition at line 30 of file ssbv1ticket.h.
◆ issuerCode
|
read |
Definition at line 24 of file ssbv1ticket.h.
◆ issuerPNRNumber
|
read |
Definition at line 52 of file ssbv1ticket.h.
◆ lastDayOfValidityDay
|
read |
Definition at line 31 of file ssbv1ticket.h.
◆ numberOfAdultPassengers
|
read |
Definition at line 27 of file ssbv1ticket.h.
◆ numberOfChildPassengers
|
read |
Definition at line 28 of file ssbv1ticket.h.
◆ numberOfTickets
|
read |
Definition at line 26 of file ssbv1ticket.h.
◆ overbookingIndicator
|
read |
Definition at line 51 of file ssbv1ticket.h.
◆ rawData
|
read |
Definition at line 57 of file ssbv1ticket.h.
◆ rct2TypeIndicator
|
read |
Definition at line 25 of file ssbv1ticket.h.
◆ reservationReference
|
read |
Definition at line 43 of file ssbv1ticket.h.
◆ seatNumber
|
read |
Definition at line 49 of file ssbv1ticket.h.
◆ specimen
|
read |
Definition at line 54 of file ssbv1ticket.h.
◆ ticketType
|
read |
Definition at line 53 of file ssbv1ticket.h.
◆ trainNumber
|
read |
Definition at line 42 of file ssbv1ticket.h.
◆ version
|
read |
Definition at line 23 of file ssbv1ticket.h.
◆ viaStations
|
read |
Definition at line 55 of file ssbv1ticket.h.
Constructor & Destructor Documentation
◆ SSBv1Ticket()
|
explicit |
Definition at line 23 of file ssbv1ticket.cpp.
Member Function Documentation
◆ departureTime()
QDateTime SSBv1Ticket::departureTime | ( | const QDateTime & | contextDate = QDateTime::currentDateTime() | ) | const |
Decoded departure time slot.
Definition at line 55 of file ssbv1ticket.cpp.
◆ firstDayOfValidity()
QDate SSBv1Ticket::firstDayOfValidity | ( | const QDateTime & | contextDate = QDateTime::currentDateTime() | ) | const |
First day of validity.
Definition at line 47 of file ssbv1ticket.cpp.
◆ isValid()
bool SSBv1Ticket::isValid | ( | ) | const |
Returns true
if this is a valid SSB ticket.
Definition at line 34 of file ssbv1ticket.cpp.
◆ maybeSSB()
|
static |
Returns true
if data
might be an ERA SSB ticket.
Definition at line 39 of file ssbv1ticket.cpp.
◆ rawData()
QByteArray SSBv1Ticket::rawData | ( | ) | const |
Raw barcode data.
Definition at line 65 of file ssbv1ticket.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.