Result

Result Class Reference

#include <result.h>

Inheritance diagram for Result:

Public Member Functions

 Result (const QString &url, const QString &mimetype, const Flags &flags=ExtractEverything)
 
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 41 of file result.h.

Member Function Documentation

Baloo::Document& Result::document ( )
inline

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

Definition at line 63 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 113 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().

Parameters
docThe Baloo::Document

Definition at line 125 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-2020 The KDE developers.
Generated on Tue Jul 14 2020 23:01:40 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.