| 1 | /**************************************************************************** |
| 2 | ** |
| 3 | ** Copyright (C) 2015 The Qt Company Ltd. |
| 4 | ** Contact: http://www.qt.io/licensing/ |
| 5 | ** |
| 6 | ** This file is part of the QtScript module of the Qt Toolkit. |
| 7 | ** |
| 8 | ** $QT_BEGIN_LICENSE:LGPL$ |
| 9 | ** Commercial License Usage |
| 10 | ** Licensees holding valid commercial Qt licenses may use this file in |
| 11 | ** accordance with the commercial license agreement provided with the |
| 12 | ** Software or, alternatively, in accordance with the terms contained in |
| 13 | ** a written agreement between you and The Qt Company. For licensing terms |
| 14 | ** and conditions see https://www.qt.io/terms-conditions. For further |
| 15 | ** information use the contact form at https://www.qt.io/contact-us. |
| 16 | ** |
| 17 | ** GNU Lesser General Public License Usage |
| 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser |
| 19 | ** General Public License version 3 as published by the Free Software |
| 20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the |
| 21 | ** packaging of this file. Please review the following information to |
| 22 | ** ensure the GNU Lesser General Public License version 3 requirements |
| 23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. |
| 24 | ** |
| 25 | ** GNU General Public License Usage |
| 26 | ** Alternatively, this file may be used under the terms of the GNU |
| 27 | ** General Public License version 2.0 or (at your option) the GNU General |
| 28 | ** Public license version 3 or any later version approved by the KDE Free |
| 29 | ** Qt Foundation. The licenses are as published by the Free Software |
| 30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 |
| 31 | ** included in the packaging of this file. Please review the following |
| 32 | ** information to ensure the GNU General Public License requirements will |
| 33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and |
| 34 | ** https://www.gnu.org/licenses/gpl-3.0.html. |
| 35 | ** |
| 36 | ** $QT_END_LICENSE$ |
| 37 | ** |
| 38 | ****************************************************************************/ |
| 39 | |
| 40 | #ifndef QSCRIPTGLOBALOBJECT_P_H |
| 41 | #define QSCRIPTGLOBALOBJECT_P_Hcxx . . $ `src/script/bridge/qscriptglobalobject_p.h:41:9`! |
| 42 | |
| 43 | // |
| 44 | // W A R N I N G |
| 45 | // ------------- |
| 46 | // |
| 47 | // This file is not part of the Qt API. It exists purely as an |
| 48 | // implementation detail. This header file may change from version to |
| 49 | // version without notice, or even be removed. |
| 50 | // |
| 51 | // We mean it. |
| 52 | // |
| 53 | |
| 54 | #include <QtCore/qobjectdefs.h> |
| 55 | |
| 56 | #include "JSGlobalObject.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h`/ |
| 57 | |
| 58 | QT_BEGIN_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:148:10`! |
| 59 | |
| 60 | namespace QScriptcxx . . $ QScript/ |
| 61 | { |
| 62 | |
| 63 | class GlobalObjectcxx . . $ QScript/GlobalObject# : public JSCcxx . . $ `<built-in>:463:9`!::JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject# |
| 64 | { |
| 65 | public: |
| 66 | GlobalObjectcxx . . $ QScript/GlobalObject#GlobalObject(49f6e7a06ebc5aa8).(); |
| 67 | virtual ~cxx . . $ QScript/GlobalObject#`~GlobalObject`(49f6e7a06ebc5aa8).GlobalObjectcxx . . $ QScript/GlobalObject#(); |
| 68 | virtual JSCcxx . . $ QTJSC/::UStringcxx . . $ QTJSC/UString# classNamecxx . . $ QScript/GlobalObject#className(ba9ec689f7dd9231).() const { returncxx . . $ QTJSC/UString#UString(e6bad6cb9b63b14d). "global"cxx . . $ QTJSC/UString#UString(85c52e162fed56f9).; } |
| 69 | virtual void markChildrencxx . . $ QScript/GlobalObject#markChildren(bd9cae851d80a865).(JSCcxx . . $ `<built-in>:463:9`!::MarkStackcxx . . $ QTJSC/MarkStack#&); |
| 70 | virtual bool getOwnPropertySlotcxx . . $ QScript/GlobalObject#getOwnPropertySlot(6f4ef3dbfe7d5ab9).(JSCcxx . . $ `<built-in>:463:9`!::ExecStatecxx . . $ QTJSC/ExecState#*, |
| 71 | const JSCcxx . . $ QTJSC/::Identifiercxx . . $ QTJSC/Identifier#& propertyName, |
| 72 | JSCcxx . . $ `<built-in>:463:9`!::PropertySlotcxx . . $ QTJSC/PropertySlot#&); |
| 73 | virtual bool getOwnPropertyDescriptorcxx . . $ QScript/GlobalObject#getOwnPropertyDescriptor(dce4ef7012294c32).(JSCcxx . . $ `<built-in>:463:9`!::ExecStatecxx . . $ QTJSC/ExecState#*, |
| 74 | const JSCcxx . . $ `<built-in>:463:9`!::Identifiercxx . . $ QTJSC/Identifier#& propertyName, |
| 75 | JSCcxx . . $ QTJSC/::PropertyDescriptorcxx . . $ QTJSC/PropertyDescriptor#&); |
| 76 | virtual void putcxx . . $ QScript/GlobalObject#put(dfb3133dafbe9ff4).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#* exec, const JSCcxx . . $ `<built-in>:463:9`!::Identifiercxx . . $ QTJSC/Identifier#& propertyName, |
| 77 | JSCcxx . . $ QTJSC/::JSValuecxx . . $ QTJSC/JSValue#, JSCcxx . . $ QTJSC/::PutPropertySlotcxx . . $ QTJSC/PutPropertySlot#&); |
| 78 | virtual void putWithAttributescxx . . $ QScript/GlobalObject#putWithAttributes(3dd2e6313723688d).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#* exec, const JSCcxx . . $ QTJSC/::Identifiercxx . . $ QTJSC/Identifier#& propertyName, |
| 79 | JSCcxx . . $ `<built-in>:463:9`!::JSValuecxx . . $ QTJSC/JSValue# value, unsigned attributes); |
| 80 | virtual bool deletePropertycxx . . $ QScript/GlobalObject#deleteProperty(13154ef9bddc9416).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#*, |
| 81 | const JSCcxx . . $ `<built-in>:463:9`!::Identifiercxx . . $ QTJSC/Identifier#& propertyName); |
| 82 | virtual void getOwnPropertyNamescxx . . $ QScript/GlobalObject#getOwnPropertyNames(2f9e3f18de200b4e).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#*, JSCcxx . . $ `<built-in>:463:9`!::PropertyNameArraycxx . . $ QTJSC/PropertyNameArray#&, |
| 83 | JSCcxx . . $ `<built-in>:463:9`!::EnumerationModecxx . . $ QTJSC/EnumerationMode# mode = JSCcxx . . $ `<built-in>:463:9`!::ExcludeDontEnumPropertiescxx . . $ QTJSC/ExcludeDontEnumProperties.); |
| 84 | virtual void defineGettercxx . . $ QScript/GlobalObject#defineGetter(413481394bc380b4).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#*, const JSCcxx . . $ `<built-in>:463:9`!::Identifiercxx . . $ QTJSC/Identifier#& propertyName, JSCcxx . . $ QTJSC/::JSObjectcxx . . $ QTJSC/JSObject#* getterFunction, unsigned attributes = 0); |
| 85 | virtual void defineSettercxx . . $ QScript/GlobalObject#defineSetter(413481394bc380b4).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#*, const JSCcxx . . $ `<built-in>:463:9`!::Identifiercxx . . $ QTJSC/Identifier#& propertyName, JSCcxx . . $ `<built-in>:463:9`!::JSObjectcxx . . $ QTJSC/JSObject#* setterFunction, unsigned attributes = 0); |
| 86 | virtual JSCcxx . . $ `<built-in>:463:9`!::JSValuecxx . . $ QTJSC/JSValue# lookupGettercxx . . $ QScript/GlobalObject#lookupGetter(c9cd87a849817b6).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#*, const JSCcxx . . $ `<built-in>:463:9`!::Identifiercxx . . $ QTJSC/Identifier#& propertyName); |
| 87 | virtual JSCcxx . . $ QTJSC/::JSValuecxx . . $ QTJSC/JSValue# lookupSettercxx . . $ QScript/GlobalObject#lookupSetter(c9cd87a849817b6).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#*, const JSCcxx . . $ QTJSC/::Identifiercxx . . $ QTJSC/Identifier#& propertyName); |
| 88 | |
| 89 | public: |
| 90 | JSCcxx . . $ `<built-in>:463:9`!::JSObjectcxx . . $ QTJSC/JSObject# *customGlobalObjectcxx . . $ QScript/GlobalObject#customGlobalObject.; |
| 91 | }; |
| 92 | |
| 93 | class OriginalGlobalObjectProxycxx . . $ QScript/OriginalGlobalObjectProxy# : public JSCcxx . . $ QTJSC/::JSObjectcxx . . $ QTJSC/JSObject# |
| 94 | { |
| 95 | public: |
| 96 | explicit OriginalGlobalObjectProxycxx . . $ QScript/OriginalGlobalObjectProxy#OriginalGlobalObjectProxy(108702e329285847).(WTFcxx . . $ `<built-in>:467:9`!::PassRefPtrcxx . . $ QTWTF/PassRefPtr#<JSCcxx . . $ QTJSC/::Structurecxx . . $ QTJSC/Structure#> sid, |
| 97 | JSCcxx . . $ QTJSC/::JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject# *object) |
| 98 | : JSCcxx . . $ `<built-in>:463:9`!::JSObjectcxx . . $ QTJSC/JSObject#(sid), originalGlobalObjectcxx . . $ QScript/OriginalGlobalObjectProxy#originalGlobalObject.(object) |
| 99 | {} |
| 100 | virtual ~cxx . . $ QScript/OriginalGlobalObjectProxy#`~OriginalGlobalObjectProxy`(49f6e7a06ebc5aa8).OriginalGlobalObjectProxycxx . . $ QScript/OriginalGlobalObjectProxy#() |
| 101 | {} |
| 102 | virtual JSCcxx . . $ QTJSC/::UStringcxx . . $ QTJSC/UString# classNamecxx . . $ QScript/OriginalGlobalObjectProxy#className(ba9ec689f7dd9231).() const |
| 103 | { return originalGlobalObjectcxx . . $ QScript/OriginalGlobalObjectProxy#originalGlobalObject.->classNamecxx . . $ QTJSC/JSObject#className(ba9ec689f7dd9231).(); } |
| 104 | virtual void markChildrencxx . . $ QScript/OriginalGlobalObjectProxy#markChildren(bd9cae851d80a865).(JSCcxx . . $ QTJSC/::MarkStackcxx . . $ QTJSC/MarkStack#& markStack) |
| 105 | { |
| 106 | markStack.appendcxx . . $ QTJSC/MarkStack#append(c6d88d3bdacccd64).(originalGlobalObjectcxx . . $ QScript/OriginalGlobalObjectProxy#originalGlobalObject.); |
| 107 | JSCcxx . . $ QTJSC/::JSObjectcxx . . $ QTJSC/JSObject#::markChildrencxx . . $ QTJSC/JSObject#markChildren(bd9cae851d80a865).(markStack); |
| 108 | } |
| 109 | virtual bool getOwnPropertySlotcxx . . $ QScript/OriginalGlobalObjectProxy#getOwnPropertySlot(6f4ef3dbfe7d5ab9).(JSCcxx . . $ `<built-in>:463:9`!::ExecStatecxx . . $ QTJSC/ExecState#* exec, |
| 110 | const JSCcxx . . $ `<built-in>:463:9`!::Identifiercxx . . $ QTJSC/Identifier#& propertyName, |
| 111 | JSCcxx . . $ QTJSC/::PropertySlotcxx . . $ QTJSC/PropertySlot#& slot) |
| 112 | { return originalGlobalObjectcxx . . $ QScript/OriginalGlobalObjectProxy#originalGlobalObject.->JSCcxx . . $ QTJSC/::JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::getOwnPropertySlotcxx . . $ QTJSC/JSGlobalObject#getOwnPropertySlot(6f4ef3dbfe7d5ab9).(exec, propertyName, slot); } |
| 113 | virtual bool getOwnPropertyDescriptorcxx . . $ QScript/OriginalGlobalObjectProxy#getOwnPropertyDescriptor(dce4ef7012294c32).(JSCcxx . . $ `<built-in>:463:9`!::ExecStatecxx . . $ QTJSC/ExecState#* exec, |
| 114 | const JSCcxx . . $ QTJSC/::Identifiercxx . . $ QTJSC/Identifier#& propertyName, |
| 115 | JSCcxx . . $ `<built-in>:463:9`!::PropertyDescriptorcxx . . $ QTJSC/PropertyDescriptor#& descriptor) |
| 116 | { return originalGlobalObjectcxx . . $ QScript/OriginalGlobalObjectProxy#originalGlobalObject.->JSCcxx . . $ `<built-in>:463:9`!::JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::getOwnPropertyDescriptorcxx . . $ QTJSC/JSGlobalObject#getOwnPropertyDescriptor(dce4ef7012294c32).(exec, propertyName, descriptor); } |
| 117 | virtual void putcxx . . $ QScript/OriginalGlobalObjectProxy#put(dfb3133dafbe9ff4).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#* exec, const JSCcxx . . $ QTJSC/::Identifiercxx . . $ QTJSC/Identifier#& propertyName, |
| 118 | JSCcxx . . $ QTJSC/::JSValuecxx . . $ QTJSC/JSValue# value, JSCcxx . . $ `<built-in>:463:9`!::PutPropertySlotcxx . . $ QTJSC/PutPropertySlot#& slot) |
| 119 | { originalGlobalObjectcxx . . $ QScript/OriginalGlobalObjectProxy#originalGlobalObject.->JSCcxx . . $ QTJSC/::JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::putcxx . . $ QTJSC/JSGlobalObject#put(dfb3133dafbe9ff4).(exec, propertyName, value, slot); } |
| 120 | virtual void putWithAttributescxx . . $ QScript/OriginalGlobalObjectProxy#putWithAttributes(3dd2e6313723688d).(JSCcxx . . $ `<built-in>:463:9`!::ExecStatecxx . . $ QTJSC/ExecState#* exec, const JSCcxx . . $ QTJSC/::Identifiercxx . . $ QTJSC/Identifier#& propertyName, JSCcxx . . $ `<built-in>:463:9`!::JSValuecxx . . $ QTJSC/JSValue# value, unsigned attributes) |
| 121 | { originalGlobalObjectcxx . . $ QScript/OriginalGlobalObjectProxy#originalGlobalObject.->JSCcxx . . $ `<built-in>:463:9`!::JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::putWithAttributescxx . . $ QTJSC/JSGlobalObject#putWithAttributes(3dd2e6313723688d).(exec, propertyName, value, attributes); } |
| 122 | virtual bool deletePropertycxx . . $ QScript/OriginalGlobalObjectProxy#deleteProperty(13154ef9bddc9416).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#* exec, |
| 123 | const JSCcxx . . $ QTJSC/::Identifiercxx . . $ QTJSC/Identifier#& propertyName) |
| 124 | { return originalGlobalObjectcxx . . $ QScript/OriginalGlobalObjectProxy#originalGlobalObject.->JSCcxx . . $ QTJSC/::JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::deletePropertycxx . . $ QTJSC/JSVariableObject#deleteProperty(13154ef9bddc9416).(exec, propertyName); } |
| 125 | virtual void getOwnPropertyNamescxx . . $ QScript/OriginalGlobalObjectProxy#getOwnPropertyNames(2f9e3f18de200b4e).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#* exec, JSCcxx . . $ `<built-in>:463:9`!::PropertyNameArraycxx . . $ QTJSC/PropertyNameArray#& propertyNames, JSCcxx . . $ QTJSC/::EnumerationModecxx . . $ QTJSC/EnumerationMode# mode = JSCcxx . . $ QTJSC/::ExcludeDontEnumPropertiescxx . . $ QTJSC/ExcludeDontEnumProperties.) |
| 126 | { originalGlobalObjectcxx . . $ QScript/OriginalGlobalObjectProxy#originalGlobalObject.->JSCcxx . . $ QTJSC/::JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::getOwnPropertyNamescxx . . $ QTJSC/JSVariableObject#getOwnPropertyNames(2f9e3f18de200b4e).(exec, propertyNames, mode); } |
| 127 | virtual void defineGettercxx . . $ QScript/OriginalGlobalObjectProxy#defineGetter(413481394bc380b4).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#* exec, const JSCcxx . . $ QTJSC/::Identifiercxx . . $ QTJSC/Identifier#& propertyName, JSCcxx . . $ `<built-in>:463:9`!::JSObjectcxx . . $ QTJSC/JSObject#* getterFunction, unsigned attributes) |
| 128 | { originalGlobalObjectcxx . . $ QScript/OriginalGlobalObjectProxy#originalGlobalObject.->JSCcxx . . $ QTJSC/::JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::defineGettercxx . . $ QTJSC/JSGlobalObject#defineGetter(413481394bc380b4).(exec, propertyName, getterFunction, attributes); } |
| 129 | virtual void defineSettercxx . . $ QScript/OriginalGlobalObjectProxy#defineSetter(413481394bc380b4).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#* exec, const JSCcxx . . $ QTJSC/::Identifiercxx . . $ QTJSC/Identifier#& propertyName, JSCcxx . . $ `<built-in>:463:9`!::JSObjectcxx . . $ QTJSC/JSObject#* setterFunction, unsigned attributes) |
| 130 | { originalGlobalObjectcxx . . $ QScript/OriginalGlobalObjectProxy#originalGlobalObject.->JSCcxx . . $ QTJSC/::JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::defineSettercxx . . $ QTJSC/JSGlobalObject#defineSetter(413481394bc380b4).(exec, propertyName, setterFunction, attributes); } |
| 131 | virtual JSCcxx . . $ `<built-in>:463:9`!::JSValuecxx . . $ QTJSC/JSValue# lookupGettercxx . . $ QScript/OriginalGlobalObjectProxy#lookupGetter(c9cd87a849817b6).(JSCcxx . . $ `<built-in>:463:9`!::ExecStatecxx . . $ QTJSC/ExecState#* exec, const JSCcxx . . $ QTJSC/::Identifiercxx . . $ QTJSC/Identifier#& propertyName) |
| 132 | { return originalGlobalObjectcxx . . $ QScript/OriginalGlobalObjectProxy#originalGlobalObject.->JSCcxx . . $ QTJSC/::JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::lookupGettercxx . . $ QTJSC/JSObject#lookupGetter(c9cd87a849817b6).(exec, propertyName); } |
| 133 | virtual JSCcxx . . $ QTJSC/::JSValuecxx . . $ QTJSC/JSValue# lookupSettercxx . . $ QScript/OriginalGlobalObjectProxy#lookupSetter(c9cd87a849817b6).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#* exec, const JSCcxx . . $ `<built-in>:463:9`!::Identifiercxx . . $ QTJSC/Identifier#& propertyName) |
| 134 | { return originalGlobalObjectcxx . . $ QScript/OriginalGlobalObjectProxy#originalGlobalObject.->JSCcxx . . $ QTJSC/::JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject#::lookupSettercxx . . $ QTJSC/JSObject#lookupSetter(c9cd87a849817b6).(exec, propertyName); } |
| 135 | private: |
| 136 | JSCcxx . . $ QTJSC/::JSGlobalObjectcxx . . $ QTJSC/JSGlobalObject# *originalGlobalObjectcxx . . $ QScript/OriginalGlobalObjectProxy#originalGlobalObject.; |
| 137 | }; |
| 138 | |
| 139 | } // namespace QScript |
| 140 | |
| 141 | QT_END_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:149:10`! |
| 142 | |
| 143 | #endif |