Qt 4.8
|
#include <qdeclarativeobjectscriptclass_p.h>
Protected Functions | |
virtual Value | call (Object *, QScriptContext *) |
virtual Value | property (Object *, const Identifier &) |
virtual QScriptClass::QueryFlags | queryProperty (Object *, const Identifier &, QScriptClass::QueryFlags flags) |
Private Functions | |
Value | callMethod (QObject *, int index, int returnType, int argCount, int *argTypes, QScriptContext *ctxt) |
Value | callOverloaded (MethodData *, QScriptContext *) |
Resolve the overloaded method to call. More... | |
Value | callPrecise (QObject *, const QDeclarativePropertyCache::Data &, QScriptContext *) |
int | enumType (const QMetaObject *, const QString &) |
int | matchScore (const QScriptValue &, int, const QByteArray &) |
Returns the match score for converting actual to be of type conversionType. More... | |
QDeclarativePropertyCache::Data * | relatedMethod (QObject *, QDeclarativePropertyCache::Data *current, QDeclarativePropertyCache::Data &dummy) |
Returns the next related method, if one, or 0. More... | |
Static Private Functions | |
static QScriptValue | connect (QScriptContext *context, QScriptEngine *engine) |
static QScriptValue | disconnect (QScriptContext *context, QScriptEngine *engine) |
Properties | |
QDeclarativeEngine * | engine |
QScriptValue | m_connect |
PersistentIdentifier | m_connectId |
QScriptValue | m_disconnect |
PersistentIdentifier | m_disconnectId |
Definition at line 70 of file qdeclarativeobjectscriptclass_p.h.
QDeclarativeObjectMethodScriptClass::QDeclarativeObjectMethodScriptClass | ( | QDeclarativeEngine * | bindEngine | ) |
Definition at line 571 of file qdeclarativeobjectscriptclass.cpp.
QDeclarativeObjectMethodScriptClass::~QDeclarativeObjectMethodScriptClass | ( | ) |
Definition at line 587 of file qdeclarativeobjectscriptclass.cpp.
|
protectedvirtual |
Reimplemented from QScriptDeclarativeClass.
Definition at line 917 of file qdeclarativeobjectscriptclass.cpp.
|
private |
Definition at line 959 of file qdeclarativeobjectscriptclass.cpp.
Referenced by callPrecise().
|
private |
Resolve the overloaded method to call.
The algorithm works conceptually like this:
Definition at line 1013 of file qdeclarativeobjectscriptclass.cpp.
Referenced by call().
|
private |
Definition at line 928 of file qdeclarativeobjectscriptclass.cpp.
Referenced by call(), and callOverloaded().
|
staticprivate |
Definition at line 598 of file qdeclarativeobjectscriptclass.cpp.
Referenced by QDeclarativeObjectMethodScriptClass().
|
staticprivate |
Definition at line 623 of file qdeclarativeobjectscriptclass.cpp.
Referenced by QDeclarativeObjectMethodScriptClass().
|
private |
Definition at line 897 of file qdeclarativeobjectscriptclass.cpp.
Referenced by callOverloaded(), and callPrecise().
|
private |
Returns the match score for converting actual to be of type conversionType.
A zero score means "perfect match" whereas a higher score is worse.
The conversion table is copied out of the QtScript callQtMethod() function.
Definition at line 1087 of file qdeclarativeobjectscriptclass.cpp.
Referenced by callOverloaded().
QScriptValue QDeclarativeObjectMethodScriptClass::newMethod | ( | QObject * | object, |
const QDeclarativePropertyCache::Data * | method | ||
) |
Definition at line 591 of file qdeclarativeobjectscriptclass.cpp.
Referenced by QDeclarativeObjectScriptClass::property().
|
protectedvirtual |
Reimplemented from QScriptDeclarativeClass.
Definition at line 661 of file qdeclarativeobjectscriptclass.cpp.
|
protectedvirtual |
Reimplemented from QScriptDeclarativeClass.
Definition at line 649 of file qdeclarativeobjectscriptclass.cpp.
|
private |
Returns the next related method, if one, or 0.
Definition at line 1212 of file qdeclarativeobjectscriptclass.cpp.
Referenced by callOverloaded().
|
private |
Definition at line 102 of file qdeclarativeobjectscriptclass_p.h.
|
private |
Definition at line 96 of file qdeclarativeobjectscriptclass_p.h.
Referenced by property(), and QDeclarativeObjectMethodScriptClass().
|
private |
Definition at line 94 of file qdeclarativeobjectscriptclass_p.h.
Referenced by property(), QDeclarativeObjectMethodScriptClass(), and queryProperty().
|
private |
Definition at line 97 of file qdeclarativeobjectscriptclass_p.h.
Referenced by property(), and QDeclarativeObjectMethodScriptClass().
|
private |
Definition at line 95 of file qdeclarativeobjectscriptclass_p.h.
Referenced by property(), QDeclarativeObjectMethodScriptClass(), and queryProperty().