diff options
Diffstat (limited to 'src/plugins/help/helpindexfilter.h')
-rw-r--r-- | src/plugins/help/helpindexfilter.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/plugins/help/helpindexfilter.h b/src/plugins/help/helpindexfilter.h index 06526ec73e..237a522443 100644 --- a/src/plugins/help/helpindexfilter.h +++ b/src/plugins/help/helpindexfilter.h @@ -34,6 +34,7 @@ #include <coreplugin/locator/ilocatorfilter.h> #include <QIcon> +#include <QMutex> namespace Help { namespace Internal { @@ -48,17 +49,26 @@ public: // ILocatorFilter void prepareSearch(const QString &entry); - QList<Core::LocatorFilterEntry> matchesFor(QFutureInterface<Core::LocatorFilterEntry> &future, const QString &entry); + QList<Core::LocatorFilterEntry> matchesFor(QFutureInterface<Core::LocatorFilterEntry> &future, + const QString &entry); void accept(Core::LocatorFilterEntry selection) const; void refresh(QFutureInterface<void> &future); + Q_INVOKABLE QSet<QString> searchMatches(const QString &databaseFilePath, + const QString &term, int limit); signals: void linkActivated(const QUrl &link) const; void linksActivated(const QMap<QString, QUrl> &links, const QString &key) const; private: + void invalidateCache(); + + QStringList m_helpDatabases; + QSet<QString> m_keywordCache; + QString m_searchTermCache; + bool m_needsUpdate; + QMutex m_mutex; QIcon m_icon; - QStringList m_keywords; }; } // namespace Internal |