real time indexer: monitor the configuration for changes and reexecute when needed
This commit is contained in:
@@ -893,6 +893,21 @@ string RclConfig::getDbDir()
|
||||
return path_canon(dbdir);
|
||||
}
|
||||
|
||||
bool RclConfig::sourceChanged()
|
||||
{
|
||||
if (m_conf && m_conf->sourceChanged())
|
||||
return true;
|
||||
if (mimemap && mimemap->sourceChanged())
|
||||
return true;
|
||||
if (mimeconf && mimeconf->sourceChanged())
|
||||
return true;
|
||||
if (mimeview && mimeview->sourceChanged())
|
||||
return true;
|
||||
if (m_fields && m_fields->sourceChanged())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
string RclConfig::getStopfile()
|
||||
{
|
||||
return path_cat(getConfDir(), "stoplist.txt");
|
||||
|
||||
@@ -88,6 +88,10 @@ class RclConfig {
|
||||
* constructor it it is the default one (~/.recoll) and it did
|
||||
* not exist yet. */
|
||||
string getConfDir() {return m_confdir;}
|
||||
|
||||
/** Check if the config files were modified since we read them */
|
||||
bool sourceChanged();
|
||||
|
||||
/** Returns true if this is ~/.recoll */
|
||||
bool isDefaultConfig();
|
||||
/** Get the local value for /usr/local/share/recoll/ */
|
||||
|
||||
Reference in New Issue
Block a user