~ubuntu-branches/ubuntu/lucid/qt4-x11/lucid

« back to all changes in this revision

Viewing changes to doc/html/script-qsdbg-scriptbreakpointmanager-h.html

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi, Jonathan Riddell, Alessandro Ghersi
  • Date: 2010-02-25 02:23:43 UTC
  • mfrom: (1.1.29 upstream)
  • Revision ID: james.westby@ubuntu.com-20100225022343-qy63knnsv86fi6tc
Tags: 4:4.6.2-0ubuntu1
[ Jonathan Riddell ]
* New upstream release
* Update kubuntu_07_phonon_4.3.80.diff
* Update 05_append_qt4_target.diff

[ Alessandro Ghersi ]
* Update patches:
  - 0180-window-role.diff
  - 15_fix_qmake_makefile_generation.diff
  - 18_enable_qt3support_qtwebkit_debug_info.diff
  - 81_hurd_architecture.diff
  - 82_hurd_SA_SIGINFO.diff
  - 96_powerpc_no_gc_sections.diff
* Sync 92_armel_gcc43_valist_compat.diff with Debian
* Add kubuntu_11_fix_main_window_without_central_widget.diff (LP: #515132)
  (backport from Qt 4.6.3)
* In libqt4-dbg add conflicts with qt-x11-free-dbg (LP: #517263)
* qt4-dev-tools replaces libqt4-core (<= 4.5.3really4.5.2-0ubuntu1)
  (LP: #527534)
* Sync manpages/qdbus.1 with Debian
  - Update libqt4-dev.manpages
* qt4-dev-tools conflicts with qt3-dev-tools-embedded
* qt4-dev-tools suggests qt4-doc-html
* Update all symbol files
* Bump build dependency of debhelper and pkg-kde-tools to version 0.6.4 as it
  is needed to handle symbol files and build with pkgkde symbolshelper and
  parallel addon
* Call dh_auto_build instead of $(MAKE) for parallel build
* In override_dh_makeshlibs: do not FTBS if there are lost symbols
* Drop rules to generating libphonon4 symbols, no longer need

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE html
 
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">
 
5
<head>
 
6
  <title>Qt 4.6: scriptbreakpointmanager.h Example File (script/qsdbg/scriptbreakpointmanager.h)</title>
 
7
  <link href="classic.css" rel="stylesheet" type="text/css" />
 
8
</head>
 
9
<body>
 
10
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
11
<tr>
 
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">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <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>
 
14
</h1>
 
15
<pre><span class="comment"> /****************************************************************************
 
16
 **
 
17
 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
 
18
 ** All rights reserved.
 
19
 ** Contact: Nokia Corporation (qt-info@nokia.com)
 
20
 **
 
21
 ** This file is part of the examples of the Qt Toolkit.
 
22
 **
 
23
 ** $QT_BEGIN_LICENSE:LGPL$
 
24
 ** Commercial Usage
 
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.
 
29
 **
 
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.
 
37
 **
 
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.
 
41
 **
 
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.
 
49
 **
 
50
 ** If you have questions regarding the use of this file, please contact
 
51
 ** Nokia at qt-info@nokia.com.
 
52
 ** $QT_END_LICENSE$
 
53
 **
 
54
 ****************************************************************************/</span>
 
55
 
 
56
 #ifndef SCRIPTBREAKPOINTMANAGER_H
 
57
 #define SCRIPTBREAKPOINTMANAGER_H
 
58
 
 
59
 #include &lt;QtCore/qlist.h&gt;
 
60
 #include &lt;QtCore/qstring.h&gt;
 
61
 #include &lt;QtScript/qscriptvalue.h&gt;
 
62
 
 
63
 class ScriptBreakpointInfo
 
64
 {
 
65
 public:
 
66
     enum Type {
 
67
         File,
 
68
         FunctionName,
 
69
         Function,
 
70
         Invalid
 
71
     };
 
72
 
 
73
     Type type;
 
74
     QString functionName;
 
75
     QString fileName;
 
76
     int lineNumber;
 
77
     QScriptValue function;
 
78
     bool enabled;
 
79
     QString condition;
 
80
     int ignoreCount;
 
81
     bool singleShot;
 
82
 
 
83
     ScriptBreakpointInfo(const QString &amp;fileName, int lineNumber)
 
84
         : type(File), fileName(fileName), lineNumber(lineNumber),
 
85
           enabled(true), ignoreCount(0), singleShot(false)
 
86
         { }
 
87
     ScriptBreakpointInfo(const QString &amp;functionName, const QString &amp;fileName = QString())
 
88
         : type(FunctionName), functionName(functionName), fileName(fileName),
 
89
           enabled(true), ignoreCount(0), singleShot(false)
 
90
         { }
 
91
     ScriptBreakpointInfo(const QScriptValue &amp;function)
 
92
         : type(Function), function(function),
 
93
           enabled(true), ignoreCount(0), singleShot(false)
 
94
         { }
 
95
     ScriptBreakpointInfo()
 
96
         : type(Invalid)
 
97
         { }
 
98
 };
 
99
 
 
100
 class ScriptBreakpointManager
 
101
 {
 
102
 public:
 
103
     ScriptBreakpointManager();
 
104
     ~ScriptBreakpointManager();
 
105
 
 
106
     bool hasBreakpoints() const;
 
107
 
 
108
     int setBreakpoint(const QString &amp;fileName, int lineNumber);
 
109
     int setBreakpoint(const QString &amp;functionName, const QString &amp;fileName = QString());
 
110
     int setBreakpoint(const QScriptValue &amp;function);
 
111
 
 
112
     void removeBreakpoint(int id);
 
113
 
 
114
     int findBreakpoint(const QString &amp;fileName, int lineNumber) const;
 
115
     int findBreakpoint(const QString &amp;functionName, const QString &amp;fileName = QString()) const;
 
116
     int findBreakpoint(const QScriptValue &amp;function) const;
 
117
 
 
118
     bool isBreakpointEnabled(int id) const;
 
119
     void setBreakpointEnabled(int id, bool enabled);
 
120
 
 
121
     QString breakpointCondition(int id) const;
 
122
     void setBreakpointCondition(int id, const QString &amp;expression);
 
123
 
 
124
     int breakpointIgnoreCount(int id) const;
 
125
     void setBreakpointIgnoreCount(int id, int ignoreCount);
 
126
 
 
127
     bool isBreakpointSingleShot(int id) const;
 
128
     void setBreakpointSingleShot(int id, bool singleShot);
 
129
 
 
130
 private:
 
131
     QList&lt;ScriptBreakpointInfo&gt; breakpoints;
 
132
 
 
133
     Q_DISABLE_COPY(ScriptBreakpointManager)
 
134
 };
 
135
 
 
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 &copy; 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>
 
143
</html>