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
}
 

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.

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 31 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-2022 The KDE developers.
Generated on Tue Jun 28 2022 04:02:13 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.