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
qhelpfilterengine.h
Go to the documentation of this file.
1// Copyright (C) 2018 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 QHELPFILTERENGINE_H
6#define QHELPFILTERENGINE_H
7
8#include <QtHelp/qhelp_global.h>
9
10#include <QtCore/qobject.h>
11
13
15class QHelpEngineCore;
16class QHelpFilterData;
18template <class K, class T>
19class QMap;
20class QVersionNumber;
21
22class QHELP_EXPORT QHelpFilterEngine : public QObject
23{
24 Q_OBJECT
25public:
26 QMap<QString, QString> namespaceToComponent() const;
27 QMap<QString, QVersionNumber> namespaceToVersion() const;
28
29 QStringList filters() const;
30
31 QString activeFilter() const;
32 bool setActiveFilter(const QString &filterName);
33
34 QStringList availableComponents() const;
35 QList<QVersionNumber> availableVersions() const;
36
37 QHelpFilterData filterData(const QString &filterName) const;
38 bool setFilterData(const QString &filterName, const QHelpFilterData &filterData);
39
40 bool removeFilter(const QString &filterName);
41
42 QStringList namespacesForFilter(const QString &filterName) const;
43
44 QStringList indices() const;
45 QStringList indices(const QString &filterName) const;
46
47Q_SIGNALS:
48 void filterActivated(const QString &newFilter);
49
50protected:
51 explicit QHelpFilterEngine(QHelpEngineCore *helpEngine);
52 virtual ~QHelpFilterEngine();
53
54private:
55 void setCollectionHandler(QHelpCollectionHandler *collectionHandler);
56
57 QHelpFilterEnginePrivate *d;
58 friend class QHelpEngineCorePrivate;
59};
60
61QT_END_NAMESPACE
62
63#endif // QHELPFILTERENGINE_H
QHelpSearchEngine * searchEngine
QHelpIndexWidget * indexWidget
QHelpContentModel * contentModel
QHelpEnginePrivate(QHelpEngineCore *helpEngineCore)
QHelpEngineCore * m_helpEngineCore
bool m_isApplyCurrentFilterScheduled
QHelpIndexModel * indexModel
QHelpContentWidget * contentWidget
The QHelpEngine class provides access to contents and indices of the help engine.
Definition qhelpengine.h:20
The QHelpFilterEngine class provides a filtered view of the help contents.
Definition qmap.h:295
\inmodule QtCore
Combined button and popup list for selecting options.