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