Result
Result Class Reference
#include <result.h>
Inheritance diagram for Result:

Public Member Functions | |
Result (const QString &url, const QString &mimetype, const Flags &flags=ExtractMetaData|ExtractPlainText) | |
void | add (KFileMetaData::Property::Property property, const QVariant &value) override |
void | addType (KFileMetaData::Type::Type type) override |
void | append (const QString &text) override |
Baloo::Document & | document () |
void | finish () |
void | setDocument (const Baloo::Document &doc) |
![]() | |
ExtractionResult (const QString &url, const QString &mimetype=QString(), const Flags &flags=Flags{ExtractPlainText|ExtractMetaData}) | |
virtual void | add (Property::Property property, const QVariant &value)=0 |
void | addImageData (QMap< EmbeddedImageData::ImageType, QByteArray > &&images) |
virtual void | addType (Type::Type type)=0 |
QMap< EmbeddedImageData::ImageType, QByteArray > | imageData () const |
Flags | inputFlags () const |
QString | inputMimetype () const |
QString | inputUrl () const |
Additional Inherited Members | |
![]() | |
enum | Flag |
typedef QFlags< Flag > | Flags |
![]() | |
ExtractEverything | |
ExtractImageData | |
Detailed Description
The result class is where all the data extracted by the KFileMetaData extractors is saved to. It implements the KFileMetaData::ExtractionResult interface. The results can be retrieved as a Baloo::Document using document()
and stored in the database.
Member Function Documentation
◆ document()
|
inline |
◆ finish()
void Result::finish | ( | ) |
Applies the finishing touches on the document, and makes it ready to be pushed into the db.
Definition at line 101 of file result.cpp.
◆ setDocument()
void Result::setDocument | ( | const Baloo::Document & | doc | ) |
Can be used to add extraction results to an existing Baloo::Document.
Has to be called before passing the Result to KFileMetaData::Extractor::extract().
- Parameters
-
doc The Baloo::Document
Definition at line 113 of file result.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 04:12:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 04:12:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.