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// Qt-Security score:significant reason:default
4
5#ifndef QHELPSEARCHENGINECORE_H
6#define QHELPSEARCHENGINECORE_H
7
8#include <QtHelp/qhelp_global.h>
9#include <QtHelp/qhelpsearchresult.h>
10
11#include <QtCore/qobject.h>
12#include <QtCore/qshareddata.h>
13
15
16class QHelpEngineCore;
18
19class QHELP_EXPORT QHelpSearchEngineCore : public QObject
20{
21 Q_OBJECT
22 Q_DECLARE_PRIVATE(QHelpSearchEngineCore)
23
24public:
25 explicit QHelpSearchEngineCore(QHelpEngineCore *helpEngine, QObject *parent = nullptr);
26 ~QHelpSearchEngineCore() override;
27
28 int searchResultCount() const;
29 QList<QHelpSearchResult> searchResults(int start, int end) const;
30 QString searchInput() const;
31
32public Q_SLOTS:
33 void reindexDocumentation();
34 void cancelIndexing();
35
36 void search(const QString &searchInput);
37 void cancelSearching();
38
39 void scheduleIndexDocumentation();
40
41Q_SIGNALS:
42 void indexingStarted();
43 void indexingFinished();
44
45 void searchingStarted();
46 void searchingFinished();
47};
48
49QT_END_NAMESPACE
50
51#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.