Baloo
8 #include "pendingfile.h"
9 #include "baloodebug.h"
11 using namespace Baloo;
13 PendingFile::PendingFile(
const QString& path)
16 , m_closedOnWrite(false)
17 , m_attributesChanged(false)
23 QString PendingFile::path()
const
28 bool PendingFile::isNewFile()
const
33 bool PendingFile::shouldIndexContents()
const
35 if (m_created || m_closedOnWrite || m_modified) {
41 bool PendingFile::shouldIndexXAttrOnly()
const
43 if (m_attributesChanged && !shouldIndexContents()) {
49 bool PendingFile::shouldRemoveIndex()
const
56 m_attributesChanged |= file.m_attributesChanged;
57 m_closedOnWrite |= file.m_closedOnWrite;
58 m_created |= file.m_created;
59 m_modified |= file.m_modified;
62 void PendingFile::printFlags()
const
64 qCDebug(BALOO) <<
"AttributesChanged:" << m_attributesChanged;
65 qCDebug(BALOO) <<
"ClosedOnWrite:" << m_closedOnWrite;
66 qCDebug(BALOO) <<
"Created:" << m_created;
67 qCDebug(BALOO) <<
"Deleted:" << m_deleted;
68 qCDebug(BALOO) <<
"Modified:" << m_modified;
Represents a file which needs to be indexed.
Implements storage for docIds without any associated data Instantiated for:
QString path(const QString &relativePath)
void merge(const PendingFile &file)
Takes a PendingFile file and merges its flags into the current PendingFile.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:56:26 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.