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

#include <qscriptvariant_p.h>

Inheritance diagram for QScript::QVariantPrototype:
QScriptObject

Public Functions

 QVariantPrototype (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 64 of file qscriptvariant_p.h.

Constructors and Destructors

◆ QVariantPrototype()

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

Definition at line 138 of file qscriptvariant.cpp.

140  : QScriptObject(structure)
141 {
142  setDelegate(new QVariantDelegate(QVariant()));
143 
144  putDirectFunction(exec, new (exec) JSC::NativeFunctionWrapper(exec, prototypeFunctionStructure, 0, exec->propertyNames().toString, variantProtoFuncToString), JSC::DontEnum);
145  putDirectFunction(exec, new (exec) JSC::NativeFunctionWrapper(exec, prototypeFunctionStructure, 0, exec->propertyNames().valueOf, variantProtoFuncValueOf), JSC::DontEnum);
146 }
The QVariant class acts like a union for the most common Qt data types.
Definition: qvariant.h:92
static JSC::JSValue JSC_HOST_CALL variantProtoFuncValueOf(JSC::ExecState *exec, JSC::JSObject *, JSC::JSValue thisValue, const JSC::ArgList &)
QScriptObject(WTF::PassRefPtr< JSC::Structure > sid)
void setDelegate(QScriptObjectDelegate *delegate)
static JSC::JSValue JSC_HOST_CALL variantProtoFuncToString(JSC::ExecState *exec, JSC::JSObject *callee, JSC::JSValue thisValue, const JSC::ArgList &args)

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