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
document.h
Go to the documentation of this file.
1// Copyright (C) 2025 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 QDOC_IR_DOCUMENT_H
5#define QDOC_IR_DOCUMENT_H
6
7#include "contentblock.h"
8#include "member.h"
9
10#include "qdoc/access.h"
11#include "qdoc/genustypes.h"
12#include "qdoc/status.h"
13
14#include <QJsonObject>
15#include <QList>
16#include <QString>
17
18#include <optional>
19
21
22namespace IR {
23
51
79
81{
82 // Classification
84 Genus genus { Genus::DontCare };
87
88 // Identity
89 QString title; // Page title
90 QString fullTitle; // Full qualified title
91 QString url; // Output file URL (relative)
92 QString since; // Version introduced (e.g., "6.8")
93 QString deprecatedSince; // Version deprecated (e.g., "6.5")
94 QString brief; // Brief description
95
96 // Content
99
100 // Members (for aggregate pages)
103
104 // QML type metadata (populated only for QML type pages)
106
107 // Collection metadata (populated for module, QML module, and group pages)
109
110 // Members sub-page URL (set when a members listing page is generated)
112
113 QJsonObject toJson() const;
114};
115
116} // namespace IR
117
118QT_END_NAMESPACE
119
120#endif // QDOC_IR_DOCUMENT_H
Access
Definition access.h:11
Assembles IR Documents from pre-extracted metadata.
Definition builder.h:15
Builder()=default
Document buildPageIR(PageMetadata pm) const
Definition builder.cpp:59
Status
Specifies the status of the QQmlIncubator.
NodeType
Definition genustypes.h:150
Definition builder.cpp:14
Combined button and popup list for selecting options.
@ Public
Definition access.h:11
@ Active
Definition status.h:14
QString cmakeComponent
Definition document.h:58
QString logicalModuleVersion
Definition document.h:55
QList< MemberEntry > members
Definition document.h:75
QJsonObject toJson() const
Converts the CollectionInfo to a QJsonObject for template rendering.
Definition document.cpp:99
QString qtVariable
Definition document.h:56
QList< MemberEntry > classes
Definition document.h:74
QString cmakePackage
Definition document.h:57
QString logicalModuleName
Definition document.h:54
QList< MemberEntry > namespaces
Definition document.h:73
QString cmakeTargetItem
Definition document.h:59
Intermediate representation for a documentation topic.
Definition document.h:81
QList< ContentBlock > body
Definition document.h:97
QString fullTitle
Definition document.h:90
QString membersPageUrl
Definition document.h:111
QList< SectionIR > summarySections
Definition document.h:101
std::optional< QmlTypeInfo > qmlTypeInfo
Definition document.h:105
QString url
Definition document.h:91
QList< SectionIR > detailSections
Definition document.h:102
Access access
Definition document.h:86
QString title
Definition document.h:89
QString brief
Definition document.h:94
Status status
Definition document.h:85
QJsonObject contentJson
Definition document.h:98
NodeType nodeType
Definition document.h:83
QString deprecatedSince
Definition document.h:93
std::optional< CollectionInfo > collectionInfo
Definition document.h:108
QJsonObject toJson() const
Converts the Document to a QJsonObject for template rendering.
Definition document.cpp:141
QString since
Definition document.h:92
Genus genus
Definition document.h:84
std::optional< InheritsInfo > inherits
Definition document.h:35
QJsonObject toJson() const
Converts the QmlTypeInfo to a QJsonObject for template rendering.
Definition document.cpp:38
std::optional< NativeTypeInfo > nativeType
Definition document.h:47
QList< InheritedByEntry > inheritedBy
Definition document.h:41
QString importStatement
Definition document.h:26