KItinerary::Uic9183Block

Search for usage in LXR

KItinerary::Uic9183Block Class Reference

#include <uic9183block.h>

Properties

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
 
const char * name () const
 
Uic9183Block nextBlock () const
 
Uic9183Blockoperator= (const Uic9183Block &)
 
Uic9183Blockoperator= (Uic9183Block &&)
 
bool operator== (const Uic9183Block &other) const
 
int size () const
 
int version () const
 

Detailed Description

A data block from a UIC 918.3 ticket.

Definition at line 18 of file uic9183block.h.

Property Documentation

◆ contentText

QString KItinerary::Uic9183Block::contentText
read

Content as string, for use in JS.

Definition at line 22 of file uic9183block.h.

Constructor & Destructor Documentation

◆ Uic9183Block()

Uic9183Block::Uic9183Block ( const QByteArray & data,
int offset )
explicit

Definition at line 29 of file uic9183block.cpp.

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
inline

Checks if a block is of type.

Template Parameters
T.

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.

◆ name()

const char * Uic9183Block::name ( ) 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 55 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.

◆ operator==()

bool Uic9183Block::operator== ( const Uic9183Block & other) const

Definition at line 44 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.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.