1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<title>Qt 4.6: scriptbreakpointmanager.h Example File (script/qsdbg/scriptbreakpointmanager.h)</title>
7
<link href="classic.css" rel="stylesheet" type="text/css" />
10
<table border="0" cellpadding="0" cellspacing="0" width="100%">
12
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
13
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">scriptbreakpointmanager.h Example File<br /><span class="small-subtitle">script/qsdbg/scriptbreakpointmanager.h</span>
15
<pre><span class="comment"> /****************************************************************************
17
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
18
** All rights reserved.
19
** Contact: Nokia Corporation (qt-info@nokia.com)
21
** This file is part of the examples of the Qt Toolkit.
23
** $QT_BEGIN_LICENSE:LGPL$
25
** Licensees holding valid Qt Commercial licenses may use this file in
26
** accordance with the Qt Commercial License Agreement provided with the
27
** Software or, alternatively, in accordance with the terms contained in
28
** a written agreement between you and Nokia.
30
** GNU Lesser General Public License Usage
31
** Alternatively, this file may be used under the terms of the GNU Lesser
32
** General Public License version 2.1 as published by the Free Software
33
** Foundation and appearing in the file LICENSE.LGPL included in the
34
** packaging of this file. Please review the following information to
35
** ensure the GNU Lesser General Public License version 2.1 requirements
36
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
38
** In addition, as a special exception, Nokia gives you certain additional
39
** rights. These rights are described in the Nokia Qt LGPL Exception
40
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
42
** GNU General Public License Usage
43
** Alternatively, this file may be used under the terms of the GNU
44
** General Public License version 3.0 as published by the Free Software
45
** Foundation and appearing in the file LICENSE.GPL included in the
46
** packaging of this file. Please review the following information to
47
** ensure the GNU General Public License version 3.0 requirements will be
48
** met: http://www.gnu.org/copyleft/gpl.html.
50
** If you have questions regarding the use of this file, please contact
51
** Nokia at qt-info@nokia.com.
54
****************************************************************************/</span>
56
#ifndef SCRIPTBREAKPOINTMANAGER_H
57
#define SCRIPTBREAKPOINTMANAGER_H
59
#include <QtCore/qlist.h>
60
#include <QtCore/qstring.h>
61
#include <QtScript/qscriptvalue.h>
63
class ScriptBreakpointInfo
77
QScriptValue function;
83
ScriptBreakpointInfo(const QString &fileName, int lineNumber)
84
: type(File), fileName(fileName), lineNumber(lineNumber),
85
enabled(true), ignoreCount(0), singleShot(false)
87
ScriptBreakpointInfo(const QString &functionName, const QString &fileName = QString())
88
: type(FunctionName), functionName(functionName), fileName(fileName),
89
enabled(true), ignoreCount(0), singleShot(false)
91
ScriptBreakpointInfo(const QScriptValue &function)
92
: type(Function), function(function),
93
enabled(true), ignoreCount(0), singleShot(false)
95
ScriptBreakpointInfo()
100
class ScriptBreakpointManager
103
ScriptBreakpointManager();
104
~ScriptBreakpointManager();
106
bool hasBreakpoints() const;
108
int setBreakpoint(const QString &fileName, int lineNumber);
109
int setBreakpoint(const QString &functionName, const QString &fileName = QString());
110
int setBreakpoint(const QScriptValue &function);
112
void removeBreakpoint(int id);
114
int findBreakpoint(const QString &fileName, int lineNumber) const;
115
int findBreakpoint(const QString &functionName, const QString &fileName = QString()) const;
116
int findBreakpoint(const QScriptValue &function) const;
118
bool isBreakpointEnabled(int id) const;
119
void setBreakpointEnabled(int id, bool enabled);
121
QString breakpointCondition(int id) const;
122
void setBreakpointCondition(int id, const QString &expression);
124
int breakpointIgnoreCount(int id) const;
125
void setBreakpointIgnoreCount(int id, int ignoreCount);
127
bool isBreakpointSingleShot(int id) const;
128
void setBreakpointSingleShot(int id, bool singleShot);
131
QList<ScriptBreakpointInfo> breakpoints;
133
Q_DISABLE_COPY(ScriptBreakpointManager)
136
#endif <span class="comment">// SCRIPTBREAKPOINTMANAGER_H</span></pre>
137
<p /><address><hr /><div align="center">
138
<table width="100%" cellspacing="0" border="0"><tr class="address">
139
<td width="40%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
140
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
141
<td width="40%" align="right"><div align="right">Qt 4.6.2</div></td>
142
</tr></table></div></address></body>