// 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 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 versions() const; QStringList namespaces() const; QMap namespaceToFileName() const; static HelpDocSettings readSettings(QHelpEngineCore *helpEngine); static bool applySettings(QHelpEngineCore *helpEngine, const HelpDocSettings &settings); private: QSharedDataPointer d; }; QT_END_NAMESPACE #endif // HELPDOCSETTINGS_H