Baloo::FileIndexerConfig
#include <fileindexerconfig.h>
Public Slots | |
void | forceConfigUpdate () |
Detailed Description
Active config class which emits signals if the config was changed, for example if the KCM saved the config file.
Definition at line 30 of file fileindexerconfig.h.
Constructor & Destructor Documentation
◆ FileIndexerConfig()
Definition at line 37 of file fileindexerconfig.cpp.
◆ ~FileIndexerConfig()
|
override |
Definition at line 48 of file fileindexerconfig.cpp.
Member Function Documentation
◆ canBeSearched()
Check if folder
can be searched.
folder
can be searched if itself or one of its descendants is indexed.
Example: if ~/foo is not indexed and ~/foo/bar is indexed then ~/foo can be searched.
- Returns
true
if thefolder
can be searched.
Definition at line 121 of file fileindexerconfig.cpp.
◆ databaseVersion()
int Baloo::FileIndexerConfig::databaseVersion | ( | ) | const |
Returns the internal version number of the Baloo database.
Definition at line 359 of file fileindexerconfig.cpp.
◆ excludeFilters()
QStringList Baloo::FileIndexerConfig::excludeFilters | ( | ) | const |
Definition at line 86 of file fileindexerconfig.cpp.
◆ excludeFolders()
QStringList Baloo::FileIndexerConfig::excludeFolders | ( | ) | const |
Folders that are excluded from indexing.
(Descendant folders of an excluded folder can be added and they will be indexed.)
- Returns
- list of paths.
Definition at line 73 of file fileindexerconfig.cpp.
◆ excludeMimetypes()
QStringList Baloo::FileIndexerConfig::excludeMimetypes | ( | ) | const |
Definition at line 106 of file fileindexerconfig.cpp.
◆ folderInFolderList()
Check if path
is in the list of folders to be indexed taking include and exclude folders into account.
folder
is set to the folder which was the reason for the decision.
Definition at line 205 of file fileindexerconfig.cpp.
◆ forceConfigUpdate
|
slot |
Reread the config from disk and update the configuration cache.
This is only required for testing as normally the config updates itself whenever the config file on disk changes.
- Returns
true
if the config has actually changed
Definition at line 347 of file fileindexerconfig.cpp.
◆ includeFolders()
QStringList Baloo::FileIndexerConfig::includeFolders | ( | ) | const |
Folders to search for files to index and analyze.
- Returns
- list of paths.
Definition at line 60 of file fileindexerconfig.cpp.
◆ indexHiddenFilesAndFolders()
bool Baloo::FileIndexerConfig::indexHiddenFilesAndFolders | ( | ) | const |
Definition at line 111 of file fileindexerconfig.cpp.
◆ indexingEnabled()
bool Baloo::FileIndexerConfig::indexingEnabled | ( | ) | const |
Definition at line 370 of file fileindexerconfig.cpp.
◆ maxUncomittedFiles()
uint Baloo::FileIndexerConfig::maxUncomittedFiles | ( | ) | const |
Returns batch size.
Definition at line 375 of file fileindexerconfig.cpp.
◆ onlyBasicIndexing()
bool Baloo::FileIndexerConfig::onlyBasicIndexing | ( | ) | const |
Definition at line 116 of file fileindexerconfig.cpp.
◆ setDatabaseVersion()
void Baloo::FileIndexerConfig::setDatabaseVersion | ( | int | version | ) |
Definition at line 364 of file fileindexerconfig.cpp.
◆ shouldBeIndexed()
Check if file or folder path
should be indexed taking into account the includeFolders(), the excludeFolders(), and the excludeFilters().
Inclusion takes precedence.
Be aware that this method does not check if parent dirs match any of the exclude filters. Only the path of the dir itself it checked.
- Returns
true
if the file or folder atpath
should be indexed according to the configuration.
Definition at line 143 of file fileindexerconfig.cpp.
◆ shouldFileBeIndexed()
Check fileName
for all exclude filters.
This does not take file paths into account.
- Returns
true
if a file with namefilename
should be indexed according to the configuration.
Definition at line 192 of file fileindexerconfig.cpp.
◆ shouldFolderBeIndexed()
Check if the folder at path
should be indexed.
Be aware that this method does not check if parent dirs match any of the exclude filters. Only the name of the dir itself it checked.
- Returns
true
if the folder atpath
should be indexed according to the configuration.
Definition at line 155 of file fileindexerconfig.cpp.
◆ shouldMimeTypeBeIndexed()
Checks if mimeType
should be indexed.
- Returns
true
if the mimetype should be indexed according to the configuration
Definition at line 200 of file fileindexerconfig.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.