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
76
78{
82 Access access { Access::Public };
83 };
84
89
94
100
105
112
117
127 bool suppressInheritance { false };
128
130
131 bool isInnerClass { false };
132 bool isNamespace { false };
133 bool isHeader { false };
134
135 bool isPartialNamespace { false };
138
141
144
146
148
149 bool hasObsoleteMembers { false };
150};
151
184
208
209} // namespace IR
210
211QT_END_NAMESPACE
212
213#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:175
Status
Specifies the status of the QQmlIncubator.
NodeType
Definition genustypes.h:150
Definition builder.cpp:14
static QList< ContentBlock > buildThreadSafetyAdmonition(const CppReferenceData::ThreadSafetyInfo &ts, const QString &typeWord)
Definition builder.cpp:86
static InlineContent makeResolvedLink(const QString &name, const QString &href)
Definition builder.cpp:53
LinkState
LinkOrigin
static void appendExceptionList(QList< InlineContent > &inlines, const QString &prefix, const QString &topicName, const QList< CppReferenceData::ThreadSafetyExceptionEntry > &exceptions)
Definition builder.cpp:63
BlockType
static InlineContent makeTopicLink(const QString &topicName)
Definition builder.cpp:43
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:77
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:76
QString cmakePackage
Definition document.h:59
QString logicalModuleName
Definition document.h:56
QList< MemberEntry > namespaces
Definition document.h:75
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
QStringList ancestorNames
QList< ThreadSafetyExceptionEntry > reentrantExceptions
Definition document.h:113
QList< ThreadSafetyExceptionEntry > nonReentrantExceptions
Definition document.h:115
QList< ThreadSafetyExceptionEntry > threadSafeExceptions
Definition document.h:114
QList< SignatureSpan > templateDeclSpans
Definition document.h:134
std::optional< ThreadSafetyInfo > threadSafety
Definition document.h:150
QList< ContentBlock > threadSafetyAdmonition
Definition document.h:151
QList< ComparisonEntry > comparisonEntries
Definition document.h:148
QString cmakeTargetLinkLibraries
Definition document.h:125
QList< DerivedClassEntry > derivedClasses
Definition document.h:131
QStringList ancestorNames
Definition document.h:145
QString fullNamespaceModuleName
Definition document.h:142
QString cmakeFindPackage
Definition document.h:124
std::optional< QmlNativeTypeLink > qmlNativeType
Definition document.h:129
QString obsoleteMembersUrl
Definition document.h:156
QString fullNamespaceHref
Definition document.h:141
QList< GroupEntry > groups
Definition document.h:153
QString selfComparisonCategory
Definition document.h:147
QList< BaseClassEntry > baseClasses
Definition document.h:130
QJsonObject toJson() const
Converts CppReferenceInfo to a QJsonObject for template rendering.
Definition document.cpp:139
Intermediate representation for a documentation topic.
Definition document.h:197
QList< ContentBlock > body
Definition document.h:213
QString fullTitle
Definition document.h:206
QString membersPageUrl
Definition document.h:233
QList< SectionIR > summarySections
Definition document.h:217
std::optional< QmlTypeInfo > qmlTypeInfo
Definition document.h:221
QString url
Definition document.h:207
QList< SectionIR > detailSections
Definition document.h:218
std::optional< NavigationInfo > navigationInfo
Definition document.h:230
Access access
Definition document.h:202
QString title
Definition document.h:205
QString brief
Definition document.h:210
std::optional< CppReferenceInfo > cppReferenceInfo
Definition document.h:227
Status status
Definition document.h:201
QJsonObject contentJson
Definition document.h:214
NodeType nodeType
Definition document.h:199
QString deprecatedSince
Definition document.h:209
std::optional< CollectionInfo > collectionInfo
Definition document.h:224
QJsonObject toJson() const
Converts the Document to a QJsonObject for template rendering.
Definition document.cpp:356
QString since
Definition document.h:208
Genus genus
Definition document.h:200
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
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:188
QList< TocEntry > tocEntries
Definition document.h:190
QList< BreadcrumbEntry > breadcrumbs
Definition document.h:186
std::optional< LinkEntry > startLink
Definition document.h:189
std::optional< LinkEntry > previousLink
Definition document.h:187
QJsonObject toJson() const
Converts NavigationInfo to a QJsonObject for template rendering.
Definition document.cpp:291
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