KItinerary::Uic9183Block
#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 |
Uic9183Block | nextBlock () const |
Uic9183Block & | operator= (const Uic9183Block &) |
Uic9183Block & | operator= (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
|
read |
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]
|
inline |
◆ 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:
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.