Search for usage in LXR

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::Documentdocument ()
void finish ()
void setDocument (const Baloo::Document &doc)

Additional Inherited Members

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.

Definition at line 26 of file result.h.

Member Function Documentation

Baloo::Document& Result::document ( )

Returns the Baloo document to which the results from the extractors are saved.

Definition at line 48 of file result.h.

void Result::finish ( )

Applies the finishing touches on the document, and makes it ready to be pushed into the db.

Definition at line 97 of file result.cpp.

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().

docThe Baloo::Document

Definition at line 109 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-2021 The KDE developers.
Generated on Wed May 12 2021 23:01:03 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.