| 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 QSCRIPTENGINEAGENT_P_H |
| 41 | #define QSCRIPTENGINEAGENT_P_Hcxx . . $ `src/script/api/qscriptengineagent_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 | #include "Debugger.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/debugger/Debugger.h`/ |
| 56 | #include "qscriptengineagent.h"cxx . . $ `<file>/src/script/api/qscriptengineagent.h`/ |
| 57 | |
| 58 | #include "CallFrame.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/interpreter/CallFrame.h`/ |
| 59 | #include "SourceCode.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/parser/SourceCode.h`/ |
| 60 | #include "UString.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/UString.h`/ |
| 61 | #include "DebuggerCallFrame.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/debugger/DebuggerCallFrame.h`/ |
| 62 | |
| 63 | QT_BEGIN_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:148:10`! |
| 64 | |
| 65 | class QScriptEnginePrivatecxx . . $ QScriptEnginePrivate#; |
| 66 | |
| 67 | class QScriptEngineAgentcxx . . $ QScriptEngineAgent#; |
| 68 | class Q_SCRIPT_EXPORTcxx . . $ `src/script/api/qtscriptglobal.h:49:13`! QScriptEngineAgentPrivatecxx . . $ QScriptEngineAgentPrivate# : public JSCcxx . . $ QTJSC/::Debuggercxx . . $ QTJSC/Debugger# |
| 69 | { |
| 70 | Q_DECLARE_PUBLICcxx . . $ QScriptEngineAgentPrivate#q_func(1daeb73aaf44bbdf).(QScriptEngineAgent) |
| 71 | public: |
| 72 | static QScriptEngineAgentcxx . . $ QScriptEngineAgent#* getcxx . . $ QScriptEngineAgentPrivate#get(be1ee2cd34062e49).(QScriptEngineAgentPrivatecxx . . $ QScriptEngineAgentPrivate#* p) {return p->q_funccxx . . $ QScriptEngineAgentPrivate#q_func(1daeb73aaf44bbdf).();} |
| 73 | static QScriptEngineAgentPrivatecxx . . $ QScriptEngineAgentPrivate#* getcxx . . $ QScriptEngineAgentPrivate#get(92257d91772596fd).(QScriptEngineAgentcxx . . $ QScriptEngineAgent#* p) {return p->d_funccxx . . $ QScriptEngineAgent#d_func(87ceee3379a806f3).();} |
| 74 | |
| 75 | QScriptEngineAgentPrivatecxx . . $ QScriptEngineAgentPrivate#QScriptEngineAgentPrivate(49f6e7a06ebc5aa8).(){} |
| 76 | virtual ~cxx . . $ QScriptEngineAgentPrivate#`~QScriptEngineAgentPrivate`(49f6e7a06ebc5aa8).QScriptEngineAgentPrivatecxx . . $ QScriptEngineAgentPrivate#(){} |
| 77 | |
| 78 | void attachcxx . . $ QScriptEngineAgentPrivate#attach(49f6e7a06ebc5aa8).(); |
| 79 | void detachcxx . . $ QScriptEngineAgentPrivate#detach(49f6e7a06ebc5aa8).(); |
| 80 | |
| 81 | //scripts |
| 82 | virtual void sourceParsedcxx . . $ QScriptEngineAgentPrivate#sourceParsed(b9d3e5b00e66c0ae).(JSCcxx . . $ QTJSC/::ExecStatecxx . . $ QTJSC/ExecState#*, const JSCcxx . . $ `<built-in>:463:9`!::SourceCodecxx . . $ QTJSC/SourceCode#&, int /*errorLine*/, const JSCcxx . . $ `<built-in>:463:9`!::UStringcxx . . $ QTJSC/UString#& /*errorMsg*/) {} |
| 83 | virtual void scriptUnloadcxx . . $ QScriptEngineAgentPrivate#scriptUnload(35cb52607f6af42f).(qint64cxx . . $ qint64# id) |
| 84 | { |
| 85 | q_ptrcxx . . $ QScriptEngineAgentPrivate#q_ptr.->scriptUnloadcxx . . $ QScriptEngineAgent#scriptUnload(35cb52607f6af42f).(id); |
| 86 | } |
| 87 | virtual void scriptLoadcxx . . $ QScriptEngineAgentPrivate#scriptLoad(f61a5dac2052f802).(qint64cxx . . $ qint64# id, const JSCcxx . . $ `<built-in>:463:9`!::UStringcxx . . $ QTJSC/UString# &program, |
| 88 | const JSCcxx . . $ QTJSC/::UStringcxx . . $ QTJSC/UString# &fileName, int baseLineNumber) |
| 89 | { |
| 90 | q_ptrcxx . . $ QScriptEngineAgentPrivate#q_ptr.->scriptLoadcxx . . $ QScriptEngineAgent#scriptLoad(a07cc45066a712e1).(id,program, fileName, baseLineNumber); |
| 91 | } |
| 92 | |
| 93 | //exceptions |
| 94 | virtual void exceptioncxx . . $ QScriptEngineAgentPrivate#exception(8d3cb298cf587715).(const JSCcxx . . $ QTJSC/::DebuggerCallFramecxx . . $ QTJSC/DebuggerCallFrame#& frame, intptr_tcxx . . $ intptr_t# sourceID, int lineno, bool hasHandler) |
| 95 | { |
| 96 | Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(frame); |
| 97 | Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(sourceID); |
| 98 | Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(lineno); |
| 99 | Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(hasHandler); |
| 100 | } |
| 101 | virtual void exceptionThrowcxx . . $ QScriptEngineAgentPrivate#exceptionThrow(988d3f41b66f3a59).(const JSCcxx . . $ `<built-in>:463:9`!::DebuggerCallFramecxx . . $ QTJSC/DebuggerCallFrame#& frame, intptr_tcxx . . $ intptr_t# sourceID, bool hasHandler); |
| 102 | virtual void exceptionCatchcxx . . $ QScriptEngineAgentPrivate#exceptionCatch(26f6d5efea35a785).(const JSCcxx . . $ QTJSC/::DebuggerCallFramecxx . . $ QTJSC/DebuggerCallFrame#& frame, intptr_tcxx . . $ intptr_t# sourceID); |
| 103 | |
| 104 | //statements |
| 105 | virtual void atStatementcxx . . $ QScriptEngineAgentPrivate#atStatement(c7dddfe28e8e5e6c).(const JSCcxx . . $ QTJSC/::DebuggerCallFramecxx . . $ QTJSC/DebuggerCallFrame#&, intptr_tcxx . . $ intptr_t# sourceID, int lineno/*, int column*/); |
| 106 | virtual void callEventcxx . . $ QScriptEngineAgentPrivate#callEvent(c7dddfe28e8e5e6c).(const JSCcxx . . $ QTJSC/::DebuggerCallFramecxx . . $ QTJSC/DebuggerCallFrame#&, intptr_tcxx . . $ intptr_t# sourceID, int lineno) |
| 107 | { |
| 108 | Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(lineno); |
| 109 | q_ptrcxx . . $ QScriptEngineAgentPrivate#q_ptr.->contextPushcxx . . $ QScriptEngineAgent#contextPush(49f6e7a06ebc5aa8).(); |
| 110 | q_ptrcxx . . $ QScriptEngineAgentPrivate#q_ptr.->functionEntrycxx . . $ QScriptEngineAgent#functionEntry(35cb52607f6af42f).(sourceID); |
| 111 | } |
| 112 | virtual void returnEventcxx . . $ QScriptEngineAgentPrivate#returnEvent(c7dddfe28e8e5e6c).(const JSCcxx . . $ QTJSC/::DebuggerCallFramecxx . . $ QTJSC/DebuggerCallFrame#& frame, intptr_tcxx . . $ intptr_t# sourceID, int lineno); |
| 113 | virtual void willExecuteProgramcxx . . $ QScriptEngineAgentPrivate#willExecuteProgram(c7dddfe28e8e5e6c).(const JSCcxx . . $ `<built-in>:463:9`!::DebuggerCallFramecxx . . $ QTJSC/DebuggerCallFrame#& frame, intptr_tcxx . . $ intptr_t# sourceID, int lineno) |
| 114 | { |
| 115 | Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(frame); |
| 116 | Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(sourceID); |
| 117 | Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(lineno); |
| 118 | } |
| 119 | virtual void didExecuteProgramcxx . . $ QScriptEngineAgentPrivate#didExecuteProgram(c7dddfe28e8e5e6c).(const JSCcxx . . $ QTJSC/::DebuggerCallFramecxx . . $ QTJSC/DebuggerCallFrame#& frame, intptr_tcxx . . $ intptr_t# sourceID, int lineno) |
| 120 | { |
| 121 | Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(frame); |
| 122 | Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(sourceID); |
| 123 | Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(lineno); |
| 124 | } |
| 125 | virtual void functionExitcxx . . $ QScriptEngineAgentPrivate#functionExit(661314651358aafa).(const JSCcxx . . $ QTJSC/::JSValuecxx . . $ QTJSC/JSValue#& returnValue, intptr_tcxx . . $ intptr_t# sourceID); |
| 126 | //others |
| 127 | virtual void didReachBreakpointcxx . . $ QScriptEngineAgentPrivate#didReachBreakpoint(c7dddfe28e8e5e6c).(const JSCcxx . . $ `<built-in>:463:9`!::DebuggerCallFramecxx . . $ QTJSC/DebuggerCallFrame#& frame, intptr_tcxx . . $ intptr_t# sourceID, int lineno/*, int column*/); |
| 128 | |
| 129 | virtual void evaluateStartcxx . . $ QScriptEngineAgentPrivate#evaluateStart(1624ee8275b10bda).(intptr_tcxx . . $ intptr_t# sourceID) |
| 130 | { |
| 131 | q_ptrcxx . . $ QScriptEngineAgentPrivate#q_ptr.->functionEntrycxx . . $ QScriptEngineAgent#functionEntry(35cb52607f6af42f).(sourceID); |
| 132 | } |
| 133 | virtual void evaluateStopcxx . . $ QScriptEngineAgentPrivate#evaluateStop(661314651358aafa).(const JSCcxx . . $ QTJSC/::JSValuecxx . . $ QTJSC/JSValue#& returnValue, intptr_tcxx . . $ intptr_t# sourceID); |
| 134 | |
| 135 | QScriptEnginePrivatecxx . . $ QScriptEnginePrivate# *enginecxx . . $ QScriptEngineAgentPrivate#engine.; |
| 136 | QScriptEngineAgentcxx . . $ QScriptEngineAgent# *q_ptrcxx . . $ QScriptEngineAgentPrivate#q_ptr.; |
| 137 | }; |
| 138 | |
| 139 | QT_END_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:149:10`! |
| 140 | |
| 141 | #endif |