KItinerary::ExtractorInput

KItinerary::ExtractorInput Namespace Reference

Enumerations

enum  Type {
  Unknown = 0, Text, Barcode, Email,
  Html, JsonLd, ICal, Pdf,
  PkPass
}
 

Functions

Type typeFromContent (const QByteArray &content)
 
Type typeFromFileName (const QString &fileName)
 
Type typeFromMimeType (const QString &mimeType)
 
Type typeFromName (const QString &name)
 
QString typeToString (Type type)
 

Detailed Description

Extractor input data type methods.

Enumeration Type Documentation

Type of extractor input data.

Enumerator
Unknown 

Unknown or not yet detected input type.

Text 

Plain text document.

Barcode 

Content of a barcode.

Email 

An email message.

Html 

A HTML document.

JsonLd 

JSON-LD encoded schema.org structured data.

ICal 

An iCalendar event.

Pdf 

A PDF file.

PkPass 

An Apple Wallet pass file.

Definition at line 24 of file extractorinput.h.

Function Documentation

ExtractorInput::Type KItinerary::ExtractorInput::typeFromContent ( const QByteArray content)

Try to determine data type based on content.

Definition at line 60 of file extractorinput.cpp.

ExtractorInput::Type KItinerary::ExtractorInput::typeFromFileName ( const QString fileName)

Try to determine data type based on the file name.

Definition at line 114 of file extractorinput.cpp.

ExtractorInput::Type KItinerary::ExtractorInput::typeFromMimeType ( const QString mimeType)

Return the content type based on the given MIME type.

Definition at line 88 of file extractorinput.cpp.

ExtractorInput::Type KItinerary::ExtractorInput::typeFromName ( const QString name)

Convert string representation of the type to an enum.

Definition at line 151 of file extractorinput.cpp.

QString KItinerary::ExtractorInput::typeToString ( ExtractorInput::Type  type)

Convert type enum to a string.

Definition at line 140 of file extractorinput.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 10 2020 23:18:13 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.