Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qhelpsearchenginecore.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QHELPSEARCHENGINECORE_H
5#define QHELPSEARCHENGINECORE_H
6
7#include <QtHelp/qhelp_global.h>
8#include <QtHelp/qhelpsearchresult.h>
9
10#include <QtCore/qobject.h>
11#include <QtCore/qshareddata.h>
12
14
15class QHelpEngineCore;
17
18class QHELP_EXPORT QHelpSearchEngineCore : public QObject
19{
20 Q_OBJECT
21 Q_DECLARE_PRIVATE(QHelpSearchEngineCore)
22
23public:
24 explicit QHelpSearchEngineCore(QHelpEngineCore *helpEngine, QObject *parent = nullptr);
25 ~QHelpSearchEngineCore() override;
26
27 int searchResultCount() const;
28 QList<QHelpSearchResult> searchResults(int start, int end) const;
29 QString searchInput() const;
30
31public Q_SLOTS:
32 void reindexDocumentation();
33 void cancelIndexing();
34
35 void search(const QString &searchInput);
36 void cancelSearching();
37
38 void scheduleIndexDocumentation();
39
40Q_SIGNALS:
41 void indexingStarted();
42 void indexingFinished();
43
44 void searchingStarted();
45 void searchingFinished();
46};
47
48QT_END_NAMESPACE
49
50#endif // QHELPSEARCHENGINECORE_H
The QHelpSearchEngineCore class provides access to index and search documentation.
QHelpSearchResultWidget * resultWidget
QHelpSearchQueryWidget * queryWidget
QHelpSearchEngineCore m_searchEngine
Combined button and popup list for selecting options.