KItinerary::SSBv2Ticket

Search for usage in LXR

#include <ssbv2ticket.h>

Inheritance diagram for KItinerary::SSBv2Ticket:

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

QString KItinerary::SSBv2Ticket::arrivalStationAlpha
read

Definition at line 39 of file ssbv2ticket.h.

◆ arrivalStationNum

int KItinerary::SSBv2Ticket::arrivalStationNum
read

Definition at line 38 of file ssbv2ticket.h.

◆ arrivalStationType

int KItinerary::SSBv2Ticket::arrivalStationType
read

Definition at line 37 of file ssbv2ticket.h.

◆ berthNumber

QString KItinerary::SSBv2Ticket::berthNumber
read

Definition at line 46 of file ssbv2ticket.h.

◆ classOfTransport

int KItinerary::SSBv2Ticket::classOfTransport
read

Definition at line 43 of file ssbv2ticket.h.

◆ coachNumber

int KItinerary::SSBv2Ticket::coachNumber
read

Definition at line 44 of file ssbv2ticket.h.

◆ customerNumber

quint64 KItinerary::SSBv2Ticket::customerNumber
read

Definition at line 33 of file ssbv2ticket.h.

◆ customerNumberType

int KItinerary::SSBv2Ticket::customerNumberType
read

Definition at line 32 of file ssbv2ticket.h.

◆ departureStationAlpha

QString KItinerary::SSBv2Ticket::departureStationAlpha
read

Definition at line 36 of file ssbv2ticket.h.

◆ departureStationNum

int KItinerary::SSBv2Ticket::departureStationNum
read

Definition at line 35 of file ssbv2ticket.h.

◆ departureStationType

int KItinerary::SSBv2Ticket::departureStationType
read

Definition at line 34 of file ssbv2ticket.h.

◆ departureTime

int KItinerary::SSBv2Ticket::departureTime
read

Definition at line 40 of file ssbv2ticket.h.

◆ firstDayOfValidityDay

int KItinerary::SSBv2Ticket::firstDayOfValidityDay
read

Definition at line 30 of file ssbv2ticket.h.

◆ issuerCode

int KItinerary::SSBv2Ticket::issuerCode
read

Definition at line 24 of file ssbv2ticket.h.

◆ issuerPNRNumber

QString KItinerary::SSBv2Ticket::issuerPNRNumber
read

Definition at line 48 of file ssbv2ticket.h.

◆ lastDayOfValidityDay

int KItinerary::SSBv2Ticket::lastDayOfValidityDay
read

Definition at line 31 of file ssbv2ticket.h.

◆ numberOfAdultPassengers

int KItinerary::SSBv2Ticket::numberOfAdultPassengers
read

Definition at line 28 of file ssbv2ticket.h.

◆ numberOfChildPassengers

int KItinerary::SSBv2Ticket::numberOfChildPassengers
read

Definition at line 29 of file ssbv2ticket.h.

◆ numberOfTickets

int KItinerary::SSBv2Ticket::numberOfTickets
read

Definition at line 27 of file ssbv2ticket.h.

◆ overbookingIndicator

int KItinerary::SSBv2Ticket::overbookingIndicator
read

Definition at line 47 of file ssbv2ticket.h.

◆ publicKeyVersion

int KItinerary::SSBv2Ticket::publicKeyVersion
read

Definition at line 25 of file ssbv2ticket.h.

◆ railwayCarrierCode

int KItinerary::SSBv2Ticket::railwayCarrierCode
read

Definition at line 52 of file ssbv2ticket.h.

◆ rawData

QByteArray KItinerary::SSBv2Ticket::rawData
read

Definition at line 55 of file ssbv2ticket.h.

◆ rct2TypeIndicator

int KItinerary::SSBv2Ticket::rct2TypeIndicator
read

Definition at line 26 of file ssbv2ticket.h.

◆ reference

QString KItinerary::SSBv2Ticket::reference
read

Definition at line 53 of file ssbv2ticket.h.

◆ reservationReference

quint64 KItinerary::SSBv2Ticket::reservationReference
read

Definition at line 42 of file ssbv2ticket.h.

◆ seatNumber

int KItinerary::SSBv2Ticket::seatNumber
read

Definition at line 45 of file ssbv2ticket.h.

◆ specimen

int KItinerary::SSBv2Ticket::specimen
read

Definition at line 50 of file ssbv2ticket.h.

◆ ticketType

int KItinerary::SSBv2Ticket::ticketType
read

Definition at line 49 of file ssbv2ticket.h.

◆ trainNumber

int KItinerary::SSBv2Ticket::trainNumber
read

Definition at line 41 of file ssbv2ticket.h.

◆ version

int KItinerary::SSBv2Ticket::version
read

Definition at line 23 of file ssbv2ticket.h.

◆ viaStations

QString KItinerary::SSBv2Ticket::viaStations
read

Definition at line 51 of file ssbv2ticket.h.

Constructor & Destructor Documentation

◆ SSBv2Ticket()

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

bool SSBv2Ticket::maybeSSB ( const QByteArray & data)
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:
This file is part of the KDE documentation.
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.