KItinerary
externalprocessor.cpp
33 qCCritical(Log) << "filePath : " << filepath << "Cannot find external extractor:" << fi.fileName();
55void ExternalProcessor::preExtract(ExtractorDocumentNode &node, const ExtractorEngine *engine) const
68 std::transform(extractors.begin(), extractors.end(), std::back_inserter(extNames), [](auto ext) { return ext->name(); });
88 qCWarning(Log) << "could not start external extractor" << m_externalExtractor << proc.errorString();
94 qCWarning(Log) << "external extractor did not exit cleanly" << m_externalExtractor << proc.errorString();
ExtractorDocumentNode createNodeFromData(const QByteArray &encodedData) const override
Create a document node from raw data.
Definition externalprocessor.cpp:47
void preExtract(ExtractorDocumentNode &node, const ExtractorEngine *engine) const override
Called before extractors are applied to node.
Definition externalprocessor.cpp:55
bool canHandleData(const QByteArray &encodedData, QStringView fileName) const override
Fast check whether the given encoded data can possibly be processed by this instance.
Definition externalprocessor.cpp:41
A node in the extracted document object tree.
Definition extractordocumentnode.h:50
void addResult(ExtractorResult &&result)
Add additional results from an extraction step.
Definition extractordocumentnode.cpp:155
QDateTime contextDateTime
The best known context date/time at this point in the document tree.
Definition extractordocumentnode.h:68
void setContent(const QVariant &content)
Set decoded content.
Definition extractordocumentnode.cpp:120
static bool maybePdf(const QByteArray &data)
Fast check whether data might be a PDF document.
Definition pdfdocument.cpp:379
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
QString toString(QStringView format, QCalendar cal) const const
QString errorString() const const
qint64 write(const QByteArray &data)
ReadWrite
QJsonArray array() const const
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
void reserve(qsizetype size)
ForwardedErrorChannel
void closeWriteChannel()
QByteArray readAllStandardOutput()
void setArguments(const QStringList &arguments)
void setProcessChannelMode(ProcessChannelMode mode)
void setProgram(const QString &program)
void start(OpenMode mode)
bool waitForFinished(int msecs)
bool waitForStarted(int msecs)
QString join(QChar separator) const const
bool endsWith(QChar ch) const const
CaseInsensitive
ISODate
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:28:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:28:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.