4#ifndef QQMLLISTWRAPPER_P_H
5#define QQMLLISTWRAPPER_P_H
18#include <QtCore/qglobal.h>
19#include <QtCore/qpointer.h>
21#include <QtQml/qqmllist.h>
23#include <private/qv4value_p.h>
24#include <private/qv4object_p.h>
36 void init(QMetaType propertyType);
37 void init(QObject *object,
int propertyId, QMetaType propertyType);
38 void init(QObject *object,
const QQmlListProperty<QObject> &list, QMetaType propertyType);
47 return reinterpret_cast<
const QQmlListProperty<QObject>*>(m_propertyData);
52 return reinterpret_cast<QQmlListProperty<QObject>*>(m_propertyData);
58 QV4QPointer<QObject> m_object;
61 const QtPrivate::QMetaTypeInterface *m_propertyType;
74 static ReturnedValue create(ExecutionEngine *engine,
const QQmlListProperty<QObject> &prop, QMetaType propType);
82 static bool virtualPut(Managed *m, PropertyKey id,
const Value &value, Value *receiver);
88 V4_PROTOTYPE(arrayPrototype)
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcEventDispatcher)
static void appendWrapped(QQmlListProperty< QObject > *p, QObject *o)
static QObject * atWrapped(QQmlListProperty< QObject > *p, qsizetype i)
static void clearWrapped(QQmlListProperty< QObject > *p)
DEFINE_OBJECT_VTABLE(QmlListWrapper)
static void removeLastWrapped(QQmlListProperty< QObject > *p)
static qsizetype countWrapped(QQmlListProperty< QObject > *p)
static void replaceWrapped(QQmlListProperty< QObject > *p, qsizetype i, QObject *o)
ReturnedValue firstOrLastIndexOf(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc, Iterate iterate)
static void setArrayData(Heap::QmlListWrapper *d)
void init(QObject *object, int propertyId, QMetaType propertyType)
QMetaType elementType() const
QQmlListProperty< QObject > * property()
const QQmlListProperty< QObject > * property() const
void init(QMetaType propertyType)
QMetaType propertyType() const
void init(QObject *object, const QQmlListProperty< QObject > &list, QMetaType propertyType)
static ReturnedValue method_push(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_splice(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_sort(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_set_length(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_get_length(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_pop(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_unshift(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_indexOf(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_lastIndexOf(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_shift(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static qint64 virtualGetLength(const Managed *m)
static OwnPropertyKeyIterator * virtualOwnPropertyKeys(const Object *m, Value *target)
static ReturnedValue create(ExecutionEngine *engine, const QQmlListProperty< QObject > &prop, QMetaType propType)
QQmlListReference toListReference() const
static ReturnedValue create(ExecutionEngine *engine, QMetaType propType)
static ReturnedValue virtualGet(const Managed *m, PropertyKey id, const Value *receiver, bool *hasProperty)
static bool virtualPut(Managed *m, PropertyKey id, const Value &value, Value *receiver)
QVariant toVariant() const
PropertyKey next(const Object *o, Property *pd=nullptr, PropertyAttributes *attrs=nullptr) override
~QmlListWrapperOwnPropertyKeyIterator() override=default