Search for usage in LXR

Baloo::Document Class Reference

#include <document.h>

Public Member Functions

void addFileNamePositionTerm (const QByteArray &term, int position=0)
void addFileNameTerm (const QByteArray &term)
void addPositionTerm (const QByteArray &term, int position=0)
void addTerm (const QByteArray &term)
void addXattrPositionTerm (const QByteArray &term, int position=0)
void addXattrTerm (const QByteArray &term)
bool contentIndexing () const
quint64 id () const
quint64 parentId () const
void setContentIndexing (bool val)
void setCTime (quint32 val)
void setData (const QByteArray &data)
void setId (quint64 id)
void setMTime (quint32 val)
void setParentId (quint64 parentId)
void setUrl (const QByteArray &url)
QByteArray url () const

Detailed Description

A document represents an indexed file to be stored in the Baloo engine.

It is a large collection of words along with their respective positions. One typically never needs to have all of this in memory except when creating the Document for indexing.

This is why Documents can be created and saved into the database, but not fetched.

Definition at line 30 of file document.h.

Member Function Documentation

◆ setContentIndexing()

void Document::setContentIndexing ( bool  val)

This flag is used to signify if the file needs its contents to be indexed.

It defaults to false

Definition at line 92 of file document.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 Mon Dec 4 2023 03:56:41 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.