KItinerary::VdvTicket

Search for usage in LXR

KItinerary::VdvTicket Class Reference

#include <vdvticket.h>

Public Types

enum  ServiceClass { UnknownClass = 0 , FirstClass = 1 , SecondClass = 2 , FirstClassUpgrade = 3 }
 

Properties

QDateTime beginDateTime
 
QDateTime endDateTime
 
int issuerId
 
int operatorId
 
KItinerary::Person person
 
QByteArray rawData
 
ServiceClass serviceClass
 
QString ticketNumber
 

Public Member Functions

 VdvTicket (const QByteArray &data, const QByteArray &rawData)
 
 VdvTicket (const VdvTicket &)
 
QDateTime beginDateTime () const
 
const VdvTicketCommonTransactionDatacommonTransactionData () const
 
QDateTime endDateTime () const
 
const VdvTicketHeaderheader () const
 
const VdvTicketIssueDataissueData () const
 
int issuerId () const
 
VdvTicketoperator= (const VdvTicket &)
 
int operatorId () const
 
Person person () const
 
BER::Element productData () const
 
BER::Element productSpecificTransactionData () const
 
QByteArray rawData () const
 
ServiceClass serviceClass () const
 
QString ticketNumber () const
 
const VdvTicketTrailertrailer () const
 

Detailed Description

Ticket information from a VDV barcode.

For use by tooling or custom extractor scripts.

Definition at line 29 of file vdvticket.h.

Member Enumeration Documentation

◆ ServiceClass

enum KItinerary::VdvTicket::ServiceClass

Definition at line 62 of file vdvticket.h.

Property Documentation

◆ beginDateTime

QDateTime KItinerary::VdvTicket::beginDateTime
read

Begin of the validitiy of this ticket.

Definition at line 33 of file vdvticket.h.

◆ endDateTime

QDateTime KItinerary::VdvTicket::endDateTime
read

End of the validity of this ticket.

Definition at line 35 of file vdvticket.h.

◆ issuerId

int KItinerary::VdvTicket::issuerId
read

VDV organization identifier of the ticket issuer.

Definition at line 38 of file vdvticket.h.

◆ operatorId

int KItinerary::VdvTicket::operatorId
read

VDV organization identifier of the operator.

Definition at line 40 of file vdvticket.h.

◆ person

KItinerary::Person KItinerary::VdvTicket::person
read

The person this ticket is valid for.

Definition at line 44 of file vdvticket.h.

◆ rawData

QByteArray KItinerary::VdvTicket::rawData
read

Definition at line 48 of file vdvticket.h.

◆ serviceClass

ServiceClass KItinerary::VdvTicket::serviceClass
read

Service class for this ticket.

Definition at line 42 of file vdvticket.h.

◆ ticketNumber

QString KItinerary::VdvTicket::ticketNumber
read

Ticket number.

Definition at line 46 of file vdvticket.h.

Constructor & Destructor Documentation

◆ VdvTicket() [1/2]

VdvTicket::VdvTicket ( )

Definition at line 50 of file vdvticket.cpp.

◆ VdvTicket() [2/2]

VdvTicket::VdvTicket ( const QByteArray & data,
const QByteArray & rawData )

Definition at line 55 of file vdvticket.cpp.

Member Function Documentation

◆ beginDateTime()

QDateTime VdvTicket::beginDateTime ( ) const

Definition at line 104 of file vdvticket.cpp.

◆ commonTransactionData()

const VdvTicketCommonTransactionData * VdvTicket::commonTransactionData ( ) const

Definition at line 209 of file vdvticket.cpp.

◆ endDateTime()

QDateTime KItinerary::VdvTicket::endDateTime ( ) const

Definition at line 110 of file vdvticket.cpp.

◆ header()

const VdvTicketHeader * VdvTicket::header ( ) const

Definition at line 198 of file vdvticket.cpp.

◆ issueData()

const VdvTicketIssueData * VdvTicket::issueData ( ) const

Definition at line 222 of file vdvticket.cpp.

◆ issuerId()

int VdvTicket::issuerId ( ) const

Definition at line 116 of file vdvticket.cpp.

◆ operatorId()

int VdvTicket::operatorId ( ) const

Definition at line 122 of file vdvticket.cpp.

◆ person()

Person VdvTicket::person ( ) const

Definition at line 148 of file vdvticket.cpp.

◆ productData()

BER::Element VdvTicket::productData ( ) const

Definition at line 203 of file vdvticket.cpp.

◆ productSpecificTransactionData()

BER::Element VdvTicket::productSpecificTransactionData ( ) const

Definition at line 215 of file vdvticket.cpp.

◆ rawData()

QByteArray VdvTicket::rawData ( ) const

Raw data of this ticket.

Useful for generating a barcode for it again.

Definition at line 236 of file vdvticket.cpp.

◆ serviceClass()

VdvTicket::ServiceClass VdvTicket::serviceClass ( ) const

Definition at line 128 of file vdvticket.cpp.

◆ ticketNumber()

QString VdvTicket::ticketNumber ( ) const

Definition at line 192 of file vdvticket.cpp.

◆ trailer()

const VdvTicketTrailer * VdvTicket::trailer ( ) const

Definition at line 229 of file vdvticket.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.