9#include "indexerconfig.h"
10#include "../file/fileindexerconfig.h"
11#include "../file/fileexcludefilters.h"
12#include "../file/regexpcache.h"
14#include <QDBusConnection>
15#include "maininterface.h"
16#include "baloosettings.h"
23 BalooSettings m_settings;
26IndexerConfig::IndexerConfig()
31IndexerConfig::~IndexerConfig()
36bool IndexerConfig::fileIndexingEnabled()
const
38 return d->m_settings.indexingEnabled();
41void IndexerConfig::setFileIndexingEnabled(
bool enabled)
const
43 d->m_settings.setIndexingEnabled(enabled);
46bool IndexerConfig::shouldBeIndexed(
const QString& path)
const
48 return d->m_config.shouldBeIndexed(path);
51bool IndexerConfig::canBeSearched(
const QString& folder)
const
53 return d->m_config.canBeSearched(folder);
58 return d->m_config.excludeFolders();
63 return d->m_config.includeFolders();
68 return d->m_config.excludeFilters();
73 return d->m_config.excludeMimetypes();
76void IndexerConfig::setExcludeFolders(
const QStringList& excludeFolders)
78 d->m_settings.setExcludedFolders(excludeFolders);
81void IndexerConfig::setIncludeFolders(
const QStringList& includeFolders)
83 d->m_settings.setFolders(includeFolders);
86void IndexerConfig::setExcludeFilters(
const QStringList& excludeFilters)
88 d->m_settings.setExcludedFilters(excludeFilters);
91void IndexerConfig::setExcludeMimetypes(
const QStringList& excludeMimetypes)
93 d->m_settings.setExcludedMimetypes(excludeMimetypes);
96bool IndexerConfig::indexHidden()
const
98 return d->m_settings.indexHiddenFolders();
101void IndexerConfig::setIndexHidden(
bool value)
const
103 d->m_settings.setIndexHiddenFolders(value);
106bool IndexerConfig::onlyBasicIndexing()
const
108 return d->m_settings.onlyBasicIndexing();
111void IndexerConfig::setOnlyBasicIndexing(
bool value)
113 d->m_settings.setOnlyBasicIndexing(value);
116void IndexerConfig::refresh()
const
118 org::kde::baloo::main
mainInterface(QStringLiteral(
"org.kde.baloo"),
Active config class which emits signals if the config was changed, for example if the KCM saved the c...
Implements storage for docIds without any associated data Instantiated for:
QDBusConnection sessionBus()