real time indexer: monitor the configuration for changes and reexecute when needed

This commit is contained in:
Jean-Francois Dockes
2012-03-06 09:35:21 +01:00
parent 7ce1a5f2e4
commit 2c6b023a88
8 changed files with 87 additions and 8 deletions
+15
View File
@@ -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");
+4
View File
@@ -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/ */