Result
#include <result.h>
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) |
Public Member Functions inherited from KFileMetaData::ExtractionResult | |
ExtractionResult (const QString &url, const QString &mimetype=QString(), const Flags &flags=Flags{ExtractPlainText|ExtractMetaData}) | |
void | addImageData (QMap< EmbeddedImageData::ImageType, QByteArray > &&images) |
QMap< EmbeddedImageData::ImageType, QByteArray > | imageData () const |
Flags | inputFlags () const |
QString | inputMimetype () const |
QString | inputUrl () const |
Additional Inherited Members | |
Public Types inherited from KFileMetaData::ExtractionResult | |
enum | Flag |
typedef QFlags< Flag > | Flags |
Public Attributes inherited from KFileMetaData::ExtractionResult | |
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.
Constructor & Destructor Documentation
◆ Result() [1/2]
Result::Result | ( | ) |
Definition at line 19 of file result.cpp.
◆ Result() [2/2]
Result::Result | ( | const QString & | url, |
const QString & | mimetype, | ||
const Flags & | flags = ExtractMetaData | ExtractPlainText ) |
Definition at line 26 of file result.cpp.
Member Function Documentation
◆ add()
|
overridevirtual |
Implements KFileMetaData::ExtractionResult.
Definition at line 33 of file result.cpp.
◆ addType()
|
overridevirtual |
Implements KFileMetaData::ExtractionResult.
Definition at line 90 of file result.cpp.
◆ append()
|
overridevirtual |
Implements KFileMetaData::ExtractionResult.
Definition at line 85 of file result.cpp.
◆ 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 96 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 108 of file result.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:09 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.