Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQmlVMEMetaObject Class Reference

#include <qqmlvmemetaobject_p.h>

Inheritance diagram for QQmlVMEMetaObject:
Collaboration diagram for QQmlVMEMetaObject:

Public Member Functions

 QQmlVMEMetaObject (QV4::ExecutionEngine *engine, QObject *obj, const QQmlPropertyCache::ConstPtr &cache, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &qmlCompilationUnit, int qmlObjectId)
 ~QQmlVMEMetaObject () override
bool aliasTarget (int index, QObject **target, int *coreIndex, int *valueTypeIndex) const
QV4::ReturnedValue vmeMethod (int index) const
void setVmeMethod (int index, const QV4::Value &function)
QV4::ReturnedValue vmeProperty (int index) const
void setVMEProperty (int index, const QV4::Value &v)
void connectAliasSignal (int index, bool indexInSignalRange)
int propOffset () const
int propCount () const
int aliasOffset () const
int aliasCount () const
int signalOffset () const
int signalCount () const
int methodOffset () const
int methodCount () const
QV4::MemberDatapropertyAndMethodStorageAsMemberData () const
int readPropertyAsInt (int id) const
bool readPropertyAsBool (int id) const
double readPropertyAsDouble (int id) const
QString readPropertyAsString (int id) const
QSizeF readPropertyAsSizeF (int id) const
QPointF readPropertyAsPointF (int id) const
QUrl readPropertyAsUrl (int id) const
QDate readPropertyAsDate (int id) const
QTime readPropertyAsTime (int id) const
QDateTime readPropertyAsDateTime (int id) const
QRectF readPropertyAsRectF (int id) const
QObjectreadPropertyAsQObject (int id) const
void initPropertyAsList (int id) const
void writeProperty (int id, int v)
void writeProperty (int id, bool v)
void writeProperty (int id, double v)
void writeProperty (int id, const QString &v)
template<typename VariantCompatible>
void writeProperty (int id, const VariantCompatible &v)
void writeProperty (int id, QObject *v)
void ensureQObjectWrapper ()
void mark (QV4::MarkStack *markStack)
void connectAlias (const QV4::CompiledData::Object *compiledObject, int aliasId)
QV4::ReturnedValue method (int) const
QV4::ReturnedValue readVarProperty (int) const
void writeVarProperty (int, const QV4::Value &)
QVariant readPropertyAsVariant (int) const
QQmlVMEMetaObjectparentVMEMetaObject () const
void activate (QObject *, int, void **)
QQmlVMEVariantQObjectPtrgetQObjectGuardForProperty (int) const
QQmlRefPointer< QQmlContextDatacontextData () const
QV4::ExecutionEngineengine () const
QQmlRefPointer< QV4::ExecutableCompilationUnitcompilationUnit () const
Public Member Functions inherited from QQmlInterceptorMetaObject
 QQmlInterceptorMetaObject (QObject *obj, const QQmlPropertyCache::ConstPtr &cache)
 ~QQmlInterceptorMetaObject () override
void registerInterceptor (QQmlPropertyIndex index, QQmlPropertyValueInterceptor *interceptor)
const QMetaObjecttoDynamicMetaObject (QObject *o) const override
QQmlPropertyCache::ConstPtr propertyCache () const
bool intercepts (QQmlPropertyIndex propertyIndex) const
void invalidate ()
Public Member Functions inherited from QDynamicMetaObjectData
virtual ~QDynamicMetaObjectData ()
virtual void objectDestroyed (QObject *)

Static Public Member Functions

static QQmlVMEMetaObjectget (QObject *o)
static QQmlVMEMetaObjectgetForProperty (QObject *o, int coreIndex)
static QQmlVMEMetaObjectgetForMethod (QObject *o, int coreIndex)
static QQmlVMEMetaObjectgetForSignal (QObject *o, int coreIndex)
static void list_append (QQmlListProperty< QObject > *prop, QObject *o)
static void list_clear (QQmlListProperty< QObject > *prop)
static void list_append_nosignal (QQmlListProperty< QObject > *prop, QObject *o)
static void list_clear_nosignal (QQmlListProperty< QObject > *prop)
Static Public Member Functions inherited from QQmlInterceptorMetaObject
static QQmlInterceptorMetaObjectget (QObject *obj)

Protected Member Functions

int metaCall (QObject *o, QMetaObject::Call _c, int _id, void **_a) override
bool getListProperty (int id, QQmlListProperty< QObject > *target)
Protected Member Functions inherited from QQmlInterceptorMetaObject
bool intercept (QMetaObject::Call c, int id, void **a)

Friends

class QQmlVMEMetaObjectEndpoint
class QQmlVMEResolvedList
class QQmlVMEVariantQObjectPtr

Additional Inherited Members

Public Attributes inherited from QQmlInterceptorMetaObject
QObjectobject = nullptr
QQmlPropertyCache::ConstPtr cache
Protected Types inherited from QQmlInterceptorMetaObject
enum  MetaObjectValidity { MetaObjectValid , MetaObjectInvalid }
Protected Attributes inherited from QQmlInterceptorMetaObject
QBiPointer< QDynamicMetaObjectData, const QMetaObjectparent
QTaggedPointer< const QMetaObject, MetaObjectValiditymetaObject

Detailed Description

Definition at line 180 of file qqmlvmemetaobject_p.h.

Constructor & Destructor Documentation

◆ QQmlVMEMetaObject()

QQmlVMEMetaObject::QQmlVMEMetaObject ( QV4::ExecutionEngine * engine,
QObject * obj,
const QQmlPropertyCache::ConstPtr & cache,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > & qmlCompilationUnit,
int qmlObjectId )

Definition at line 446 of file qqmlvmemetaobject.cpp.

◆ ~QQmlVMEMetaObject()

QQmlVMEMetaObject::~QQmlVMEMetaObject ( )
override

Definition at line 491 of file qqmlvmemetaobject.cpp.

Member Function Documentation

◆ activate()

void QQmlVMEMetaObject::activate ( QObject * object,
int index,
void ** args )

index is in the local signal index.

Definition at line 1541 of file qqmlvmemetaobject.cpp.

◆ aliasCount()

int QQmlVMEMetaObject::aliasCount ( ) const
inline

Definition at line 346 of file qqmlvmemetaobject_p.h.

◆ aliasOffset()

int QQmlVMEMetaObject::aliasOffset ( ) const
inline

Definition at line 340 of file qqmlvmemetaobject_p.h.

◆ aliasTarget()

bool QQmlVMEMetaObject::aliasTarget ( int index,
QObject ** target,
int * coreIndex,
int * valueTypeIndex ) const

Definition at line 1474 of file qqmlvmemetaobject.cpp.

◆ compilationUnit()

QQmlRefPointer< QV4::ExecutableCompilationUnit > QQmlVMEMetaObject::compilationUnit ( ) const
inline

Definition at line 276 of file qqmlvmemetaobject_p.h.

◆ connectAlias()

void QQmlVMEMetaObject::connectAlias ( const QV4::CompiledData::Object * compiledObject,
int aliasId )

Definition at line 1505 of file qqmlvmemetaobject.cpp.

◆ connectAliasSignal()

void QQmlVMEMetaObject::connectAliasSignal ( int index,
bool indexInSignalRange )

Definition at line 1525 of file qqmlvmemetaobject.cpp.

◆ contextData()

QQmlRefPointer< QQmlContextData > QQmlVMEMetaObject::contextData ( ) const
inline

Definition at line 274 of file qqmlvmemetaobject_p.h.

◆ engine()

QV4::ExecutionEngine * QQmlVMEMetaObject::engine ( ) const
inline

Definition at line 275 of file qqmlvmemetaobject_p.h.

◆ ensureQObjectWrapper()

void QQmlVMEMetaObject::ensureQObjectWrapper ( )

Definition at line 1457 of file qqmlvmemetaobject.cpp.

◆ get()

QQmlVMEMetaObject * QQmlVMEMetaObject::get ( QObject * o)
inlinestatic

Definition at line 316 of file qqmlvmemetaobject_p.h.

◆ getForMethod()

QQmlVMEMetaObject * QQmlVMEMetaObject::getForMethod ( QObject * o,
int coreIndex )
static

Definition at line 1556 of file qqmlvmemetaobject.cpp.

◆ getForProperty()

QQmlVMEMetaObject * QQmlVMEMetaObject::getForProperty ( QObject * o,
int coreIndex )
static

Definition at line 1546 of file qqmlvmemetaobject.cpp.

◆ getForSignal()

QQmlVMEMetaObject * QQmlVMEMetaObject::getForSignal ( QObject * o,
int coreIndex )
static

coreIndex is in the signal index range (see QObjectPrivate::signalIndex()). This is different from QMetaMethod::methodIndex().

Definition at line 1570 of file qqmlvmemetaobject.cpp.

◆ getListProperty()

bool QQmlVMEMetaObject::getListProperty ( int id,
QQmlListProperty< QObject > * target )
protected

Definition at line 1243 of file qqmlvmemetaobject.cpp.

◆ getQObjectGuardForProperty()

QQmlVMEVariantQObjectPtr * QQmlVMEMetaObject::getQObjectGuardForProperty ( int index) const

Definition at line 1580 of file qqmlvmemetaobject.cpp.

◆ initPropertyAsList()

void QQmlVMEMetaObject::initPropertyAsList ( int id) const

Definition at line 727 of file qqmlvmemetaobject.cpp.

◆ list_append()

void QQmlVMEMetaObject::list_append ( QQmlListProperty< QObject > * prop,
QObject * o )
static

Definition at line 109 of file qqmlvmemetaobject.cpp.

◆ list_append_nosignal()

void QQmlVMEMetaObject::list_append_nosignal ( QQmlListProperty< QObject > * prop,
QObject * o )
static

Definition at line 116 of file qqmlvmemetaobject.cpp.

◆ list_clear()

void QQmlVMEMetaObject::list_clear ( QQmlListProperty< QObject > * prop)
static

Definition at line 131 of file qqmlvmemetaobject.cpp.

◆ list_clear_nosignal()

void QQmlVMEMetaObject::list_clear_nosignal ( QQmlListProperty< QObject > * prop)
static

Definition at line 138 of file qqmlvmemetaobject.cpp.

◆ mark()

void QQmlVMEMetaObject::mark ( QV4::MarkStack * markStack)

Definition at line 1463 of file qqmlvmemetaobject.cpp.

◆ metaCall()

int QQmlVMEMetaObject::metaCall ( QObject * o,
QMetaObject::Call _c,
int _id,
void ** _a )
overrideprotectedvirtual

Reimplemented from QQmlInterceptorMetaObject.

Definition at line 756 of file qqmlvmemetaobject.cpp.

◆ method()

QV4::ReturnedValue QQmlVMEMetaObject::method ( int localMethodIndex) const

Definition at line 1281 of file qqmlvmemetaobject.cpp.

◆ methodCount()

int QQmlVMEMetaObject::methodCount ( ) const
inline

Definition at line 370 of file qqmlvmemetaobject_p.h.

◆ methodOffset()

int QQmlVMEMetaObject::methodOffset ( ) const
inline

Definition at line 364 of file qqmlvmemetaobject_p.h.

◆ parentVMEMetaObject()

QQmlVMEMetaObject * QQmlVMEMetaObject::parentVMEMetaObject ( ) const
inline

Definition at line 376 of file qqmlvmemetaobject_p.h.

◆ propCount()

int QQmlVMEMetaObject::propCount ( ) const
inline

Definition at line 334 of file qqmlvmemetaobject_p.h.

◆ propertyAndMethodStorageAsMemberData()

QV4::MemberData * QQmlVMEMetaObject::propertyAndMethodStorageAsMemberData ( ) const

Definition at line 499 of file qqmlvmemetaobject.cpp.

◆ propOffset()

int QQmlVMEMetaObject::propOffset ( ) const
inline

Definition at line 328 of file qqmlvmemetaobject_p.h.

◆ readPropertyAsBool()

bool QQmlVMEMetaObject::readPropertyAsBool ( int id) const

Definition at line 574 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsDate()

QDate QQmlVMEMetaObject::readPropertyAsDate ( int id) const

Definition at line 627 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsDateTime()

QDateTime QQmlVMEMetaObject::readPropertyAsDateTime ( int id) const

Definition at line 655 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsDouble()

double QQmlVMEMetaObject::readPropertyAsDouble ( int id) const

Definition at line 587 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsInt()

int QQmlVMEMetaObject::readPropertyAsInt ( int id) const

Definition at line 561 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsPointF()

QPointF QQmlVMEMetaObject::readPropertyAsPointF ( int id) const

Definition at line 699 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsQObject()

QObject * QQmlVMEMetaObject::readPropertyAsQObject ( int id) const

Definition at line 713 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsRectF()

QRectF QQmlVMEMetaObject::readPropertyAsRectF ( int id) const

Definition at line 742 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsSizeF()

QSizeF QQmlVMEMetaObject::readPropertyAsSizeF ( int id) const

Definition at line 685 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsString()

QString QQmlVMEMetaObject::readPropertyAsString ( int id) const

Definition at line 600 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsTime()

QTime QQmlVMEMetaObject::readPropertyAsTime ( int id) const

Definition at line 641 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsUrl()

QUrl QQmlVMEMetaObject::readPropertyAsUrl ( int id) const

Definition at line 613 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsVariant()

QVariant QQmlVMEMetaObject::readPropertyAsVariant ( int id) const

Definition at line 1305 of file qqmlvmemetaobject.cpp.

◆ readVarProperty()

QV4::ReturnedValue QQmlVMEMetaObject::readVarProperty ( int id) const

Definition at line 1295 of file qqmlvmemetaobject.cpp.

◆ setVmeMethod()

void QQmlVMEMetaObject::setVmeMethod ( int index,
const QV4::Value & function )

Definition at line 1422 of file qqmlvmemetaobject.cpp.

◆ setVMEProperty()

void QQmlVMEMetaObject::setVMEProperty ( int index,
const QV4::Value & v )

Definition at line 1447 of file qqmlvmemetaobject.cpp.

◆ signalCount()

int QQmlVMEMetaObject::signalCount ( ) const
inline

Definition at line 358 of file qqmlvmemetaobject_p.h.

◆ signalOffset()

int QQmlVMEMetaObject::signalOffset ( ) const
inline

Definition at line 352 of file qqmlvmemetaobject_p.h.

◆ vmeMethod()

QV4::ReturnedValue QQmlVMEMetaObject::vmeMethod ( int index) const

Definition at line 1410 of file qqmlvmemetaobject.cpp.

◆ vmeProperty()

QV4::ReturnedValue QQmlVMEMetaObject::vmeProperty ( int index) const

Definition at line 1438 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [1/6]

void QQmlVMEMetaObject::writeProperty ( int id,
bool v )

Definition at line 520 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [2/6]

void QQmlVMEMetaObject::writeProperty ( int id,
const QString & v )

Definition at line 534 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [3/6]

template<typename VariantCompatible>
void QQmlVMEMetaObject::writeProperty ( int id,
const VariantCompatible & v )
inline

Definition at line 243 of file qqmlvmemetaobject_p.h.

◆ writeProperty() [4/6]

void QQmlVMEMetaObject::writeProperty ( int id,
double v )

Definition at line 527 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [5/6]

void QQmlVMEMetaObject::writeProperty ( int id,
int v )

Definition at line 513 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [6/6]

void QQmlVMEMetaObject::writeProperty ( int id,
QObject * v )

Definition at line 543 of file qqmlvmemetaobject.cpp.

◆ writeVarProperty()

void QQmlVMEMetaObject::writeVarProperty ( int id,
const QV4::Value & value )

Definition at line 1320 of file qqmlvmemetaobject.cpp.

◆ QQmlVMEMetaObjectEndpoint

friend class QQmlVMEMetaObjectEndpoint
friend

Definition at line 286 of file qqmlvmemetaobject_p.h.

◆ QQmlVMEResolvedList

friend class QQmlVMEResolvedList
friend

Definition at line 287 of file qqmlvmemetaobject_p.h.

◆ QQmlVMEVariantQObjectPtr

friend class QQmlVMEVariantQObjectPtr
friend

Definition at line 288 of file qqmlvmemetaobject_p.h.


The documentation for this class was generated from the following files: