1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtScript module of the Qt Toolkit. |
7 ** This file is part of the QtScript module of the Qt Toolkit. |
8 ** |
8 ** |
61 virtual ~QScriptObject(); |
61 virtual ~QScriptObject(); |
62 |
62 |
63 virtual bool getOwnPropertySlot(JSC::ExecState*, |
63 virtual bool getOwnPropertySlot(JSC::ExecState*, |
64 const JSC::Identifier& propertyName, |
64 const JSC::Identifier& propertyName, |
65 JSC::PropertySlot&); |
65 JSC::PropertySlot&); |
|
66 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
66 virtual void put(JSC::ExecState* exec, const JSC::Identifier& propertyName, |
67 virtual void put(JSC::ExecState* exec, const JSC::Identifier& propertyName, |
67 JSC::JSValue, JSC::PutPropertySlot&); |
68 JSC::JSValue, JSC::PutPropertySlot&); |
68 virtual bool deleteProperty(JSC::ExecState*, |
69 virtual bool deleteProperty(JSC::ExecState*, |
69 const JSC::Identifier& propertyName, |
70 const JSC::Identifier& propertyName, |
70 bool checkDontDelete = true); |
71 bool checkDontDelete = true); |
119 virtual Type type() const = 0; |
120 virtual Type type() const = 0; |
120 |
121 |
121 virtual bool getOwnPropertySlot(QScriptObject*, JSC::ExecState*, |
122 virtual bool getOwnPropertySlot(QScriptObject*, JSC::ExecState*, |
122 const JSC::Identifier& propertyName, |
123 const JSC::Identifier& propertyName, |
123 JSC::PropertySlot&); |
124 JSC::PropertySlot&); |
|
125 virtual bool getOwnPropertyDescriptor(QScriptObject*, JSC::ExecState*, |
|
126 const JSC::Identifier& propertyName, |
|
127 JSC::PropertyDescriptor&); |
124 virtual void put(QScriptObject*, JSC::ExecState* exec, const JSC::Identifier& propertyName, |
128 virtual void put(QScriptObject*, JSC::ExecState* exec, const JSC::Identifier& propertyName, |
125 JSC::JSValue, JSC::PutPropertySlot&); |
129 JSC::JSValue, JSC::PutPropertySlot&); |
126 virtual bool deleteProperty(QScriptObject*, JSC::ExecState*, |
130 virtual bool deleteProperty(QScriptObject*, JSC::ExecState*, |
127 const JSC::Identifier& propertyName, |
131 const JSC::Identifier& propertyName, |
128 bool checkDontDelete = true); |
132 bool checkDontDelete = true); |