KItinerary::VdvTicketParser

Search for usage in LXR

KItinerary::VdvTicketParser Class Reference

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

See also
https://de.wikipedia.org/wiki/VDV-Kernapplikation

Definition at line 31 of file vdvticketparser.h.

Member Function Documentation

bool VdvTicketParser::maybeVdvTicket ( const QByteArray data)
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.

bool VdvTicketParser::parse ( const QByteArray data)

Tries to parse the ticket in data.

Definition at line 23 of file vdvticketparser.cpp.

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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Dec 6 2021 23:05:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.