KItinerary::SSBv3Ticket
#include <ssbv3ticket.h>
Public Member Functions | |
SSBv3Ticket (const QByteArray &data) | |
Q_INVOKABLE QDate | issueDate (const QDateTime &contextDate=QDateTime::currentDateTime()) const |
bool | isValid () const |
QByteArray | rawData () const |
Q_INVOKABLE QDate | type1DepartureDay (const QDateTime &contextDate=QDateTime::currentDateTime()) const |
Q_INVOKABLE QDate | type2ValidFrom (const QDateTime &contextDate=QDateTime::currentDateTime()) const |
Q_INVOKABLE QDate | type2ValidUntil (const QDateTime &contextDate=QDateTime::currentDateTime()) 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 3).
- See also
- ERA TAP TSI TD B.12 Digital Security Elements For Rail Passenger Ticketing - ยง7 SSB - Small Structured Barcode
Definition at line 20 of file ssbv3ticket.h.
Property Documentation
◆ classOfTravel
|
read |
Definition at line 33 of file ssbv3ticket.h.
◆ id
|
read |
Definition at line 26 of file ssbv3ticket.h.
◆ issuerCode
|
read |
Definition at line 25 of file ssbv3ticket.h.
◆ issuingDay
|
read |
Definition at line 36 of file ssbv3ticket.h.
◆ numberOfAdultPassengers
|
read |
Definition at line 30 of file ssbv3ticket.h.
◆ numberOfChildPassengers
|
read |
Definition at line 31 of file ssbv3ticket.h.
◆ rawData
|
read |
Definition at line 104 of file ssbv3ticket.h.
◆ specimen
|
read |
Definition at line 32 of file ssbv3ticket.h.
◆ tcn
|
read |
Definition at line 34 of file ssbv3ticket.h.
◆ ticketTypeCode
|
read |
Definition at line 27 of file ssbv3ticket.h.
◆ type1ArrivalStationAlpha
|
read |
Definition at line 45 of file ssbv3ticket.h.
◆ type1ArrivalStationNum
|
read |
Definition at line 44 of file ssbv3ticket.h.
◆ type1CoachNumber
|
read |
Definition at line 49 of file ssbv3ticket.h.
◆ type1DepartureDate
|
read |
Definition at line 46 of file ssbv3ticket.h.
◆ type1DepartureStationAlpha
|
read |
Definition at line 43 of file ssbv3ticket.h.
◆ type1DepartureStationNum
|
read |
Definition at line 42 of file ssbv3ticket.h.
◆ type1DepartureTime
|
read |
Definition at line 47 of file ssbv3ticket.h.
◆ type1InformationMessages
|
read |
Definition at line 52 of file ssbv3ticket.h.
◆ type1OpenText
|
read |
Definition at line 53 of file ssbv3ticket.h.
◆ type1OverbookingIndicator
|
read |
Definition at line 51 of file ssbv3ticket.h.
◆ type1SeatNumber
|
read |
Definition at line 50 of file ssbv3ticket.h.
◆ type1StationCodeListType
|
read |
Definition at line 41 of file ssbv3ticket.h.
◆ type1StationCodeNumericOrAlpha
|
read |
Definition at line 40 of file ssbv3ticket.h.
◆ type1SubTicketType
|
read |
Definition at line 39 of file ssbv3ticket.h.
◆ type1TrainNumber
|
read |
Definition at line 48 of file ssbv3ticket.h.
◆ type2ArrivalStationAlpha
|
read |
Definition at line 64 of file ssbv3ticket.h.
◆ type2ArrivalStationNum
|
read |
Definition at line 63 of file ssbv3ticket.h.
◆ type2DepartureStationAlpha
|
read |
Definition at line 62 of file ssbv3ticket.h.
◆ type2DepartureStationNum
|
read |
Definition at line 61 of file ssbv3ticket.h.
◆ type2FirstDayOfValidity
|
read |
Definition at line 57 of file ssbv3ticket.h.
◆ type2InformationMessages
|
read |
Definition at line 65 of file ssbv3ticket.h.
◆ type2LastDayOfValidity
|
read |
Definition at line 58 of file ssbv3ticket.h.
◆ type2OpenText
|
read |
Definition at line 66 of file ssbv3ticket.h.
◆ type2ReturnJourneyFlag
|
read |
Definition at line 56 of file ssbv3ticket.h.
◆ type2StationCodeListType
|
read |
Definition at line 60 of file ssbv3ticket.h.
◆ type2StationCodeNumericOrAlpha
|
read |
Definition at line 59 of file ssbv3ticket.h.
◆ type3ArrivalStationAlpha
|
read |
Definition at line 77 of file ssbv3ticket.h.
◆ type3ArrivalStationNum
|
read |
Definition at line 76 of file ssbv3ticket.h.
◆ type3CountermarkNumber
|
read |
Definition at line 79 of file ssbv3ticket.h.
◆ type3DepartureStationAlpha
|
read |
Definition at line 75 of file ssbv3ticket.h.
◆ type3DepartureStationNum
|
read |
Definition at line 74 of file ssbv3ticket.h.
◆ type3FirstDayOfValidity
|
read |
Definition at line 70 of file ssbv3ticket.h.
◆ type3InformationMessages
|
read |
Definition at line 80 of file ssbv3ticket.h.
◆ type3LastDayOfValidity
|
read |
Definition at line 71 of file ssbv3ticket.h.
◆ type3NameOfGroupLeader
|
read |
Definition at line 78 of file ssbv3ticket.h.
◆ type3OpenText
|
read |
Definition at line 81 of file ssbv3ticket.h.
◆ type3ReturnJourneyFlag
|
read |
Definition at line 69 of file ssbv3ticket.h.
◆ type3StationCodeListType
|
read |
Definition at line 73 of file ssbv3ticket.h.
◆ type3StationCodeNumericOrAlpha
|
read |
Definition at line 72 of file ssbv3ticket.h.
◆ type4CountryCode1
|
read |
Definition at line 88 of file ssbv3ticket.h.
◆ type4CountryCode2
|
read |
Definition at line 89 of file ssbv3ticket.h.
◆ type4CountryCode3
|
read |
Definition at line 90 of file ssbv3ticket.h.
◆ type4CountryCode4
|
read |
Definition at line 91 of file ssbv3ticket.h.
◆ type4FirstDayOfValidity
|
read |
Definition at line 85 of file ssbv3ticket.h.
◆ type4InformationMessages
|
read |
Definition at line 93 of file ssbv3ticket.h.
◆ type4LastDayOfValidity
|
read |
Definition at line 86 of file ssbv3ticket.h.
◆ type4NumberOfDaysOfTravelAllowed
|
read |
Definition at line 87 of file ssbv3ticket.h.
◆ type4OpenText
|
read |
Definition at line 94 of file ssbv3ticket.h.
◆ type4RPTSubTicketType
|
read |
Definition at line 84 of file ssbv3ticket.h.
◆ type4SecondPage
|
read |
Definition at line 92 of file ssbv3ticket.h.
◆ version
|
read |
Definition at line 24 of file ssbv3ticket.h.
◆ yearOfIssue
|
read |
Definition at line 35 of file ssbv3ticket.h.
Constructor & Destructor Documentation
◆ SSBv3Ticket()
|
explicit |
Definition at line 24 of file ssbv3ticket.cpp.
Member Function Documentation
◆ issueDate()
QDate SSBv3Ticket::issueDate | ( | const QDateTime & | contextDate = QDateTime::currentDateTime() | ) | const |
Date of issue.
Definition at line 58 of file ssbv3ticket.cpp.
◆ isValid()
bool SSBv3Ticket::isValid | ( | ) | const |
Returns true
if this is a valid SSB ticket.
Definition at line 35 of file ssbv3ticket.cpp.
◆ maybeSSB()
|
static |
Returns true
if data
might be an ERA SSB ticket.
Definition at line 50 of file ssbv3ticket.cpp.
◆ rawData()
QByteArray SSBv3Ticket::rawData | ( | ) | const |
Raw barcode data.
Definition at line 101 of file ssbv3ticket.cpp.
◆ type1DepartureDay()
QDate SSBv3Ticket::type1DepartureDay | ( | const QDateTime & | contextDate = QDateTime::currentDateTime() | ) | const |
Departure day for type 1 (IRT/RES/BOA) tickets.
Definition at line 73 of file ssbv3ticket.cpp.
◆ type2ValidFrom()
QDate SSBv3Ticket::type2ValidFrom | ( | const QDateTime & | contextDate = QDateTime::currentDateTime() | ) | const |
First day of validity for type 2 (NRT) tickets.
Definition at line 83 of file ssbv3ticket.cpp.
◆ type2ValidUntil()
QDate SSBv3Ticket::type2ValidUntil | ( | const QDateTime & | contextDate = QDateTime::currentDateTime() | ) | const |
Last day of validity for type 2 (NRT) tickets.
Definition at line 92 of file ssbv3ticket.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.