Search for usage in LXR

KItinerary::Uic9183Block Class Reference

#include <uic9183block.h>


QString contentText

Public Member Functions

 Uic9183Block (const QByteArray &data, int offset)
 Uic9183Block (const Uic9183Block &)
 Uic9183Block (Uic9183Block &&)
const char * content () const
int contentSize () const
template<typename T >
bool isA () const
bool isA (const char recordId[6]) const
bool isNull () const
Uic9183Block nextBlock () const
Uic9183Blockoperator= (const Uic9183Block &)
Uic9183Blockoperator= (Uic9183Block &&)
bool operator== (const Uic9183Block &other) const
int size () const
int version () const

Public Attributes

const char * const

Detailed Description

A data block from a UIC 918.3 ticket.

Definition at line 18 of file uic9183block.h.

Property Documentation

◆ contentText

QString Uic9183Block::contentText

Content as string, for use in JS.

Definition at line 22 of file uic9183block.h.

Member Function Documentation

◆ content()

const char * Uic9183Block::content ( ) const

Returns the payload data (not including the block header).

Definition at line 68 of file uic9183block.cpp.

◆ contentSize()

int Uic9183Block::contentSize ( ) const

Returns the size of the content data.

Definition at line 81 of file uic9183block.cpp.

◆ isA() [1/2]

template<typename T >
bool KItinerary::Uic9183Block::isA ( ) const

Checks if a block is of type.

Template Parameters

Definition at line 41 of file uic9183block.h.

◆ isA() [2/2]

bool Uic9183Block::isA ( const char  recordId[6]) const

Checks if this block has the given record id.

Definition at line 63 of file uic9183block.cpp.

◆ isNull()

bool Uic9183Block::isNull ( ) const

Checks if the block is valid or empty/default constructed.

Definition at line 91 of file uic9183block.cpp.

◆ nextBlock()

Uic9183Block Uic9183Block::nextBlock ( ) const

Returns the next block in the ticket.

If there is no more block, a null block is returned.

Definition at line 96 of file uic9183block.cpp.

◆ size()

int Uic9183Block::size ( ) const

Returns the size of the entire block data.

Definition at line 76 of file uic9183block.cpp.

◆ version()

int Uic9183Block::version ( ) const

Returns the version number of this block.

Definition at line 86 of file uic9183block.cpp.

Member Data Documentation

◆ const

const char* KItinerary::Uic9183Block::const

Returns the block name (6 characters).

The name is either "U_" + 4 letter standard type or a 4 digit vendor id + 2 char vendor type

Definition at line 36 of file uic9183block.h.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 28 2023 04:00:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.