Qt 4.8
Public Functions | List of all members
QScript::QObjectPrototype Class Reference

#include <qscriptqobject_p.h>

Inheritance diagram for QScript::QObjectPrototype:
QScriptObject

Public Functions

 QObjectPrototype (JSC::ExecState *, WTF::PassRefPtr< JSC::Structure >, JSC::Structure *prototypeFunctionStructure)
 
- Public Functions inherited from QScriptObject
virtual const JSC::ClassInfo * classInfo () const
 
virtual bool compareToObject (JSC::ExecState *, JSC::JSObject *)
 
JSC::JSValue data () const
 
QScriptObjectDelegatedelegate () const
 
virtual bool deleteProperty (JSC::ExecState *, const JSC::Identifier &propertyName)
 
virtual JSC::CallType getCallData (JSC::CallData &)
 
virtual JSC::ConstructType getConstructData (JSC::ConstructData &)
 
virtual bool getOwnPropertyDescriptor (JSC::ExecState *, const JSC::Identifier &, JSC::PropertyDescriptor &)
 
virtual void getOwnPropertyNames (JSC::ExecState *, JSC::PropertyNameArray &, JSC::EnumerationMode mode=JSC::ExcludeDontEnumProperties)
 
virtual bool getOwnPropertySlot (JSC::ExecState *, const JSC::Identifier &propertyName, JSC::PropertySlot &)
 
virtual bool hasInstance (JSC::ExecState *, JSC::JSValue value, JSC::JSValue proto)
 
virtual void markChildren (JSC::MarkStack &markStack)
 
virtual void put (JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::JSValue, JSC::PutPropertySlot &)
 
 QScriptObject (WTF::PassRefPtr< JSC::Structure > sid)
 
void setData (JSC::JSValue data)
 
void setDelegate (QScriptObjectDelegate *delegate)
 
virtual ~QScriptObject ()
 

Additional Inherited Members

- Static Public Functions inherited from QScriptObject
static WTF::PassRefPtr< JSC::Structure > createStructure (JSC::JSValue prototype)
 
- Static Public Variables inherited from QScriptObject
static const JSC::ClassInfo info = { "Object", 0, 0, 0 }
 
- Protected Variables inherited from QScriptObject
Datad
 
- Static Protected Variables inherited from QScriptObject
static const unsigned StructureFlags = JSC::ImplementsHasInstance | JSC::OverridesHasInstance | JSC::OverridesGetOwnPropertySlot | JSC::OverridesMarkChildren | JSC::OverridesGetPropertyNames | JSObject::StructureFlags
 

Detailed Description

Definition at line 122 of file qscriptqobject_p.h.

Constructors and Destructors

◆ QObjectPrototype()

QScript::QObjectPrototype::QObjectPrototype ( JSC::ExecState *  exec,
WTF::PassRefPtr< JSC::Structure >  structure,
JSC::Structure *  prototypeFunctionStructure 
)

Definition at line 1757 of file qscriptqobject.cpp.

1759  : QScriptObject(structure)
1760 {
1761  setDelegate(new QObjectDelegate(new QObjectPrototypeObject(), QScriptEngine::AutoOwnership,
1765 
1766  putDirectFunction(exec, new (exec) JSC::NativeFunctionWrapper(exec, prototypeFunctionStructure, /*length=*/0, exec->propertyNames().toString, qobjectProtoFuncToString), JSC::DontEnum);
1767  putDirectFunction(exec, new (exec) JSC::NativeFunctionWrapper(exec, prototypeFunctionStructure, /*length=*/1, JSC::Identifier(exec, "findChild"), qobjectProtoFuncFindChild), JSC::DontEnum);
1768  putDirectFunction(exec, new (exec) JSC::NativeFunctionWrapper(exec, prototypeFunctionStructure, /*length=*/1, JSC::Identifier(exec, "findChildren"), qobjectProtoFuncFindChildren), JSC::DontEnum);
1769  this->structure()->setHasGetterSetterProperties(true);
1770 }
static JSC::JSValue JSC_HOST_CALL qobjectProtoFuncFindChildren(JSC::ExecState *exec, JSC::JSObject *, JSC::JSValue thisValue, const JSC::ArgList &args)
static JSC::JSValue JSC_HOST_CALL qobjectProtoFuncFindChild(JSC::ExecState *exec, JSC::JSObject *, JSC::JSValue thisValue, const JSC::ArgList &args)
static JSC::JSValue JSC_HOST_CALL qobjectProtoFuncToString(JSC::ExecState *exec, JSC::JSObject *, JSC::JSValue thisValue, const JSC::ArgList &)
QScriptObject(WTF::PassRefPtr< JSC::Structure > sid)
void setDelegate(QScriptObjectDelegate *delegate)

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