diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-01-14 04:18:55 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-01-14 04:18:55 (GMT) |
commit | 87f9c823a96d693c95a7dd4d969b652891eb4fbe (patch) | |
tree | 679d9e42fac188975bfea7f551a726a4042bcb39 /src/script/bridge/qscriptdeclarativeobject_p.h | |
parent | 351060bd313220044b9323d59d56627e78deea9f (diff) | |
download | Qt-87f9c823a96d693c95a7dd4d969b652891eb4fbe.zip Qt-87f9c823a96d693c95a7dd4d969b652891eb4fbe.tar.gz Qt-87f9c823a96d693c95a7dd4d969b652891eb4fbe.tar.bz2 |
Support calling in QScriptDeclarativeClass
Diffstat (limited to 'src/script/bridge/qscriptdeclarativeobject_p.h')
-rw-r--r-- | src/script/bridge/qscriptdeclarativeobject_p.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/script/bridge/qscriptdeclarativeobject_p.h b/src/script/bridge/qscriptdeclarativeobject_p.h index 2aa3fb0..38542c8 100644 --- a/src/script/bridge/qscriptdeclarativeobject_p.h +++ b/src/script/bridge/qscriptdeclarativeobject_p.h @@ -48,11 +48,12 @@ class QScriptClass; class QScriptDeclarativeClassPrivate { public: - QScriptDeclarativeClassPrivate() : engine(0), q_ptr(0), context(0) {} + QScriptDeclarativeClassPrivate() : engine(0), q_ptr(0), context(0), supportsCall(false) {} QScriptEngine *engine; QScriptDeclarativeClass *q_ptr; QScriptContext *context; + bool supportsCall:1; static QScriptDeclarativeClassPrivate *get(QScriptDeclarativeClass *c) { return c->d_ptr.data(); @@ -90,6 +91,9 @@ public: bool includeNonEnumerable = false); virtual JSC::CallType getCallData(QScriptObject*, JSC::CallData&); + static JSC::JSValue JSC_HOST_CALL call(JSC::ExecState*, JSC::JSObject*, + JSC::JSValue, const JSC::ArgList&); + virtual JSC::ConstructType getConstructData(QScriptObject*, JSC::ConstructData&); virtual bool hasInstance(QScriptObject*, JSC::ExecState*, |