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 HELPGENERATOR_H |
5 | #define HELPGENERATOR_H |
6 | |
7 | #include <QtCore/QObject> |
8 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | class QHelpProjectData; |
12 | class HelpGeneratorPrivate; |
13 | |
14 | class HelpGenerator : public QObject |
15 | { |
16 | Q_OBJECT |
17 | |
18 | public: |
19 | HelpGenerator(bool silent = false); |
20 | bool generate(QHelpProjectData *helpData, |
21 | const QString &outputFileName); |
22 | bool checkLinks(const QHelpProjectData &helpData); |
23 | QString error() const; |
24 | |
25 | private slots: |
26 | void printStatus(const QString &msg); |
27 | void printWarning(const QString &msg); |
28 | |
29 | private: |
30 | HelpGeneratorPrivate *m_private; |
31 | }; |
32 | |
33 | QT_END_NAMESPACE |
34 | |
35 | #endif |
36 | |