KItinerary::SSBv3Ticket

Search for usage in LXR

#include <ssbv3ticket.h>

Inheritance diagram for KItinerary::SSBv3Ticket:

Properties

int classOfTravel
 
int id
 
int issuerCode
 
int issuingDay
 
int numberOfAdultPassengers
 
int numberOfChildPassengers
 
QByteArray rawData
 
int specimen
 
QString tcn
 
int ticketTypeCode
 
QString type1ArrivalStationAlpha
 
int type1ArrivalStationNum
 
int type1CoachNumber
 
int type1DepartureDate
 
QString type1DepartureStationAlpha
 
int type1DepartureStationNum
 
int type1DepartureTime
 
int type1InformationMessages
 
QString type1OpenText
 
int type1OverbookingIndicator
 
QString type1SeatNumber
 
int type1StationCodeListType
 
int type1StationCodeNumericOrAlpha
 
int type1SubTicketType
 
QString type1TrainNumber
 
QString type2ArrivalStationAlpha
 
int type2ArrivalStationNum
 
QString type2DepartureStationAlpha
 
int type2DepartureStationNum
 
int type2FirstDayOfValidity
 
int type2InformationMessages
 
int type2LastDayOfValidity
 
QString type2OpenText
 
int type2ReturnJourneyFlag
 
int type2StationCodeListType
 
int type2StationCodeNumericOrAlpha
 
QString type3ArrivalStationAlpha
 
int type3ArrivalStationNum
 
int type3CountermarkNumber
 
QString type3DepartureStationAlpha
 
int type3DepartureStationNum
 
int type3FirstDayOfValidity
 
int type3InformationMessages
 
int type3LastDayOfValidity
 
QString type3NameOfGroupLeader
 
QString type3OpenText
 
int type3ReturnJourneyFlag
 
int type3StationCodeListType
 
int type3StationCodeNumericOrAlpha
 
int type4CountryCode1
 
int type4CountryCode2
 
int type4CountryCode3
 
int type4CountryCode4
 
int type4FirstDayOfValidity
 
int type4InformationMessages
 
int type4LastDayOfValidity
 
int type4NumberOfDaysOfTravelAllowed
 
QString type4OpenText
 
int type4RPTSubTicketType
 
int type4SecondPage
 
int version
 
int yearOfIssue
 

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

int KItinerary::SSBv3Ticket::classOfTravel
read

Definition at line 33 of file ssbv3ticket.h.

◆ id

int KItinerary::SSBv3Ticket::id
read

Definition at line 26 of file ssbv3ticket.h.

◆ issuerCode

int KItinerary::SSBv3Ticket::issuerCode
read

Definition at line 25 of file ssbv3ticket.h.

◆ issuingDay

int KItinerary::SSBv3Ticket::issuingDay
read

Definition at line 36 of file ssbv3ticket.h.

◆ numberOfAdultPassengers

int KItinerary::SSBv3Ticket::numberOfAdultPassengers
read

Definition at line 30 of file ssbv3ticket.h.

◆ numberOfChildPassengers

int KItinerary::SSBv3Ticket::numberOfChildPassengers
read

Definition at line 31 of file ssbv3ticket.h.

◆ rawData

QByteArray KItinerary::SSBv3Ticket::rawData
read

Definition at line 104 of file ssbv3ticket.h.

◆ specimen

int KItinerary::SSBv3Ticket::specimen
read

Definition at line 32 of file ssbv3ticket.h.

◆ tcn

QString KItinerary::SSBv3Ticket::tcn
read

Definition at line 34 of file ssbv3ticket.h.

◆ ticketTypeCode

int KItinerary::SSBv3Ticket::ticketTypeCode
read

Definition at line 27 of file ssbv3ticket.h.

◆ type1ArrivalStationAlpha

QString KItinerary::SSBv3Ticket::type1ArrivalStationAlpha
read

Definition at line 45 of file ssbv3ticket.h.

◆ type1ArrivalStationNum

int KItinerary::SSBv3Ticket::type1ArrivalStationNum
read

Definition at line 44 of file ssbv3ticket.h.

◆ type1CoachNumber

int KItinerary::SSBv3Ticket::type1CoachNumber
read

Definition at line 49 of file ssbv3ticket.h.

◆ type1DepartureDate

int KItinerary::SSBv3Ticket::type1DepartureDate
read

Definition at line 46 of file ssbv3ticket.h.

◆ type1DepartureStationAlpha

QString KItinerary::SSBv3Ticket::type1DepartureStationAlpha
read

Definition at line 43 of file ssbv3ticket.h.

◆ type1DepartureStationNum

int KItinerary::SSBv3Ticket::type1DepartureStationNum
read

Definition at line 42 of file ssbv3ticket.h.

◆ type1DepartureTime

int KItinerary::SSBv3Ticket::type1DepartureTime
read

Definition at line 47 of file ssbv3ticket.h.

◆ type1InformationMessages

int KItinerary::SSBv3Ticket::type1InformationMessages
read

Definition at line 52 of file ssbv3ticket.h.

◆ type1OpenText

QString KItinerary::SSBv3Ticket::type1OpenText
read

Definition at line 53 of file ssbv3ticket.h.

◆ type1OverbookingIndicator

int KItinerary::SSBv3Ticket::type1OverbookingIndicator
read

Definition at line 51 of file ssbv3ticket.h.

◆ type1SeatNumber

QString KItinerary::SSBv3Ticket::type1SeatNumber
read

Definition at line 50 of file ssbv3ticket.h.

◆ type1StationCodeListType

int KItinerary::SSBv3Ticket::type1StationCodeListType
read

Definition at line 41 of file ssbv3ticket.h.

◆ type1StationCodeNumericOrAlpha

int KItinerary::SSBv3Ticket::type1StationCodeNumericOrAlpha
read

Definition at line 40 of file ssbv3ticket.h.

◆ type1SubTicketType

int KItinerary::SSBv3Ticket::type1SubTicketType
read

Definition at line 39 of file ssbv3ticket.h.

◆ type1TrainNumber

QString KItinerary::SSBv3Ticket::type1TrainNumber
read

Definition at line 48 of file ssbv3ticket.h.

◆ type2ArrivalStationAlpha

QString KItinerary::SSBv3Ticket::type2ArrivalStationAlpha
read

Definition at line 64 of file ssbv3ticket.h.

◆ type2ArrivalStationNum

int KItinerary::SSBv3Ticket::type2ArrivalStationNum
read

Definition at line 63 of file ssbv3ticket.h.

◆ type2DepartureStationAlpha

QString KItinerary::SSBv3Ticket::type2DepartureStationAlpha
read

Definition at line 62 of file ssbv3ticket.h.

◆ type2DepartureStationNum

int KItinerary::SSBv3Ticket::type2DepartureStationNum
read

Definition at line 61 of file ssbv3ticket.h.

◆ type2FirstDayOfValidity

int KItinerary::SSBv3Ticket::type2FirstDayOfValidity
read

Definition at line 57 of file ssbv3ticket.h.

◆ type2InformationMessages

int KItinerary::SSBv3Ticket::type2InformationMessages
read

Definition at line 65 of file ssbv3ticket.h.

◆ type2LastDayOfValidity

int KItinerary::SSBv3Ticket::type2LastDayOfValidity
read

Definition at line 58 of file ssbv3ticket.h.

◆ type2OpenText

QString KItinerary::SSBv3Ticket::type2OpenText
read

Definition at line 66 of file ssbv3ticket.h.

◆ type2ReturnJourneyFlag

int KItinerary::SSBv3Ticket::type2ReturnJourneyFlag
read

Definition at line 56 of file ssbv3ticket.h.

◆ type2StationCodeListType

int KItinerary::SSBv3Ticket::type2StationCodeListType
read

Definition at line 60 of file ssbv3ticket.h.

◆ type2StationCodeNumericOrAlpha

int KItinerary::SSBv3Ticket::type2StationCodeNumericOrAlpha
read

Definition at line 59 of file ssbv3ticket.h.

◆ type3ArrivalStationAlpha

QString KItinerary::SSBv3Ticket::type3ArrivalStationAlpha
read

Definition at line 77 of file ssbv3ticket.h.

◆ type3ArrivalStationNum

int KItinerary::SSBv3Ticket::type3ArrivalStationNum
read

Definition at line 76 of file ssbv3ticket.h.

◆ type3CountermarkNumber

int KItinerary::SSBv3Ticket::type3CountermarkNumber
read

Definition at line 79 of file ssbv3ticket.h.

◆ type3DepartureStationAlpha

QString KItinerary::SSBv3Ticket::type3DepartureStationAlpha
read

Definition at line 75 of file ssbv3ticket.h.

◆ type3DepartureStationNum

int KItinerary::SSBv3Ticket::type3DepartureStationNum
read

Definition at line 74 of file ssbv3ticket.h.

◆ type3FirstDayOfValidity

int KItinerary::SSBv3Ticket::type3FirstDayOfValidity
read

Definition at line 70 of file ssbv3ticket.h.

◆ type3InformationMessages

int KItinerary::SSBv3Ticket::type3InformationMessages
read

Definition at line 80 of file ssbv3ticket.h.

◆ type3LastDayOfValidity

int KItinerary::SSBv3Ticket::type3LastDayOfValidity
read

Definition at line 71 of file ssbv3ticket.h.

◆ type3NameOfGroupLeader

QString KItinerary::SSBv3Ticket::type3NameOfGroupLeader
read

Definition at line 78 of file ssbv3ticket.h.

◆ type3OpenText

QString KItinerary::SSBv3Ticket::type3OpenText
read

Definition at line 81 of file ssbv3ticket.h.

◆ type3ReturnJourneyFlag

int KItinerary::SSBv3Ticket::type3ReturnJourneyFlag
read

Definition at line 69 of file ssbv3ticket.h.

◆ type3StationCodeListType

int KItinerary::SSBv3Ticket::type3StationCodeListType
read

Definition at line 73 of file ssbv3ticket.h.

◆ type3StationCodeNumericOrAlpha

int KItinerary::SSBv3Ticket::type3StationCodeNumericOrAlpha
read

Definition at line 72 of file ssbv3ticket.h.

◆ type4CountryCode1

int KItinerary::SSBv3Ticket::type4CountryCode1
read

Definition at line 88 of file ssbv3ticket.h.

◆ type4CountryCode2

int KItinerary::SSBv3Ticket::type4CountryCode2
read

Definition at line 89 of file ssbv3ticket.h.

◆ type4CountryCode3

int KItinerary::SSBv3Ticket::type4CountryCode3
read

Definition at line 90 of file ssbv3ticket.h.

◆ type4CountryCode4

int KItinerary::SSBv3Ticket::type4CountryCode4
read

Definition at line 91 of file ssbv3ticket.h.

◆ type4FirstDayOfValidity

int KItinerary::SSBv3Ticket::type4FirstDayOfValidity
read

Definition at line 85 of file ssbv3ticket.h.

◆ type4InformationMessages

int KItinerary::SSBv3Ticket::type4InformationMessages
read

Definition at line 93 of file ssbv3ticket.h.

◆ type4LastDayOfValidity

int KItinerary::SSBv3Ticket::type4LastDayOfValidity
read

Definition at line 86 of file ssbv3ticket.h.

◆ type4NumberOfDaysOfTravelAllowed

int KItinerary::SSBv3Ticket::type4NumberOfDaysOfTravelAllowed
read

Definition at line 87 of file ssbv3ticket.h.

◆ type4OpenText

QString KItinerary::SSBv3Ticket::type4OpenText
read

Definition at line 94 of file ssbv3ticket.h.

◆ type4RPTSubTicketType

int KItinerary::SSBv3Ticket::type4RPTSubTicketType
read

Definition at line 84 of file ssbv3ticket.h.

◆ type4SecondPage

int KItinerary::SSBv3Ticket::type4SecondPage
read

Definition at line 92 of file ssbv3ticket.h.

◆ version

int KItinerary::SSBv3Ticket::version
read

Definition at line 24 of file ssbv3ticket.h.

◆ yearOfIssue

int KItinerary::SSBv3Ticket::yearOfIssue
read

Definition at line 35 of file ssbv3ticket.h.

Constructor & Destructor Documentation

◆ SSBv3Ticket()

SSBv3Ticket::SSBv3Ticket ( const QByteArray & data)
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()

bool SSBv3Ticket::maybeSSB ( const QByteArray & data)
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.