diff options
Diffstat (limited to 'src/backend/drivers/cswordmoduleinfo.h')
-rw-r--r-- | src/backend/drivers/cswordmoduleinfo.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/backend/drivers/cswordmoduleinfo.h b/src/backend/drivers/cswordmoduleinfo.h index 9f32b12..a767c41 100644 --- a/src/backend/drivers/cswordmoduleinfo.h +++ b/src/backend/drivers/cswordmoduleinfo.h @@ -144,10 +144,17 @@ class CSwordModuleInfo: public QObject { * Returns the base directory for search indices */ static QString getGlobalBaseIndexLocation(); + /** - * Removes search index for this module, even if the module is not there any more + Removes the search index for this module (rm -rf). */ - static void deleteIndexForModule( QString name ); + void deleteIndex(); + + /** + Removes search index for a module, even if the module is not there any more. + \param[in] name name of the module. + */ + static void deleteIndexForModule(const QString &name); /** @@ -289,7 +296,9 @@ class CSwordModuleInfo: public QObject { /** * Returns true if this module is hidden (not to be shown with other modules in certain views). */ - inline bool isHidden() const { return m_hidden; } + inline bool isHidden() const { + return m_hidden; + } /** Shows or hides the module. @@ -336,6 +345,7 @@ class CSwordModuleInfo: public QObject { QString getFormattedConfigEntry(const QString& name) const; signals: + void hasIndexChanged(bool); void hiddenChanged(bool); void indexingFinished(); void indexingProgress(int); |