summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptengine_p.h
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-03 13:14:54 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-07-03 13:14:54 (GMT)
commit2e571b141ce50349790ca943455427185442ed16 (patch)
treeae9705be2032c19bea05c1779d41a95d289932fc /src/script/api/qscriptengine_p.h
parent5240cbcc6b8f08538b1b9ac389d86749b0330372 (diff)
downloadQt-2e571b141ce50349790ca943455427185442ed16.zip
Qt-2e571b141ce50349790ca943455427185442ed16.tar.gz
Qt-2e571b141ce50349790ca943455427185442ed16.tar.bz2
start implementing QScriptClass extensions
Callable seems to work, HasInstance not quite there yet.
Diffstat (limited to 'src/script/api/qscriptengine_p.h')
-rw-r--r--src/script/api/qscriptengine_p.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/script/api/qscriptengine_p.h b/src/script/api/qscriptengine_p.h
index b1b0d2d..c828162 100644
--- a/src/script/api/qscriptengine_p.h
+++ b/src/script/api/qscriptengine_p.h
@@ -210,12 +210,18 @@ public:
unsigned&) const;
virtual void getPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&);
+ virtual JSC::CallType getCallData(JSC::CallData&);
+ static JSC::JSValue JSC_HOST_CALL call(JSC::ExecState*, JSC::JSObject*,
+ JSC::JSValue, const JSC::ArgList&);
+
+ virtual bool hasInstance(JSC::ExecState*, JSC::JSValue value, JSC::JSValue proto);
+
virtual const JSC::ClassInfo* classInfo() const;
static const JSC::ClassInfo info;
static WTF::PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
{
- return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType));
+ return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, JSC::ImplementsHasInstance));
}
QScriptClass *scriptClass() const;