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.
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-2021 The KDE developers.
Generated on Thu Mar 4 2021 23:15:43 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Mar 4 2021 23:15:43 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.