KItinerary::SSBv2Ticket
#include <ssbv2ticket.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 | departureTime |
int | firstDayOfValidityDay |
int | issuerCode |
QString | issuerPNRNumber |
int | lastDayOfValidityDay |
int | numberOfAdultPassengers |
int | numberOfChildPassengers |
int | numberOfTickets |
int | overbookingIndicator |
int | publicKeyVersion |
int | railwayCarrierCode |
QByteArray | rawData |
int | rct2TypeIndicator |
QString | reference |
quint64 | reservationReference |
int | seatNumber |
int | specimen |
int | ticketType |
int | trainNumber |
int | version |
QString | viaStations |
Public Member Functions | |
SSBv2Ticket (const QByteArray &data) | |
Q_INVOKABLE QDate | firstDayOfValidity (const QDateTime &contextDate=QDateTime::currentDateTime()) const |
bool | isValid () const |
Q_INVOKABLE QDate | lastDayOfValidity (const QDateTime &contextDate=QDateTime::currentDateTime()) 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 2).
- See also
- ERA TAP TSI TD B.12 - ยง15 Appendix B - SSB - old version
Definition at line 20 of file ssbv2ticket.h.
Property Documentation
◆ arrivalStationAlpha
|
read |
Definition at line 39 of file ssbv2ticket.h.
◆ arrivalStationNum
|
read |
Definition at line 38 of file ssbv2ticket.h.
◆ arrivalStationType
|
read |
Definition at line 37 of file ssbv2ticket.h.
◆ berthNumber
|
read |
Definition at line 46 of file ssbv2ticket.h.
◆ classOfTransport
|
read |
Definition at line 43 of file ssbv2ticket.h.
◆ coachNumber
|
read |
Definition at line 44 of file ssbv2ticket.h.
◆ customerNumber
|
read |
Definition at line 33 of file ssbv2ticket.h.
◆ customerNumberType
|
read |
Definition at line 32 of file ssbv2ticket.h.
◆ departureStationAlpha
|
read |
Definition at line 36 of file ssbv2ticket.h.
◆ departureStationNum
|
read |
Definition at line 35 of file ssbv2ticket.h.
◆ departureStationType
|
read |
Definition at line 34 of file ssbv2ticket.h.
◆ departureTime
|
read |
Definition at line 40 of file ssbv2ticket.h.
◆ firstDayOfValidityDay
|
read |
Definition at line 30 of file ssbv2ticket.h.
◆ issuerCode
|
read |
Definition at line 24 of file ssbv2ticket.h.
◆ issuerPNRNumber
|
read |
Definition at line 48 of file ssbv2ticket.h.
◆ lastDayOfValidityDay
|
read |
Definition at line 31 of file ssbv2ticket.h.
◆ numberOfAdultPassengers
|
read |
Definition at line 28 of file ssbv2ticket.h.
◆ numberOfChildPassengers
|
read |
Definition at line 29 of file ssbv2ticket.h.
◆ numberOfTickets
|
read |
Definition at line 27 of file ssbv2ticket.h.
◆ overbookingIndicator
|
read |
Definition at line 47 of file ssbv2ticket.h.
◆ publicKeyVersion
|
read |
Definition at line 25 of file ssbv2ticket.h.
◆ railwayCarrierCode
|
read |
Definition at line 52 of file ssbv2ticket.h.
◆ rawData
|
read |
Definition at line 55 of file ssbv2ticket.h.
◆ rct2TypeIndicator
|
read |
Definition at line 26 of file ssbv2ticket.h.
◆ reference
|
read |
Definition at line 53 of file ssbv2ticket.h.
◆ reservationReference
|
read |
Definition at line 42 of file ssbv2ticket.h.
◆ seatNumber
|
read |
Definition at line 45 of file ssbv2ticket.h.
◆ specimen
|
read |
Definition at line 50 of file ssbv2ticket.h.
◆ ticketType
|
read |
Definition at line 49 of file ssbv2ticket.h.
◆ trainNumber
|
read |
Definition at line 41 of file ssbv2ticket.h.
◆ version
|
read |
Definition at line 23 of file ssbv2ticket.h.
◆ viaStations
|
read |
Definition at line 51 of file ssbv2ticket.h.
Constructor & Destructor Documentation
◆ SSBv2Ticket()
|
explicit |
Definition at line 21 of file ssbv2ticket.cpp.
Member Function Documentation
◆ firstDayOfValidity()
QDate SSBv2Ticket::firstDayOfValidity | ( | const QDateTime & | contextDate = QDateTime::currentDateTime() | ) | const |
First day of validity.
Definition at line 55 of file ssbv2ticket.cpp.
◆ isValid()
bool SSBv2Ticket::isValid | ( | ) | const |
Returns true
if this is a valid SSB ticket.
Definition at line 42 of file ssbv2ticket.cpp.
◆ lastDayOfValidity()
QDate SSBv2Ticket::lastDayOfValidity | ( | const QDateTime & | contextDate = QDateTime::currentDateTime() | ) | const |
Last day of validity.
Definition at line 63 of file ssbv2ticket.cpp.
◆ maybeSSB()
|
static |
Returns true
if data
might be an ERA SSB ticket.
Definition at line 47 of file ssbv2ticket.cpp.
◆ rawData()
QByteArray SSBv2Ticket::rawData | ( | ) | const |
Raw barcode data.
Definition at line 71 of file ssbv2ticket.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:45:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.