| 1 | /**************************************************************************** |
| 2 | ** |
| 3 | ** Copyright (C) 2017 The Qt Company Ltd. |
| 4 | ** Contact: https://www.qt.io/licensing/ |
| 5 | ** |
| 6 | ** This file is part of the examples of the Qt Toolkit. |
| 7 | ** |
| 8 | ** $QT_BEGIN_LICENSE:BSD$ |
| 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 | ** BSD License Usage |
| 18 | ** Alternatively, you may use this file under the terms of the BSD license |
| 19 | ** as follows: |
| 20 | ** |
| 21 | ** "Redistribution and use in source and binary forms, with or without |
| 22 | ** modification, are permitted provided that the following conditions are |
| 23 | ** met: |
| 24 | ** * Redistributions of source code must retain the above copyright |
| 25 | ** notice, this list of conditions and the following disclaimer. |
| 26 | ** * Redistributions in binary form must reproduce the above copyright |
| 27 | ** notice, this list of conditions and the following disclaimer in |
| 28 | ** the documentation and/or other materials provided with the |
| 29 | ** distribution. |
| 30 | ** * Neither the name of The Qt Company Ltd nor the names of its |
| 31 | ** contributors may be used to endorse or promote products derived |
| 32 | ** from this software without specific prior written permission. |
| 33 | ** |
| 34 | ** |
| 35 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 36 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 37 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 38 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 39 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 40 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 41 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 42 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 43 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 44 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 45 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." |
| 46 | ** |
| 47 | ** $QT_END_LICENSE$ |
| 48 | ** |
| 49 | ****************************************************************************/ |
| 50 | |
| 51 | #ifndef SCRIPTBREAKPOINTMANAGER_H |
| 52 | #define SCRIPTBREAKPOINTMANAGER_Hcxx . . $ `examples/script/qsdbg/scriptbreakpointmanager.h:52:9`! |
| 53 | |
| 54 | #include <QtCore/qlist.h> |
| 55 | #include <QtCore/qstring.h> |
| 56 | #include <QtScript/qscriptvalue.h>cxx . . $ `<file>/include/QtScript/qscriptvalue.h`/ |
| 57 | |
| 58 | class ScriptBreakpointInfocxx . . $ ScriptBreakpointInfo# |
| 59 | { |
| 60 | public: |
| 61 | enum Typecxx . . $ ScriptBreakpointInfo#Type# { |
| 62 | Filecxx . . $ ScriptBreakpointInfo#File., |
| 63 | FunctionNamecxx . . $ ScriptBreakpointInfo#FunctionName., |
| 64 | Functioncxx . . $ ScriptBreakpointInfo#Function., |
| 65 | Invalidcxx . . $ ScriptBreakpointInfo#Invalid. |
| 66 | }; |
| 67 | |
| 68 | Typecxx . . $ ScriptBreakpointInfo#Type# typecxx . . $ ScriptBreakpointInfo#type.; |
| 69 | QStringcxx . . $ QString# functionNamecxx . . $ ScriptBreakpointInfo#functionName.; |
| 70 | QStringcxx . . $ QString# fileNamecxx . . $ ScriptBreakpointInfo#fileName.; |
| 71 | int lineNumbercxx . . $ ScriptBreakpointInfo#lineNumber.; |
| 72 | QScriptValuecxx . . $ QScriptValue# functioncxx . . $ ScriptBreakpointInfo#function.; |
| 73 | bool enabledcxx . . $ ScriptBreakpointInfo#enabled.; |
| 74 | QStringcxx . . $ QString# conditioncxx . . $ ScriptBreakpointInfo#condition.; |
| 75 | int ignoreCountcxx . . $ ScriptBreakpointInfo#ignoreCount.; |
| 76 | bool singleShotcxx . . $ ScriptBreakpointInfo#singleShot.; |
| 77 | |
| 78 | ScriptBreakpointInfocxx . . $ ScriptBreakpointInfo#ScriptBreakpointInfo(29ed8fcd127906b1).(const QStringcxx . . $ QString# &fileName, int lineNumber) |
| 79 | : typecxx . . $ ScriptBreakpointInfo#type.(Filecxx . . $ ScriptBreakpointInfo#File.), fileNamecxx . . $ ScriptBreakpointInfo#fileName.(fileName), lineNumbercxx . . $ ScriptBreakpointInfo#lineNumber.(lineNumber), |
| 80 | enabledcxx . . $ ScriptBreakpointInfo#enabled.(true), ignoreCountcxx . . $ ScriptBreakpointInfo#ignoreCount.(0), singleShotcxx . . $ ScriptBreakpointInfo#singleShot.(false) |
| 81 | { } |
| 82 | ScriptBreakpointInfocxx . . $ ScriptBreakpointInfo#ScriptBreakpointInfo(c1427772cd1877b0).(const QStringcxx . . $ QString# &functionName, const QStringcxx . . $ QString# &fileName = QStringcxx . . $ QString#QString(ced63f7c635d850d).()) |
| 83 | : typecxx . . $ ScriptBreakpointInfo#type.(FunctionNamecxx . . $ ScriptBreakpointInfo#FunctionName.), functionNamecxx . . $ ScriptBreakpointInfo#functionName.(functionName), fileNamecxx . . $ ScriptBreakpointInfo#fileName.(fileName), |
| 84 | enabledcxx . . $ ScriptBreakpointInfo#enabled.(true), ignoreCountcxx . . $ ScriptBreakpointInfo#ignoreCount.(0), singleShotcxx . . $ ScriptBreakpointInfo#singleShot.(false) |
| 85 | { } |
| 86 | ScriptBreakpointInfocxx . . $ ScriptBreakpointInfo#ScriptBreakpointInfo(6b35c8bde2804237).(const QScriptValuecxx . . $ QScriptValue# &function) |
| 87 | : typecxx . . $ ScriptBreakpointInfo#type.(Functioncxx . . $ ScriptBreakpointInfo#Function.), functioncxx . . $ ScriptBreakpointInfo#function.(function), |
| 88 | enabledcxx . . $ ScriptBreakpointInfo#enabled.(true), ignoreCountcxx . . $ ScriptBreakpointInfo#ignoreCount.(0), singleShotcxx . . $ ScriptBreakpointInfo#singleShot.(false) |
| 89 | { } |
| 90 | ScriptBreakpointInfocxx . . $ ScriptBreakpointInfo#ScriptBreakpointInfo(49f6e7a06ebc5aa8).() |
| 91 | : typecxx . . $ ScriptBreakpointInfo#type.(Invalidcxx . . $ ScriptBreakpointInfo#Invalid.) |
| 92 | { } |
| 93 | }; |
| 94 | |
| 95 | class ScriptBreakpointManagercxx . . $ ScriptBreakpointManager# |
| 96 | { |
| 97 | public: |
| 98 | ScriptBreakpointManagercxx . . $ ScriptBreakpointManager#ScriptBreakpointManager(49f6e7a06ebc5aa8).(); |
| 99 | ~cxx . . $ ScriptBreakpointManager#`~ScriptBreakpointManager`(ced63f7c635d850d).ScriptBreakpointManagercxx . . $ ScriptBreakpointManager#(); |
| 100 | |
| 101 | bool hasBreakpointscxx . . $ ScriptBreakpointManager#hasBreakpoints(50ce9a9e25b4a850).() const; |
| 102 | |
| 103 | int setBreakpointcxx . . $ ScriptBreakpointManager#setBreakpoint(a664fe1f05d5cb93).(const QStringcxx . . $ QString# &fileName, int lineNumber); |
| 104 | int setBreakpointcxx . . $ ScriptBreakpointManager#setBreakpoint(c6f4e55073dadb56).(const QStringcxx . . $ QString# &functionName, const QStringcxx . . $ QString# &fileName = QStringcxx . . $ QString#QString(ced63f7c635d850d).()); |
| 105 | int setBreakpointcxx . . $ ScriptBreakpointManager#setBreakpoint(1ba93f8a114f47f4).(const QScriptValuecxx . . $ QScriptValue# &function); |
| 106 | |
| 107 | void removeBreakpointcxx . . $ ScriptBreakpointManager#removeBreakpoint(d4f767463ce0a6b3).(int id); |
| 108 | |
| 109 | int findBreakpointcxx . . $ ScriptBreakpointManager#findBreakpoint(91f46685ef4c12b5).(const QStringcxx . . $ QString# &fileName, int lineNumber) const; |
| 110 | int findBreakpointcxx . . $ ScriptBreakpointManager#findBreakpoint(45fb196bbb245bf5).(const QStringcxx . . $ QString# &functionName, const QStringcxx . . $ QString# &fileName = QStringcxx . . $ QString#QString(ced63f7c635d850d).()) const; |
| 111 | int findBreakpointcxx . . $ ScriptBreakpointManager#findBreakpoint(7777895d9151fbe4).(const QScriptValuecxx . . $ QScriptValue# &function) const; |
| 112 | |
| 113 | bool isBreakpointEnabledcxx . . $ ScriptBreakpointManager#isBreakpointEnabled(4a668f6de69bf818).(int id) const; |
| 114 | void setBreakpointEnabledcxx . . $ ScriptBreakpointManager#setBreakpointEnabled(918ebd27a9ddbad3).(int id, bool enabled); |
| 115 | |
| 116 | QStringcxx . . $ QString# breakpointConditioncxx . . $ ScriptBreakpointManager#breakpointCondition(3f3c3d0e9c0eb37f).(int id) const; |
| 117 | void setBreakpointConditioncxx . . $ ScriptBreakpointManager#setBreakpointCondition(4b11a7293b4ed91c).(int id, const QStringcxx . . $ QString# &expression); |
| 118 | |
| 119 | int breakpointIgnoreCountcxx . . $ ScriptBreakpointManager#breakpointIgnoreCount(7ccb52b1bfe01045).(int id) const; |
| 120 | void setBreakpointIgnoreCountcxx . . $ ScriptBreakpointManager#setBreakpointIgnoreCount(3e454b8ccf442868).(int id, int ignoreCount); |
| 121 | |
| 122 | bool isBreakpointSingleShotcxx . . $ ScriptBreakpointManager#isBreakpointSingleShot(4a668f6de69bf818).(int id) const; |
| 123 | void setBreakpointSingleShotcxx . . $ ScriptBreakpointManager#setBreakpointSingleShot(918ebd27a9ddbad3).(int id, bool singleShot); |
| 124 | |
| 125 | private: |
| 126 | QListcxx . . $ QList#<ScriptBreakpointInfocxx . . $ ScriptBreakpointInfo#> breakpointscxx . . $ ScriptBreakpointManager#breakpoints.; |
| 127 | |
| 128 | Q_DISABLE_COPYcxx . . $ `<external>/15045578679651060896/qglobal.h:444:9`!(ScriptBreakpointManager) |
| 129 | }; |
| 130 | |
| 131 | #endif // SCRIPTBREAKPOINTMANAGER_H |