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 179 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 436 of file qqmlvmemetaobject.cpp.

◆ ~QQmlVMEMetaObject()

QQmlVMEMetaObject::~QQmlVMEMetaObject ( )
override

Definition at line 481 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 1540 of file qqmlvmemetaobject.cpp.

◆ aliasCount()

int QQmlVMEMetaObject::aliasCount ( ) const
inline

Definition at line 345 of file qqmlvmemetaobject_p.h.

◆ aliasOffset()

int QQmlVMEMetaObject::aliasOffset ( ) const
inline

Definition at line 339 of file qqmlvmemetaobject_p.h.

◆ aliasTarget()

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

Definition at line 1470 of file qqmlvmemetaobject.cpp.

◆ compilationUnit()

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

Definition at line 275 of file qqmlvmemetaobject_p.h.

◆ connectAlias()

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

Definition at line 1504 of file qqmlvmemetaobject.cpp.

◆ connectAliasSignal()

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

Definition at line 1524 of file qqmlvmemetaobject.cpp.

◆ contextData()

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

Definition at line 273 of file qqmlvmemetaobject_p.h.

◆ engine()

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

Definition at line 274 of file qqmlvmemetaobject_p.h.

◆ ensureQObjectWrapper()

void QQmlVMEMetaObject::ensureQObjectWrapper ( )

Definition at line 1453 of file qqmlvmemetaobject.cpp.

◆ get()

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

Definition at line 315 of file qqmlvmemetaobject_p.h.

◆ getForMethod()

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

Definition at line 1555 of file qqmlvmemetaobject.cpp.

◆ getForProperty()

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

Definition at line 1545 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 1569 of file qqmlvmemetaobject.cpp.

◆ getListProperty()

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

Definition at line 1239 of file qqmlvmemetaobject.cpp.

◆ getQObjectGuardForProperty()

QQmlVMEVariantQObjectPtr * QQmlVMEMetaObject::getQObjectGuardForProperty ( int index) const

Definition at line 1579 of file qqmlvmemetaobject.cpp.

◆ initPropertyAsList()

void QQmlVMEMetaObject::initPropertyAsList ( int id) const

Definition at line 717 of file qqmlvmemetaobject.cpp.

◆ list_append()

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

Definition at line 108 of file qqmlvmemetaobject.cpp.

◆ list_append_nosignal()

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

Definition at line 115 of file qqmlvmemetaobject.cpp.

◆ list_clear()

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

Definition at line 130 of file qqmlvmemetaobject.cpp.

◆ list_clear_nosignal()

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

Definition at line 137 of file qqmlvmemetaobject.cpp.

◆ mark()

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

Definition at line 1459 of file qqmlvmemetaobject.cpp.

◆ metaCall()

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

Reimplemented from QQmlInterceptorMetaObject.

Definition at line 746 of file qqmlvmemetaobject.cpp.

◆ method()

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

Definition at line 1277 of file qqmlvmemetaobject.cpp.

◆ methodCount()

int QQmlVMEMetaObject::methodCount ( ) const
inline

Definition at line 369 of file qqmlvmemetaobject_p.h.

◆ methodOffset()

int QQmlVMEMetaObject::methodOffset ( ) const
inline

Definition at line 363 of file qqmlvmemetaobject_p.h.

◆ parentVMEMetaObject()

QQmlVMEMetaObject * QQmlVMEMetaObject::parentVMEMetaObject ( ) const
inline

Definition at line 375 of file qqmlvmemetaobject_p.h.

◆ propCount()

int QQmlVMEMetaObject::propCount ( ) const
inline

Definition at line 333 of file qqmlvmemetaobject_p.h.

◆ propertyAndMethodStorageAsMemberData()

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

Definition at line 489 of file qqmlvmemetaobject.cpp.

◆ propOffset()

int QQmlVMEMetaObject::propOffset ( ) const
inline

Definition at line 327 of file qqmlvmemetaobject_p.h.

◆ readPropertyAsBool()

bool QQmlVMEMetaObject::readPropertyAsBool ( int id) const

Definition at line 564 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsDate()

QDate QQmlVMEMetaObject::readPropertyAsDate ( int id) const

Definition at line 617 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsDateTime()

QDateTime QQmlVMEMetaObject::readPropertyAsDateTime ( int id) const

Definition at line 645 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsDouble()

double QQmlVMEMetaObject::readPropertyAsDouble ( int id) const

Definition at line 577 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsInt()

int QQmlVMEMetaObject::readPropertyAsInt ( int id) const

Definition at line 551 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsPointF()

QPointF QQmlVMEMetaObject::readPropertyAsPointF ( int id) const

Definition at line 689 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsQObject()

QObject * QQmlVMEMetaObject::readPropertyAsQObject ( int id) const

Definition at line 703 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsRectF()

QRectF QQmlVMEMetaObject::readPropertyAsRectF ( int id) const

Definition at line 732 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsSizeF()

QSizeF QQmlVMEMetaObject::readPropertyAsSizeF ( int id) const

Definition at line 675 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsString()

QString QQmlVMEMetaObject::readPropertyAsString ( int id) const

Definition at line 590 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsTime()

QTime QQmlVMEMetaObject::readPropertyAsTime ( int id) const

Definition at line 631 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsUrl()

QUrl QQmlVMEMetaObject::readPropertyAsUrl ( int id) const

Definition at line 603 of file qqmlvmemetaobject.cpp.

◆ readPropertyAsVariant()

QVariant QQmlVMEMetaObject::readPropertyAsVariant ( int id) const

Definition at line 1301 of file qqmlvmemetaobject.cpp.

◆ readVarProperty()

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

Definition at line 1291 of file qqmlvmemetaobject.cpp.

◆ setVmeMethod()

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

Definition at line 1418 of file qqmlvmemetaobject.cpp.

◆ setVMEProperty()

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

Definition at line 1443 of file qqmlvmemetaobject.cpp.

◆ signalCount()

int QQmlVMEMetaObject::signalCount ( ) const
inline

Definition at line 357 of file qqmlvmemetaobject_p.h.

◆ signalOffset()

int QQmlVMEMetaObject::signalOffset ( ) const
inline

Definition at line 351 of file qqmlvmemetaobject_p.h.

◆ vmeMethod()

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

Definition at line 1406 of file qqmlvmemetaobject.cpp.

◆ vmeProperty()

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

Definition at line 1434 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [1/6]

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

Definition at line 510 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [2/6]

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

Definition at line 524 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [3/6]

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

Definition at line 242 of file qqmlvmemetaobject_p.h.

◆ writeProperty() [4/6]

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

Definition at line 517 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [5/6]

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

Definition at line 503 of file qqmlvmemetaobject.cpp.

◆ writeProperty() [6/6]

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

Definition at line 533 of file qqmlvmemetaobject.cpp.

◆ writeVarProperty()

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

Definition at line 1316 of file qqmlvmemetaobject.cpp.

◆ QQmlVMEMetaObjectEndpoint

friend class QQmlVMEMetaObjectEndpoint
friend

Definition at line 285 of file qqmlvmemetaobject_p.h.

◆ QQmlVMEResolvedList

friend class QQmlVMEResolvedList
friend

Definition at line 286 of file qqmlvmemetaobject_p.h.

◆ QQmlVMEVariantQObjectPtr

friend class QQmlVMEVariantQObjectPtr
friend

Definition at line 287 of file qqmlvmemetaobject_p.h.


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