summaryrefslogtreecommitdiff
path: root/src/backend/cswordmodulesearch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/cswordmodulesearch.h')
-rw-r--r--src/backend/cswordmodulesearch.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/backend/cswordmodulesearch.h b/src/backend/cswordmodulesearch.h
index aa864b0..48b66d2 100644
--- a/src/backend/cswordmodulesearch.h
+++ b/src/backend/cswordmodulesearch.h
@@ -1,8 +1,10 @@
/*********
*
+* In the name of the Father, and of the Son, and of the Holy Spirit.
+*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
@@ -101,6 +103,17 @@ class CSwordModuleSearch: public QObject {
static QList<const CSwordModuleInfo*> unindexedModules(
const QList<const CSwordModuleInfo*> &modules);
+ /**
+ * This function highlights the searched text in the content using the search type given by search flags
+ */
+ static QString highlightSearchedText(const QString& content, const QString& searchedText);
+
+ protected:
+ /**
+ * This function breakes the queryString into clucene tokens
+ */
+ static QStringList queryParser(const QString& queryString);
+
private: /* Fields: */
QString m_searchText;
sword::ListKey m_searchScope;