| 1 | // Copyright (C) 2016 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 QHELPENGINE_H |
| 5 | #define QHELPENGINE_H |
| 6 | |
| 7 | #include <QtHelp/qhelpenginecore.h> |
| 8 | |
| 9 | QT_BEGIN_NAMESPACE |
| 10 | |
| 11 | class QHelpContentModel; |
| 12 | class QHelpContentWidget; |
| 13 | class QHelpIndexModel; |
| 14 | class QHelpIndexWidget; |
| 15 | class QHelpEnginePrivate; |
| 16 | class QHelpSearchEngine; |
| 17 | |
| 18 | class QHELP_EXPORT QHelpEngine : public QHelpEngineCore |
| 19 | { |
| 20 | Q_OBJECT |
| 21 | |
| 22 | public: |
| 23 | explicit QHelpEngine(const QString &collectionFile, QObject *parent = nullptr); |
| 24 | ~QHelpEngine(); |
| 25 | |
| 26 | QHelpContentModel *contentModel() const; |
| 27 | QHelpIndexModel *indexModel() const; |
| 28 | |
| 29 | QHelpContentWidget *contentWidget(); |
| 30 | QHelpIndexWidget *indexWidget(); |
| 31 | |
| 32 | QHelpSearchEngine *searchEngine(); |
| 33 | |
| 34 | private: |
| 35 | QHelpEnginePrivate *d; |
| 36 | |
| 37 | friend class HelpEngineWrapper; |
| 38 | }; |
| 39 | |
| 40 | QT_END_NAMESPACE |
| 41 | |
| 42 | #endif // QHELPENGINE_H |
| 43 |
