1// Copyright (C) 2023 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 QQMLTYPEREGISTRARCONSTANTS_P_H
5#define QQMLTYPEREGISTRARCONSTANTS_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qlatin1stringview.h>
19
20QT_BEGIN_NAMESPACE
21
22namespace Constants {
23
24// Strings that commonly occur in .qmltypes files.
25namespace DotQmltypes {
26static constexpr QLatin1StringView S_ACCESS_SEMANTICS { "accessSemantics" };
27static constexpr QLatin1StringView S_ALIAS { "alias" };
28static constexpr QLatin1StringView S_ALIASES { "aliases" };
29static constexpr QLatin1StringView S_ARGUMENTS { "arguments" };
30static constexpr QLatin1StringView S_ATTACHED_TYPE { "attachedType" };
31static constexpr QLatin1StringView S_BINDABLE { "bindable" };
32static constexpr QLatin1StringView S_COMPONENT { "Component" };
33static constexpr QLatin1StringView S_DEFAULT_PROPERTY { "defaultProperty" };
34static constexpr QLatin1StringView S_DEFERRED_NAMES { "deferredNames" };
35static constexpr QLatin1StringView S_ENFORCES_SCOPED_ENUMS { "enforcesScopedEnums" };
36static constexpr QLatin1StringView S_ENUM { "Enum" };
37static constexpr QLatin1StringView S_EXPORTS { "exports" };
38static constexpr QLatin1StringView S_EXPORT_META_OBJECT_REVISIONS { "exportMetaObjectRevisions" };
39static constexpr QLatin1StringView S_EXTENSION { "extension" };
40static constexpr QLatin1StringView S_EXTENSION_IS_JAVA_SCRIPT { "extensionIsJavaScript" };
41static constexpr QLatin1StringView S_EXTENSION_IS_NAMESPACE { "extensionIsNamespace" };
42static constexpr QLatin1StringView S_FILE { "file" };
43static constexpr QLatin1StringView S_HAS_CUSTOM_PARSER { "hasCustomParser" };
44static constexpr QLatin1StringView S_IMMEDIATE_NAMES { "immediateNames" };
45static constexpr QLatin1StringView S_INDEX { "index" };
46static constexpr QLatin1StringView S_INTERFACES { "interfaces" };
47static constexpr QLatin1StringView S_IS_CLONED { "isCloned" };
48static constexpr QLatin1StringView S_IS_CONSTANT { "isConstant" };
49static constexpr QLatin1StringView S_IS_CONSTRUCTOR { "isConstructor" };
50static constexpr QLatin1StringView S_IS_CREATABLE { "isCreatable" };
51static constexpr QLatin1StringView S_IS_FINAL { "isFinal" };
52static constexpr QLatin1StringView S_IS_FLAG { "isFlag" };
53static constexpr QLatin1StringView S_IS_JAVASCRIPT_FUNCTION { "isJavaScriptFunction" };
54static constexpr QLatin1StringView S_IS_JAVASCRIPT_BUILTIN { "isJavaScriptBuiltin" };
55static constexpr QLatin1StringView S_IS_LIST { "isList" };
56static constexpr QLatin1StringView S_IS_POINTER { "isPointer" };
57static constexpr QLatin1StringView S_IS_READONLY { "isReadonly" };
58static constexpr QLatin1StringView S_IS_REQUIRED { "isRequired" };
59static constexpr QLatin1StringView S_IS_SCOPED { "isScoped" };
60static constexpr QLatin1StringView S_IS_SINGLETON { "isSingleton" };
61static constexpr QLatin1StringView S_IS_STRUCTURED { "isStructured" };
62static constexpr QLatin1StringView S_METHOD { "Method" };
63static constexpr QLatin1StringView S_MODULE { "Module" };
64static constexpr QLatin1StringView S_NAME { "name" };
65static constexpr QLatin1StringView S_NONE { "none" };
66static constexpr QLatin1StringView S_NOTIFY { "notify" };
67static constexpr QLatin1StringView S_PARAMETER { "Parameter" };
68static constexpr QLatin1StringView S_PARENT_PROPERTY { "parentProperty" };
69static constexpr QLatin1StringView S_PRIVATE_CLASS { "privateClass" };
70static constexpr QLatin1StringView S_PROPERTY { "Property" };
71static constexpr QLatin1StringView S_PROTOTYPE { "prototype" };
72static constexpr QLatin1StringView S_READ { "read" };
73static constexpr QLatin1StringView S_REFERENCE { "reference" };
74static constexpr QLatin1StringView S_RESET { "reset" };
75static constexpr QLatin1StringView S_REVISION { "revision" };
76static constexpr QLatin1StringView S_SEQUENCE { "sequence" };
77static constexpr QLatin1StringView S_SIGNAL { "Signal" };
78static constexpr QLatin1StringView S_TYPE { "type" };
79static constexpr QLatin1StringView S_VALUE { "value" };
80static constexpr QLatin1StringView S_VALUES { "values" };
81static constexpr QLatin1StringView S_VALUE_TYPE { "valueType" };
82static constexpr QLatin1StringView S_WRITE { "write" };
83}
84
85// Strings that commonly occur in metatypes.json files.
86namespace MetatypesDotJson {
87static constexpr QLatin1StringView S_ACCESS { "access" };
88static constexpr QLatin1StringView S_ALIAS { "alias" };
89static constexpr QLatin1StringView S_ANONYMOUS { "anonymous" };
90static constexpr QLatin1StringView S_ARGUMENTS { "arguments" };
91static constexpr QLatin1StringView S_AUTO { "auto" };
92static constexpr QLatin1StringView S_BINDABLE { "bindable" };
93static constexpr QLatin1StringView S_CLASSES { "classes" };
94static constexpr QLatin1StringView S_CLASS_INFOS { "classInfos" };
95static constexpr QLatin1StringView S_CLASS_NAME { "className" };
96static constexpr QLatin1StringView S_CONSTANT { "constant" };
97static constexpr QLatin1StringView S_CONSTRUCT { "construct" };
98static constexpr QLatin1StringView S_CONSTRUCTORS { "constructors" };
99static constexpr QLatin1StringView S_DEFAULT_PROPERTY { "DefaultProperty" };
100static constexpr QLatin1StringView S_DEFERRED_PROPERTY_NAMES { "DeferredPropertyNames" };
101static constexpr QLatin1StringView S_ENUMS { "enums" };
102static constexpr QLatin1StringView S_FALSE { "false" };
103static constexpr QLatin1StringView S_FINAL { "final" };
104static constexpr QLatin1StringView S_GADGET { "gadget" };
105static constexpr QLatin1StringView S_IMMEDIATE_PROPERTY_NAMES { "ImmediatePropertyNames" };
106static constexpr QLatin1StringView S_INDEX { "index" };
107static constexpr QLatin1StringView S_INPUT_FILE { "inputFile" };
108static constexpr QLatin1StringView S_INTERFACES { "interfaces" };
109static constexpr QLatin1StringView S_IS_CLASS { "isClass" };
110static constexpr QLatin1StringView S_IS_CLONED { "isCloned" };
111static constexpr QLatin1StringView S_IS_CONSTRUCTOR { "isConstructor" };
112static constexpr QLatin1StringView S_IS_FLAG { "isFlag" };
113static constexpr QLatin1StringView S_IS_JAVASCRIPT_FUNCTION { "isJavaScriptFunction" };
114static constexpr QLatin1StringView S_LINENUMBER { "lineNumber" };
115static constexpr QLatin1StringView S_MEMBER { "member" };
116static constexpr QLatin1StringView S_METHOD { "method" };
117static constexpr QLatin1StringView S_METHODS { "methods" };
118static constexpr QLatin1StringView S_NAME { "name" };
119static constexpr QLatin1StringView S_NAMESPACE { "namespace" };
120static constexpr QLatin1StringView S_NOTIFY { "notify" };
121static constexpr QLatin1StringView S_OBJECT { "object" };
122static constexpr QLatin1StringView S_PARENT_PROPERTY { "ParentProperty" };
123static constexpr QLatin1StringView S_PRIVATE { "private" };
124static constexpr QLatin1StringView S_PRIVATE_CLASS { "privateClass" };
125static constexpr QLatin1StringView S_PROPERTIES { "properties" };
126static constexpr QLatin1StringView S_PROPERTY { "property" };
127static constexpr QLatin1StringView S_PROTECTED { "protected" };
128static constexpr QLatin1StringView S_PUBLIC { "public" };
129static constexpr QLatin1StringView S_QUALIFIED_CLASS_NAME { "qualifiedClassName" };
130static constexpr QLatin1StringView S_READ { "read" };
131
132static constexpr QLatin1StringView S_REGISTER_ENUM_CLASSES_UNSCOPED {
133 "RegisterEnumClassesUnscoped"
134};
135
136static constexpr QLatin1StringView S_REQUIRED { "required" };
137static constexpr QLatin1StringView S_RESET { "reset" };
138static constexpr QLatin1StringView S_RETURN_TYPE { "returnType" };
139static constexpr QLatin1StringView S_REVISION { "revision" };
140static constexpr QLatin1StringView S_SIGNALS { "signals" };
141static constexpr QLatin1StringView S_SLOTS { "slots" };
142static constexpr QLatin1StringView S_STRUCTURED { "structured" };
143static constexpr QLatin1StringView S_SUPER_CLASSES { "superClasses" };
144static constexpr QLatin1StringView S_TRUE { "true" };
145static constexpr QLatin1StringView S_TYPE { "type" };
146static constexpr QLatin1StringView S_VALUE { "value" };
147static constexpr QLatin1StringView S_VALUES { "values" };
148static constexpr QLatin1StringView S_WRITE { "write" };
149
150// QML-Related Strings that commonly occur in metatypes.json files.
151namespace Qml {
152static constexpr QLatin1StringView S_ADDED_IN_VERSION { "QML.AddedInVersion" };
153static constexpr QLatin1StringView S_ATTACHED { "QML.Attached" };
154static constexpr QLatin1StringView S_CREATABLE { "QML.Creatable" };
155static constexpr QLatin1StringView S_CREATION_METHOD { "QML.CreationMethod" };
156static constexpr QLatin1StringView S_ELEMENT { "QML.Element" };
157static constexpr QLatin1StringView S_EXTENDED { "QML.Extended" };
158static constexpr QLatin1StringView S_EXTENSION_IS_JAVA_SCRIPT { "QML.ExtensionIsJavaScript" };
159static constexpr QLatin1StringView S_EXTENSION_IS_NAMESPACE { "QML.ExtensionIsNamespace" };
160static constexpr QLatin1StringView S_FOREIGN { "QML.Foreign" };
161static constexpr QLatin1StringView S_FOREIGN_IS_NAMESPACE { "QML.ForeignIsNamespace" };
162static constexpr QLatin1StringView S_HAS_CUSTOM_PARSER { "QML.HasCustomParser" };
163static constexpr QLatin1StringView S_PRIMITIVE_ALIAS { "QML.PrimitiveAlias" };
164static constexpr QLatin1StringView S_REMOVED_IN_VERSION { "QML.RemovedInVersion" };
165static constexpr QLatin1StringView S_ROOT { "QML.Root" };
166static constexpr QLatin1StringView S_SEQUENCE { "QML.Sequence" };
167static constexpr QLatin1StringView S_SINGLETON { "QML.Singleton" };
168static constexpr QLatin1StringView S_UNCREATABLE_REASON { "QML.UncreatableReason" };
169static constexpr QLatin1StringView S_USING { "QML.Using" };
170} // namespace Qml
171
172} // namespace MetatypesJson
173
174}
175
176QT_END_NAMESPACE
177
178#endif // QQMLTYPEREGISTRARCONSTANTS_P_H
179

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtdeclarative/src/qmltyperegistrar/qqmltyperegistrarconstants_p.h