blob: bcdedb34aecf993a37259b418bb71fce08a3d3d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef HELPDOCSETTINGS_H
#define HELPDOCSETTINGS_H
#include <QtCore/QSharedDataPointer>
QT_BEGIN_NAMESPACE
class QVersionNumber;
class QHelpEngineCore;
class HelpDocSettingsPrivate;
class HelpDocSettings final
{
public:
HelpDocSettings();
HelpDocSettings(const HelpDocSettings &other);
HelpDocSettings(HelpDocSettings &&other);
~HelpDocSettings();
HelpDocSettings &operator=(const HelpDocSettings &other);
HelpDocSettings &operator=(HelpDocSettings &&other);
void swap(HelpDocSettings &other) noexcept
{ d.swap(other.d); }
bool addDocumentation(const QString &fileName);
bool removeDocumentation(const QString &namespaceName);
QString namespaceName(const QString &fileName) const;
QStringList components() const;
QList<QVersionNumber> versions() const;
QStringList namespaces() const;
QMap<QString, QString> namespaceToFileName() const;
static HelpDocSettings readSettings(QHelpEngineCore *helpEngine);
static bool applySettings(QHelpEngineCore *helpEngine, const HelpDocSettings &settings);
private:
QSharedDataPointer<HelpDocSettingsPrivate> d;
};
QT_END_NAMESPACE
#endif // HELPDOCSETTINGS_H
|