KItinerary::Uic9183Flex

Search for usage in LXR

KItinerary::Uic9183Flex Class Reference

#include <uic9183flex.h>

Properties

QVariant fcb
 

Public Member Functions

 Uic9183Flex (const Uic9183Block &block)
 
 Uic9183Flex (const Uic9183Flex &)
 
const Fcb::UicRailTicketData & fcb () const
 
bool hasTransportDocument () const
 
QDateTime issuingDateTime () const
 
bool isValid () const
 
Uic9183Flexoperator= (const Uic9183Flex &)
 
QList< QVarianttransportDocuments () const
 

Static Public Attributes

static constexpr const char RecordId [] = "U_FLEX"
 

Detailed Description

Represents a U_FLEX block holding different versions of an FCB payload.

See also
ERA TAP TSI TD B.12 Digital Security Elements For Rail Passenger Ticketing - ยง11 FCB - Flexible Content Barcode

Definition at line 21 of file uic9183flex.h.

Property Documentation

◆ fcb

QVariant KItinerary::Uic9183Flex::fcb
read

Definition at line 24 of file uic9183flex.h.

Constructor & Destructor Documentation

◆ Uic9183Flex()

Uic9183Flex::Uic9183Flex ( const Uic9183Block & block)

Parse U_FLEX block in data.

It's the callers responsibility to ensure data outlives this instance, the data is not copied.

Parameters
blockA UIC 918.3 U_FLEX data block

Definition at line 23 of file uic9183flex.cpp.

Member Function Documentation

◆ fcb()

const Fcb::UicRailTicketData & Uic9183Flex::fcb ( ) const
nodiscard

Returns the FCB payload.

Varies depending on the version of this block.

Definition at line 68 of file uic9183flex.cpp.

◆ hasTransportDocument()

bool Uic9183Flex::hasTransportDocument ( ) const
nodiscard

true when this is a valid FCB with at least one transport document.

Definition at line 53 of file uic9183flex.cpp.

◆ issuingDateTime()

QDateTime Uic9183Flex::issuingDateTime ( ) const
nodiscard

Issuing date/time.

Definition at line 48 of file uic9183flex.cpp.

◆ isValid()

bool Uic9183Flex::isValid ( ) const
nodiscard

Returns whether this is a valid U_FLEX layout block.

Definition at line 43 of file uic9183flex.cpp.

◆ transportDocuments()

QList< QVariant > Uic9183Flex::transportDocuments ( ) const
nodiscard

Transport documents of the contained FCB.

Definition at line 58 of file uic9183flex.cpp.

Member Data Documentation

◆ RecordId

const char KItinerary::Uic9183Flex::RecordId[] = "U_FLEX"
staticconstexpr

Definition at line 54 of file uic9183flex.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 28 2025 11:59:50 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.