diff options
Diffstat (limited to 'src/core/EntrySearcher.h')
-rw-r--r-- | src/core/EntrySearcher.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/EntrySearcher.h b/src/core/EntrySearcher.h index 2300fcf29..d1b17557b 100644 --- a/src/core/EntrySearcher.h +++ b/src/core/EntrySearcher.h @@ -38,7 +38,8 @@ public: Notes, AttributeKV, Attachment, - AttributeValue + AttributeValue, + Group }; struct SearchTerm @@ -50,7 +51,7 @@ public: bool exclude; }; - explicit EntrySearcher(bool caseSensitive = false); + explicit EntrySearcher(bool caseSensitive = false, bool skipProtected = false); QList<Entry*> search(const QList<SearchTerm>& searchTerms, const Group* baseGroup, bool forceSearch = false); QList<Entry*> search(const QString& searchString, const Group* baseGroup, bool forceSearch = false); @@ -61,13 +62,14 @@ public: QList<Entry*> repeatEntries(const QList<Entry*>& entries); void setCaseSensitive(bool state); - bool isCaseSensitive(); + bool isCaseSensitive() const; private: - bool searchEntryImpl(Entry* entry); + bool searchEntryImpl(const Entry* entry); void parseSearchTerms(const QString& searchString); bool m_caseSensitive; + bool m_skipProtected; QRegularExpression m_termParser; QList<SearchTerm> m_searchTerms; |