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
pagemetadata.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 QDOC_IR_PAGEMETADATA_H
5#define QDOC_IR_PAGEMETADATA_H
6
7#include "contentblock.h"
8#include "member.h"
10
11#include "qdoc/access.h"
12#include "qdoc/genustypes.h"
13#include "qdoc/status.h"
14
15#include <QtCore/QList>
16#include <QtCore/QString>
17#include <QtCore/QStringList>
18
19#include <optional>
20
22
23namespace IR {
24
50
77
79{
83 Access access { Access::Public };
84 };
85
90
95
101
106
113
118
128 bool suppressInheritance { false };
129
132
133 bool isInnerClass { false };
134 bool isNamespace { false };
135 bool isHeader { false };
136
137 bool isPartialNamespace { false };
140
143
146
148
150
151 bool hasObsoleteMembers { false };
152};
153
186
210
211} // namespace IR
212
213QT_END_NAMESPACE
214
215#endif // QDOC_IR_PAGEMETADATA_H
Assembles IR Documents from pre-extracted metadata.
Definition builder.h:15
Builder()=default
Document buildPageIR(PageMetadata pm) const
Definition builder.cpp:196
Status
Specifies the status of the QQmlIncubator.
NodeType
Definition genustypes.h:154
Definition builder.cpp:14
static QList< ContentBlock > buildThreadSafetyAdmonition(const CppReferenceData::ThreadSafetyInfo &ts, const QString &typeWord)
Definition builder.cpp:107
static InlineContent makeResolvedLink(const QString &name, const QString &href)
Definition builder.cpp:74
LinkState
LinkOrigin
static void appendExceptionList(QList< InlineContent > &inlines, const QString &prefix, const QString &topicName, const QList< CppReferenceData::ThreadSafetyExceptionEntry > &exceptions)
Definition builder.cpp:84
BlockType
static InlineContent makeTopicLink(const QString &topicName)
Definition builder.cpp:54
static InlineContent makeTextInline(const QString &text)
Definition builder.cpp:35
static void gatherBodyTocEntries(const QList< ContentBlock > &blocks, QList< NavigationInfo::TocEntry > &out)
Definition builder.cpp:16
InlineType
Combined button and popup list for selecting options.
@ Active
Definition status.h:14
A single entry in an all-members listing page.
Definition member.h:98
QString signature
Definition member.h:99
QStringList hints
Definition member.h:102
QList< AllMemberEntry > children
Definition member.h:104
QJsonObject toJson() const
Converts the entry to a QJsonObject for template rendering.
Definition member.cpp:461
QList< IR::SignatureSpan > signatureSpans
Definition member.h:100
Intermediate representation of the all-members listing page.
Definition member.h:115
QList< AllMemberEntry > members
Definition member.h:119
QJsonObject toJson() const
Converts the all-members IR to a QJsonObject for template rendering.
Definition member.cpp:540
QList< MemberGroup > memberGroups
Definition member.h:120
QString typeHref
Definition member.h:117
QString typeName
Definition member.h:116
QString logicalModuleVersion
QList< MemberEntry > classes
QString logicalModuleName
QList< MemberEntry > members
QList< MemberEntry > namespaces
QString cmakeComponent
Definition document.h:60
QString logicalModuleVersion
Definition document.h:57
QList< MemberEntry > members
Definition document.h:78
QJsonObject toJson() const
Converts the CollectionInfo to a QJsonObject for template rendering.
Definition document.cpp:99
QString qtVariable
Definition document.h:58
QList< MemberEntry > classes
Definition document.h:77
QString cmakePackage
Definition document.h:59
QString logicalModuleName
Definition document.h:56
QList< MemberEntry > namespaces
Definition document.h:76
QString cmakeTargetItem
Definition document.h:61
Represents a structural block element in documentation.
QJsonObject toJson() const
Converts the ContentBlock to a QJsonObject for template rendering.
QList< InlineContent > inlineContent
Rich inline content.
QJsonObject attributes
Type-specific metadata.
QString plainText() const
Returns the concatenated plain text of this block's content, recursively.
QList< ContentBlock > children
Nested blocks.
QList< ThreadSafetyExceptionEntry > reentrantExceptions
QList< ThreadSafetyExceptionEntry > nonReentrantExceptions
QList< ThreadSafetyExceptionEntry > threadSafeExceptions
QList< BaseClassEntry > baseClasses
QList< SignatureSpan > templateDeclSpans
std::optional< ThreadSafetyInfo > threadSafety
QString cmakeTargetLinkLibraries
QString fullNamespaceModuleName
QList< ComparisonEntry > comparisonEntries
QList< GroupEntry > groups
std::optional< QmlNativeTypeLink > qmlNativeType
QList< DerivedClassEntry > derivedClasses
QList< QString > referencedConcepts
QStringList ancestorNames
QList< ThreadSafetyExceptionEntry > reentrantExceptions
Definition document.h:114
QList< ThreadSafetyExceptionEntry > nonReentrantExceptions
Definition document.h:116
QList< ThreadSafetyExceptionEntry > threadSafeExceptions
Definition document.h:115
QList< QString > referencedConcepts
Definition document.h:136
QList< SignatureSpan > templateDeclSpans
Definition document.h:135
std::optional< ThreadSafetyInfo > threadSafety
Definition document.h:152
QList< ContentBlock > threadSafetyAdmonition
Definition document.h:153
QList< ComparisonEntry > comparisonEntries
Definition document.h:150
QString cmakeTargetLinkLibraries
Definition document.h:126
QList< DerivedClassEntry > derivedClasses
Definition document.h:132
QStringList ancestorNames
Definition document.h:147
QString fullNamespaceModuleName
Definition document.h:144
QString cmakeFindPackage
Definition document.h:125
std::optional< QmlNativeTypeLink > qmlNativeType
Definition document.h:130
QString obsoleteMembersUrl
Definition document.h:158
QString fullNamespaceHref
Definition document.h:143
QList< GroupEntry > groups
Definition document.h:155
QString selfComparisonCategory
Definition document.h:149
QList< BaseClassEntry > baseClasses
Definition document.h:131
QJsonObject toJson() const
Converts CppReferenceInfo to a QJsonObject for template rendering.
Definition document.cpp:140
Intermediate representation for a documentation topic.
Definition document.h:199
QList< ContentBlock > body
Definition document.h:217
QString fullTitle
Definition document.h:208
QString membersPageUrl
Definition document.h:237
QList< SectionIR > summarySections
Definition document.h:221
std::optional< QmlTypeInfo > qmlTypeInfo
Definition document.h:225
QString url
Definition document.h:209
QList< SectionIR > detailSections
Definition document.h:222
std::optional< NavigationInfo > navigationInfo
Definition document.h:234
Access access
Definition document.h:204
QString title
Definition document.h:207
QString brief
Definition document.h:214
std::optional< CppReferenceInfo > cppReferenceInfo
Definition document.h:231
Status status
Definition document.h:203
QJsonObject contentJson
Definition document.h:218
NodeType nodeType
Definition document.h:201
QString deprecatedSince
Definition document.h:213
std::optional< CollectionInfo > collectionInfo
Definition document.h:228
QJsonObject toJson() const
Converts the Document to a QJsonObject for template rendering.
Definition document.cpp:362
QString since
Definition document.h:212
Genus genus
Definition document.h:202
Intermediate representation of a single enum value.
Definition member.h:28
QJsonObject toJson() const
\variable IR::EnumValueIR::name Enumerator name.
Definition member.cpp:93
QString value
Definition member.h:30
QString since
Definition member.h:31
QString name
Definition member.h:29
Summary of members inherited from a single base class.
Definition member.h:80
QJsonObject toJson() const
\variable IR::InheritedMembersIR::className Fully qualified name of the base class.
Definition member.cpp:347
LinkData(LinkOrigin o, LinkState s, std::optional< SourceLocation > loc=std::nullopt)
std::optional< SourceLocation > sourceLocation
Set for author-written links; unset for synthesized links.
QString filePath
Source file of the originating atom.
int lineNo
Line number within filePath.
Represents inline content within a documentation block.
QJsonObject attributes
Type-specific metadata.
QString href
Link target or image source.
QJsonObject toJson() const
Converts the InlineContent to a QJsonObject for template rendering.
QString text
Text content.
QList< InlineContent > children
Nested inline content.
std::optional< LinkData > link
QString title
Link tooltip or image alt text.
QString plainText() const
Returns the concatenated plain text of this inline element and all its children, recursively.
Members grouped by originating QML type in an all-members listing.
Definition member.h:108
QList< AllMemberEntry > members
Definition member.h:111
QString typeHref
Definition member.h:110
QString typeName
Definition member.h:109
QJsonObject toJson() const
Converts the member group to a QJsonObject for template rendering.
Definition member.cpp:508
Intermediate representation of a single documentable member.
Definition member.h:35
QList< ParameterIR > parameters
Definition member.h:46
QString dataType
Definition member.h:63
QString since
Definition member.h:69
bool isPrimaryOverload
Definition member.h:48
QString comparisonCategory
Definition member.h:71
QString noexceptNote
Definition member.h:73
QString threadSafety
Definition member.h:70
QString fullName
Definition member.h:37
QList< IR::SignatureSpan > signatureSpans
Definition member.h:68
QString synopsis
Definition member.h:67
bool isConst
Definition member.h:53
QList< ContentBlock > alsoList
Definition member.h:75
int overloadNumber
Definition member.h:47
QJsonObject toJson() const
\variable IR::MemberIR::name Unqualified member name.
Definition member.cpp:229
QString href
Definition member.h:39
bool isAttached
Definition member.h:59
bool isDefault
Definition member.h:60
bool isSlot
Definition member.h:56
QString name
Definition member.h:36
bool isRequired
Definition member.h:62
bool isStatic
Definition member.h:52
QString signature
Definition member.h:38
QString anchorId
Definition member.h:66
bool isNoexcept
Definition member.h:72
QList< EnumValueIR > enumValues
Definition member.h:50
QList< ContentBlock > body
Definition member.h:74
bool isSignal
Definition member.h:55
Access access
Definition member.h:43
NodeType nodeType
Definition member.h:42
bool isReadOnly
Definition member.h:61
QString brief
Definition member.h:40
bool isVirtual
Definition member.h:54
Status status
Definition member.h:44
QList< TocEntry > tocEntries
QList< BreadcrumbEntry > breadcrumbs
std::optional< LinkEntry > previousLink
std::optional< LinkEntry > startLink
std::optional< LinkEntry > nextLink
std::optional< LinkEntry > nextLink
Definition document.h:190
QList< TocEntry > tocEntries
Definition document.h:192
QList< BreadcrumbEntry > breadcrumbs
Definition document.h:188
std::optional< LinkEntry > startLink
Definition document.h:191
std::optional< LinkEntry > previousLink
Definition document.h:189
QJsonObject toJson() const
Converts NavigationInfo to a QJsonObject for template rendering.
Definition document.cpp:297
QList< ContentBlock > body
std::optional< QmlTypeData > qmlTypeData
QList< SectionIR > summarySections
QList< SectionIR > detailSections
std::optional< CppReferenceData > cppReferenceData
std::optional< CollectionData > collectionData
NavigationData navigationData
QString deprecatedSince
Intermediate representation of a function parameter.
Definition member.h:21
QString name
Definition member.h:23
QString type
Definition member.h:22
QJsonObject toJson() const
\variable IR::ParameterIR::type Parameter type (such as "const QString &").
Definition member.cpp:49
QString defaultValue
Definition member.h:24
std::optional< NativeTypeInfo > nativeType
std::optional< InheritsInfo > inherits
QString importStatement
QList< InheritedByEntry > inheritedBy
std::optional< InheritsInfo > inherits
Definition document.h:37
QJsonObject toJson() const
Converts the QmlTypeInfo to a QJsonObject for template rendering.
Definition document.cpp:38
std::optional< NativeTypeInfo > nativeType
Definition document.h:49
QList< InheritedByEntry > inheritedBy
Definition document.h:43
QString importStatement
Definition document.h:28
Intermediate representation of a member summary section.
Definition member.h:87
QList< MemberIR > members
Definition member.h:92
QString singular
Definition member.h:90
QJsonObject toJson() const
\variable IR::SectionIR::id Stable ASCII identifier for anchor links, generated from the title via Te...
Definition member.cpp:413
QList< MemberIR > reimplementedMembers
Definition member.h:93
QString title
Definition member.h:89
QString plural
Definition member.h:91
QList< InheritedMembersIR > inheritedMembers
Definition member.h:94
QString id
Definition member.h:88
Represents a single span within a structured signature.
QString plainText() const
Returns the concatenated plain text of this span and all its children, recursively.
QJsonObject toJson() const
Converts the SignatureSpan to a QJsonObject for template rendering.
QList< SignatureSpan > children