KItinerary::Ticket

Search for usage in LXR

KItinerary::Ticket Class Reference

#include <ticket.h>

Public Types

enum  TicketTokenType {
  Unknown = Token::Unknown , Url = Token::Url , QRCode = Token::QRCode , AztecCode = Token::AztecCode ,
  Code128 = Token::Code128 , DataMatrix = Token::DataMatrix , PDF417 = Token::PDF417
}
 

Properties

QString identifier
 
KItinerary::Organization issuedBy
 
QString name
 
QString priceCurrency
 
QVariantList subjectOf
 
KItinerary::Seat ticketedSeat
 
QString ticketNumber
 
QString ticketToken
 
QVariant ticketTokenData
 
KItinerary::Token::TokenType ticketTokenType
 
double totalPrice
 
KItinerary::Person underName
 
QDateTime validFrom
 
QDateTime validUntil
 

Public Member Functions

QVariant ticketTokenData () const
 
Token::TokenType ticketTokenType () const
 

Detailed Description

A booked ticket.

See also
https://schema.org/Ticket

Definition at line 40 of file ticket.h.

Member Enumeration Documentation

◆ TicketTokenType

The type of content in the ticketToken property.

Deprecated
Use Token::TokenType instead.
Enumerator
Unknown 

Unknown or empty ticket token.

Url 

A download URL.

QRCode 

QR code.

AztecCode 

Aztec code.

Code128 

Code 128 barcode.

DataMatrix 

A DataMatrix barcode.

PDF417 

A PDF417 barcode.

Definition at line 75 of file ticket.h.

Property Documentation

◆ identifier

QString KItinerary::Ticket::identifier
readwrite

Definition at line 69 of file ticket.h.

◆ issuedBy

KItinerary::Organization KItinerary::Ticket::issuedBy
readwrite

Definition at line 44 of file ticket.h.

◆ name

QString KItinerary::Ticket::name
readwrite

Definition at line 43 of file ticket.h.

◆ priceCurrency

QString KItinerary::Ticket::priceCurrency
readwrite

Definition at line 67 of file ticket.h.

◆ subjectOf

QVariantList KItinerary::Ticket::subjectOf
readwrite

Definition at line 60 of file ticket.h.

◆ ticketedSeat

KItinerary::Seat KItinerary::Ticket::ticketedSeat
readwrite

Definition at line 46 of file ticket.h.

◆ ticketNumber

QString KItinerary::Ticket::ticketNumber
readwrite

Definition at line 45 of file ticket.h.

◆ ticketToken

QString KItinerary::Ticket::ticketToken
readwrite

The raw ticket token string.

See also
ticketTokenType, ticketTokenData

Definition at line 50 of file ticket.h.

◆ ticketTokenData

QVariant KItinerary::Ticket::ticketTokenData
read

The ticket token payload for barcodes, otherwise the same as ticketToken.

For binary content barcodes this is a QByteArray, otherwise a QString.

Definition at line 57 of file ticket.h.

◆ ticketTokenType

KItinerary::Token::TokenType KItinerary::Ticket::ticketTokenType
read

The type of the content in ticketToken.

Definition at line 53 of file ticket.h.

◆ totalPrice

double KItinerary::Ticket::totalPrice
readwrite

Definition at line 66 of file ticket.h.

◆ underName

KItinerary::Person KItinerary::Ticket::underName
readwrite

Definition at line 59 of file ticket.h.

◆ validFrom

QDateTime KItinerary::Ticket::validFrom
readwrite

Non-standard extension for ticket validity time ranges.

Definition at line 63 of file ticket.h.

◆ validUntil

QDateTime KItinerary::Ticket::validUntil
readwrite

Definition at line 64 of file ticket.h.

Member Function Documentation

◆ ticketTokenData()

QVariant KItinerary::Ticket::ticketTokenData ( ) const

Definition at line 73 of file ticket.cpp.

◆ ticketTokenType()

Token::TokenType KItinerary::Ticket::ticketTokenType ( ) const

Definition at line 68 of file ticket.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 Fri Jul 12 2024 11:52:20 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.