KItinerary::SSBv3Ticket

Search for usage in LXR

#include <ssbv3ticket.h>

Inheritance diagram for KItinerary::SSBv3Ticket:

Properties

QByteArray rawData
 

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
 

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
 
- 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.

Member Function Documentation

QDate SSBv3Ticket::issueDate ( const QDateTime contextDate = QDateTime::currentDateTime()) const

Date of issue.

Definition at line 57 of file ssbv3ticket.cpp.

bool SSBv3Ticket::isValid ( ) const

Returns true if this is a valid SSB ticket.

Definition at line 34 of file ssbv3ticket.cpp.

bool SSBv3Ticket::maybeSSB ( const QByteArray data)
static

Returns true if data might be an ERA SSB ticket.

Definition at line 49 of file ssbv3ticket.cpp.

QByteArray KItinerary::SSBv3Ticket::rawData ( ) const

Raw barcode data.

QDate SSBv3Ticket::type1DepartureDay ( const QDateTime contextDate = QDateTime::currentDateTime()) const

Departure day for type 1 (IRT/RES/BOA) tickets.

Definition at line 72 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-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:06:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.