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
templatepackage.h
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef TEMPLATEPACKAGE_H
5#define TEMPLATEPACKAGE_H
6
7#include "location.h"
9
10#include <QtCore/qmap.h>
11#include <QtCore/qset.h>
12#include <QtCore/qstring.h>
13#include <QtCore/qstringlist.h>
14#include <QtCore/qvector.h>
15
17
18class Config;
19
25
27{
29
30 static constexpr int supportedSchemaVersion = 1;
31 static constexpr int providedTemplateApiVersion = 1;
32
38
48
51 bool loaded = false;
55
56 [[nodiscard]] static QString builtinId();
57 [[nodiscard]] static QString manifestFileName();
58 [[nodiscard]] static QStringList roles();
59 [[nodiscard]] static TemplatePackage resolve(const Config &config,
60 const TemplatePackageInput &input = {});
61 [[nodiscard]] bool hasErrors() const;
62 [[nodiscard]] const Format *findFormat(const QString &format) const;
63 [[nodiscard]] PipelineCapabilities capabilities() const;
64};
65
66QT_END_NAMESPACE
67
68#endif // TEMPLATEPACKAGE_H
contains all the information for a single config variable in a .qdocconf file.
Definition config.h:43
const Location & location() const
Definition config.h:55
The Config class contains the configuration variables for controlling how qdoc produces documentation...
Definition config.h:95
The Location class provides a way to mark a location in a file.
Definition location.h:20
void setLineNo(int no)
Definition location.h:42
#define CONFIG_TEMPLATEPACKAGE
Definition config.h:464
Combined button and popup list for selecting options.
Carries a source-positioned publication diagnostic without emitting it.
Kind
Distinguishes blocking errors from migration advice.
\variable OutputConfigurationInput::cliPipelines
Describes a pipeline without constructing generators or loading packages.
Supplies engine facts that a template package resolution needs.
QSet< QString > engineCapabilities
\variable TemplatePackage::Template::path
QMap< QString, Template > templates
\typealias TemplatePackage::Diagnostic
\variable TemplatePackageInput::engineCapabilities
QVector< Diagnostic > diagnostics
static constexpr int supportedSchemaVersion
QVector< Format > formats
static QStringList roles()
Returns the roles every format must map to a template, in rendering order.
OutputSelection::Diagnostic Diagnostic
bool hasErrors() const
Returns true if any diagnostic blocks use of the package.
PipelineCapabilities capabilities() const
Returns the template pipeline's capabilities as OutputSelection expects them.
static QString manifestFileName()
Returns the file name a package directory must contain.
static QString builtinId()
Returns the identifier of the package built into QDoc.
static TemplatePackage resolve(const Config &config, const TemplatePackageInput &input={})
Resolves the package that config selects through {template.package}, or the built-in package when the...
const Format * findFormat(const QString &format) const
Returns the effective entry for the case-sensitive identity format, or {nullptr} if the package does ...
QStringList searchPaths
static constexpr int providedTemplateApiVersion