Search for usage in LXR

KItinerary::Uic9183TicketLayout Class Reference

#include <uic9183ticketlayout.h>


QString type

Public Member Functions

 Uic9183TicketLayout (const Uic9183Block &block)
 Uic9183TicketLayout (const Uic9183TicketLayout &)
Uic9183TicketLayoutField firstField () const
bool isValid () const
Uic9183TicketLayoutoperator= (const Uic9183TicketLayout &)
QSize size () const
Q_INVOKABLE QString text (int row, int column, int width, int height) const
QString type () const

Static Public Attributes

static constexpr const char RecordId [] = "U_TLAY"

Detailed Description

Parser for a U_TLAY block in a UIC 918-3 ticket container, such as a ERA TLB ticket.

See also
ERA TAP TSI TD B.12 Digital Security Elements For Rail Passenger Ticketing - ยง10 TLB - Ticket Layout Barcode

Definition at line 61 of file uic9183ticketlayout.h.

Property Documentation

QString Uic9183TicketLayout::type

Ticket type (e.g.


Definition at line 65 of file uic9183ticketlayout.h.

Constructor & Destructor Documentation

Uic9183TicketLayout::Uic9183TicketLayout ( const Uic9183Block block)

Parse U_TLAY ticket layout block in data.

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

blockA UIC 918.3 U_TLAY data block

Definition at line 112 of file uic9183ticketlayout.cpp.

Member Function Documentation

Uic9183TicketLayoutField Uic9183TicketLayout::firstField ( ) const

Low-level field iteration access.

Prefer text() over this to avoid doing your own text layout assembly.

Definition at line 93 of file uic9183ticketlayout.cpp.

bool Uic9183TicketLayout::isValid ( ) const

Returns whether this is a valid U_TLAY layout block.

Definition at line 140 of file uic9183ticketlayout.cpp.

QSize Uic9183TicketLayout::size ( ) const

The size of the layout, as width and height in layout coordinates.

Definition at line 189 of file uic9183ticketlayout.cpp.

QString Uic9183TicketLayout::text ( int  row,
int  column,
int  width,
int  height 
) const

Returns the text in the given coordinates.

row and column are 0-based unlike the U_TLAY spec, which is 1-based!

Definition at line 145 of file uic9183ticketlayout.cpp.

QString KItinerary::Uic9183TicketLayout::type ( ) const

Type of the ticket layout.

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.