4#ifndef QQMLMETATYPE_P_H
5#define QQMLMETATYPE_P_H
18#include <private/qqmldirparser_p.h>
19#include <private/qqmlmetaobject_p.h>
20#include <private/qqmlproxymetaobject_p.h>
21#include <private/qqmltype_p.h>
22#include <private/qtqmlglobal_p.h>
31namespace QV4 {
class ExecutableCompilationUnit; }
42 NoRegistrationFunction
71 CompositeTypeLookupMode
mode = NonSingleton);
72 static QQmlType findInlineComponentType(
78 return findInlineComponentType(inlineComponentUrl(
baseUrl,
name), compilationUnit);
81 static void unregisterInternalCompositeType(
QMetaType metaType,
QMetaType listMetaType);
87 static RegistrationResult registerPluginTypes(
QObject *instance,
const QString &basePath,
97 return inlineComponentTypeForUrl(inlineComponentUrl(
baseUrl,
name));
100 static void unregisterType(
int type);
104 static void registerModule(
const char *uri,
QTypeRevision version);
106 bool weakProtectAllVersions =
false);
114 static int typeId(
const char *uri,
QTypeRevision version,
const char *qmlName);
116 static void registerUndeletableType(
const QQmlType &dtype);
132 static QQmlType qmlType(
const QUrl &unNormalizedUrl,
bool includeNonFileImports =
false);
149 static void freeUnusedTypesAndCaches();
181 const QUrl &uri, CacheMode
mode, CachedUnitLookupError *status);
189 template <
typename QQmlTypeContainer>
193 for (
typename QQmlTypeContainer::iterator
it = container.
begin();
it != container.
end();) {
201 template <
typename InlineComponentContainer>
207 if (equalBaseUrls(
it.key(), referenceUrl))
214 static void registerTypeAlias(
int typeId,
const QString &
name);
219 static QQmlType registerSequentialContainer(
221 static void unregisterSequentialContainer(
int id);
224 static void clearTypeRegistrations();
238 static void qmlInsertModuleRegistration(
const QString &uri,
void (*registerFunction)());
239 static void qmlRemoveModuleRegistration(
const QString &uri);
241 static bool qmlRegisterModuleTypes(
const QString &uri);
254 return extensionMetaObject;
261 return qmlTypeMetaObject;
268 static void registerInternalCompositeType(
270 static void unregisterInternalCompositeType(
272 static int countInternalCompositeTypeSelfReferences(
294 : QMetaTypeInterface {
302 [](const QMetaTypeInterface *,
void *
addr) {
305 [](
const QMetaTypeInterface *,
void *
addr,
const void *
other) {
308 [](
const QMetaTypeInterface *,
void *
addr,
void *
other) {
311 [](
const QMetaTypeInterface *,
void *) {},
329 : QMetaTypeInterface {
337 [](const QMetaTypeInterface *,
void *
addr) {
340 [](
const QMetaTypeInterface *,
void *
addr,
const void *
other) {
344 [](
const QMetaTypeInterface *,
void *
addr,
void *
other) {
348 [](
const QMetaTypeInterface *,
void *
addr) {
358 ,
name(
name), valueType(valueType) { }
The QQmlError class encapsulates a QML error.
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
const QMetaObject * metaObject() const
const QMetaObject * extensionMetaObject() const
iterator erase(const_iterator i)
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString query(ComponentFormattingOptions=PrettyDecoded) const
Returns the query string of the URL if there's a query string, or an empty result if not.
void setFragment(const QString &fragment, ParsingMode mode=TolerantMode)
Sets the fragment of the URL to fragment.
QString userName(ComponentFormattingOptions options=FullyDecoded) const
Returns the user name of the URL if it is defined; otherwise an empty string is returned.
QString host(ComponentFormattingOptions=FullyDecoded) const
Returns the host of the URL if it is defined; otherwise an empty string is returned.
QString password(ComponentFormattingOptions=FullyDecoded) const
Returns the password of the URL if it is defined; otherwise an empty string is returned.
QString scheme() const
Returns the scheme of the URL.
int port(int defaultPort=-1) const
QString path(ComponentFormattingOptions options=FullyDecoded) const
Returns the path of the URL.
QSet< QString >::iterator it
const CachedQmlUnit *(* QmlUnitCacheLookupFunction)(const QUrl &url)
AutoParentResult(* AutoParentFunction)(QObject *object, QObject *parent)
Combined button and popup list for selecting options.
\qmltype Particle \inqmlmodule QtQuick.Particles
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
int qmlTypeId(const char *uri, int versionMajor, int versionMinor, const char *qmlName)
QQmlPrivate::QQmlAttachedPropertiesFunc< QObject > QQmlAttachedPropertiesFunc
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
QUrl url("example.com")
[constructor-url-reference]
obj metaObject() -> className()