46 NoRegistrationFunction
59 return aUrl.port() == bUrl.port()
60 && aUrl.scheme() == bUrl.scheme()
61 && aUrl.userName() == bUrl.userName()
62 && aUrl.password() == bUrl.password()
63 && aUrl.host() == bUrl.host()
64 && aUrl.path() == bUrl.path()
65 && aUrl.query() == bUrl.query();
75 const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &compilationUnit,
76 CompositeTypeLookupMode
mode = NonSingleton);
77 static QQmlType findInlineComponentType(
79 const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &compilationUnit);
82 const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &compilationUnit)
84 return findInlineComponentType(inlineComponentUrl(
baseUrl,
name), compilationUnit);
87 static void unregisterInternalCompositeType(
QMetaType metaType,
QMetaType listMetaType);
90 static QQmlType registerSingletonType(
93 static QQmlType registerCompositeSingletonType(
97 static RegistrationResult registerPluginTypes(
QObject *instance,
const QString &basePath,
102 CompositeTypeLookupMode
mode, QList<QQmlError> *errors,
105 static QQmlType fetchOrCreateInlineComponentTypeForUrl(
const QUrl &
url);
108 return outerType.isComposite()
109 ? fetchOrCreateInlineComponentTypeForUrl(
110 inlineComponentUrl(outerType.sourceUrl(),
name))
114 static void unregisterType(
int type);
118 static void registerModule(
const char *uri,
QTypeRevision version);
120 bool weakProtectAllVersions =
false);
128 static int typeId(
const char *uri,
QTypeRevision version,
const char *qmlName);
130 static void registerUndeletableType(
const QQmlType &dtype);
132 static QList<QString> qmlTypeNames();
133 static QList<QQmlType> qmlTypes();
134 static QList<QQmlType> qmlSingletonTypes();
135 static QList<QQmlType> qmlAllTypes();
146 static QQmlType qmlType(
const QUrl &unNormalizedUrl,
bool includeNonFileImports =
false);
163 static void freeUnusedTypesAndCaches();
184 static QList<QQmlPrivate::AutoParentFunction> parentFunctions();
195 const QUrl &uri, CacheMode
mode, CachedUnitLookupError *status);
203 template <
typename QQmlTypeContainer>
207 for (
typename QQmlTypeContainer::iterator
it = container.begin();
it != container.end();) {
209 it = container.erase(
it);
215 template <
typename InlineComponentContainer>
220 for (
auto it = container.begin(),
end = container.end();
it !=
end;) {
221 if (equalBaseUrls(
it.key(), referenceUrl))
222 it = container.erase(
it);
228 static void registerTypeAlias(
int typeId,
const QString &
name);
233 static QQmlType registerSequentialContainer(
235 static void unregisterSequentialContainer(
int id);
238 static void clearTypeRegistrations();
240 static QList<QQmlProxyMetaObject::ProxyData> proxyData(
const QMetaObject *
mo,
252 static void qmlInsertModuleRegistration(
const QString &uri,
void (*registerFunction)());
253 static void qmlRemoveModuleRegistration(
const QString &uri);
255 static bool qmlRegisterModuleTypes(
const QString &uri);
262 static void registerInternalCompositeType(
263 const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &compilationUnit);
264 static void unregisterInternalCompositeType(
265 const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &compilationUnit);
266 static int countInternalCompositeTypeSelfReferences(
267 const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &compilationUnit);
268 static QQmlRefPointer<QV4::CompiledData::CompilationUnit> obtainCompilationUnit(
270 static QQmlRefPointer<QV4::CompiledData::CompilationUnit> obtainCompilationUnit(