KItinerary::VdvTicketParser
#include <vdvticketparser.h>
Public Member Functions | |
bool | parse (const QByteArray &data) |
VdvTicket | ticket () const |
Static Public Member Functions | |
static bool | maybeVdvTicket (const QByteArray &data) |
Detailed Description
Parser for VDV tickets.
Or more correctly for: "Statische Berechtigungen der VDV-Kernapplikation" That is, a standard for 2D barcode tickets for local public transport, commonly found in Germany and some neighbouring countries.
This is based on "VDV-Kernapplikation - Spezifikation statischer Berechtigungen für 2D Barcode-Tickets" which your favorite search engine should find as a PDF.
The crypto stuff used here is ISO 9796-2, and you'll find some terminology also used in ISO 7816-6/8, which isn't entirely surprising given this also exists in a NFC card variant.
Do not use directly, only installed for use in tooling.
Definition at line 31 of file vdvticketparser.h.
Member Function Documentation
◆ maybeVdvTicket()
|
static |
Fast check if data
might contain a VDV ticket.
Does not perform full decoding, mainly useful for content auto-detection.
Definition at line 81 of file vdvticketparser.cpp.
◆ parse()
bool VdvTicketParser::parse | ( | const QByteArray & | data | ) |
Tries to parse the ticket in data
.
Definition at line 23 of file vdvticketparser.cpp.
◆ ticket()
VdvTicket VdvTicketParser::ticket | ( | ) | const |
Returns the parsed ticket data.
Definition at line 101 of file vdvticketparser.cpp.
The documentation for this class was generated from the following files:
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.