KItinerary::SSBv1Ticket

Search for usage in LXR

#include <ssbv1ticket.h>

Inheritance diagram for KItinerary::SSBv1Ticket:

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

QString KItinerary::SSBv1Ticket::arrivalStationAlpha
read

Definition at line 39 of file ssbv1ticket.h.

◆ arrivalStationNum

int KItinerary::SSBv1Ticket::arrivalStationNum
read

Definition at line 38 of file ssbv1ticket.h.

◆ arrivalStationType

int KItinerary::SSBv1Ticket::arrivalStationType
read

Definition at line 37 of file ssbv1ticket.h.

◆ berthNumber

QString KItinerary::SSBv1Ticket::berthNumber
read

Definition at line 50 of file ssbv1ticket.h.

◆ classOfTransport

int KItinerary::SSBv1Ticket::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

int KItinerary::SSBv1Ticket::coachNumber
read

Definition at line 48 of file ssbv1ticket.h.

◆ customerNumber

quint64 KItinerary::SSBv1Ticket::customerNumber
read

Definition at line 33 of file ssbv1ticket.h.

◆ customerNumberType

int KItinerary::SSBv1Ticket::customerNumberType
read

Definition at line 32 of file ssbv1ticket.h.

◆ departureStationAlpha

QString KItinerary::SSBv1Ticket::departureStationAlpha
read

Definition at line 36 of file ssbv1ticket.h.

◆ departureStationNum

int KItinerary::SSBv1Ticket::departureStationNum
read

Definition at line 35 of file ssbv1ticket.h.

◆ departureStationType

int KItinerary::SSBv1Ticket::departureStationType
read

Definition at line 34 of file ssbv1ticket.h.

◆ departureTimeSlot

int KItinerary::SSBv1Ticket::departureTimeSlot
read

departure time encoded as 48 30min time slots

Definition at line 41 of file ssbv1ticket.h.

◆ firstDayOfValidityDay

int KItinerary::SSBv1Ticket::firstDayOfValidityDay
read

Days since Jan 01.

Definition at line 30 of file ssbv1ticket.h.

◆ issuerCode

int KItinerary::SSBv1Ticket::issuerCode
read

Definition at line 24 of file ssbv1ticket.h.

◆ issuerPNRNumber

QString KItinerary::SSBv1Ticket::issuerPNRNumber
read

Definition at line 52 of file ssbv1ticket.h.

◆ lastDayOfValidityDay

int KItinerary::SSBv1Ticket::lastDayOfValidityDay
read

Definition at line 31 of file ssbv1ticket.h.

◆ numberOfAdultPassengers

int KItinerary::SSBv1Ticket::numberOfAdultPassengers
read

Definition at line 27 of file ssbv1ticket.h.

◆ numberOfChildPassengers

int KItinerary::SSBv1Ticket::numberOfChildPassengers
read

Definition at line 28 of file ssbv1ticket.h.

◆ numberOfTickets

int KItinerary::SSBv1Ticket::numberOfTickets
read

Definition at line 26 of file ssbv1ticket.h.

◆ overbookingIndicator

int KItinerary::SSBv1Ticket::overbookingIndicator
read

Definition at line 51 of file ssbv1ticket.h.

◆ rawData

QByteArray KItinerary::SSBv1Ticket::rawData
read

Definition at line 57 of file ssbv1ticket.h.

◆ rct2TypeIndicator

int KItinerary::SSBv1Ticket::rct2TypeIndicator
read

Definition at line 25 of file ssbv1ticket.h.

◆ reservationReference

quint64 KItinerary::SSBv1Ticket::reservationReference
read

Definition at line 43 of file ssbv1ticket.h.

◆ seatNumber

int KItinerary::SSBv1Ticket::seatNumber
read

Definition at line 49 of file ssbv1ticket.h.

◆ specimen

int KItinerary::SSBv1Ticket::specimen
read

Definition at line 54 of file ssbv1ticket.h.

◆ ticketType

int KItinerary::SSBv1Ticket::ticketType
read

Definition at line 53 of file ssbv1ticket.h.

◆ trainNumber

int KItinerary::SSBv1Ticket::trainNumber
read

Definition at line 42 of file ssbv1ticket.h.

◆ version

int KItinerary::SSBv1Ticket::version
read

Definition at line 23 of file ssbv1ticket.h.

◆ viaStations

QString KItinerary::SSBv1Ticket::viaStations
read

Definition at line 55 of file ssbv1ticket.h.

Constructor & Destructor Documentation

◆ SSBv1Ticket()

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

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

KDE's Doxygen guidelines are available online.