KItinerary::Token

Search for usage in LXR

KItinerary::Token Class Reference

#include <token.h>

Public Types

enum  TokenType {
  Unknown , Url , QRCode , AztecCode ,
  Code128 , DataMatrix , PDF417 , Code39 ,
  EAN13
}
 

Static Public Member Functions

static QVariant tokenData (const QString &token)
 
static TokenType tokenType (QStringView token)
 

Detailed Description

Barcode token utilities.

See also
Ticket
ProgramMembership
Since
5.20.41

Definition at line 23 of file token.h.

Member Enumeration Documentation

◆ TokenType

Token format.

Enumerator
Unknown 

Unknown or empty ticket token.

Url 

A download URL, if shown in a barcode its format can be determined by the application.

QRCode 

QR code.

AztecCode 

Aztec code. Binary content is handled transparently by tokenData().

Code128 

Code 128 barcode.

DataMatrix 

A DataMatrix barcode.

PDF417 

A PDF417 barcode.

Code39 

A Code 39 barcode.

EAN13 

A EAN13 barcode.

Definition at line 28 of file token.h.

Member Function Documentation

◆ tokenData()

QVariant Token::tokenData ( const QString & token)
static

Determine token content for the given token.

Definition at line 41 of file token.cpp.

◆ tokenType()

Token::TokenType Token::tokenType ( QStringView token)
static

Determine token type for the given token.

Definition at line 13 of file token.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 Mon Nov 4 2024 16:28:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.