[go: up one dir, main page]

File: toResult.html

package info (click to toggle)
tora 1.3.4-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,632 kB
  • ctags: 7,487
  • sloc: cpp: 68,518; perl: 1,475; ansic: 291; sh: 173; makefile: 51
file content (219 lines) | stat: -rw-r--r-- 16,927 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<HTML>
<HEAD>
<TITLE>class toResult</TITLE>

<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
	<TABLE BORDER="0">
		<TR><TD valign="top" align="left" cellspacing="10">
		<h1>class toResult</h1>
		</TD>
		<TD valign="top" align="right" colspan="1"> Abstract baseclass of widgets that can perform queries. <small><A HREF="#longdesc">More...</A></small></TD></TR>
	</TABLE>
	<HR>
	<TABLE BORDER="0">
		<TR><TH colspan="2">Contains pure virtuals</TH></TR><TR><TH>Definition</TH><TD><code>#include &lt;<A HREF="toresult_h.html">toresult.h</A>&gt;</code></TD></TR>
<TR><TH>Inherited by</TH><TD><A HREF="toResultBar.html">toResultBar</A>, <A HREF="toResultCols.html">toResultCols</A>, <A HREF="toResultConstraint.html">toResultConstraint</A>, <A HREF="toResultContent.html">toResultContent</A>, <A HREF="toResultDepend.html">toResultDepend</A>, <A HREF="toResultField.html">toResultField</A>, <A HREF="toResultIndexes.html">toResultIndexes</A>, <A HREF="toResultItem.html">toResultItem</A>, <A HREF="toResultLabel.html">toResultLabel</A>, <A HREF="toResultLine.html">toResultLine</A>, <A HREF="toResultLong.html">toResultLong</A>, <A HREF="toResultPie.html">toResultPie</A>, <A HREF="toResultPlan.html">toResultPlan</A>, <A HREF="toResultReferences.html">toResultReferences</A>, <A HREF="toResultResources.html">toResultResources</A>, <A HREF="toResultStats.html">toResultStats</A>, <A HREF="toResultView.html">toResultView</A></TD></TR>
<TR><TH><A HREF="full-list-toResult.html">List of all Methods</A></TH></TR>
	</TABLE>
	</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Methods</h4><ul><LI><A HREF="toConnection.html">toConnection</A> &&nbsp;<b><A HREF="#ref11">connection</A></b> (void) 
</LI>
<LI><A HREF="toTimer.html">toTimer</A> *&nbsp;<b><A HREF="#ref12">timer</A></b> (void) 
</LI>
<LI>&nbsp;<b><A HREF="#ref13">toResult</A></b> (void) 
</LI>
<LI>virtual  &nbsp;<b><A HREF="#ref14">~toResult</A></b> () 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref15">clearParams</A></b> (void) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref16">refresh</A></b> (void) 
</LI>
<LI>virtual  void &nbsp;<b><i><A HREF="#ref17">query</A></i></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,const <A HREF="#toQList">toQList</A> &params) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref18">changeParams</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &Param1) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref19">changeParams</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &Param1,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &Param2) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref20">changeParams</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &Param1,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &Param2,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &Param3) 
</LI>
<LI>virtual  bool &nbsp;<b><A HREF="#ref21">canHandle</A></b> (<A HREF="toConnection.html">toConnection</A> &) 
</LI>
<LI><A HREF="#toQList">toQList</A> &&nbsp;<b><A HREF="#ref22">params</A></b> (void) 
</LI>
<LI>bool &nbsp;<b><A HREF="#ref23">handled</A></b> (void) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref24">setHandle</A></b> (bool) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref25">setTabWidget</A></b> (<A HREF="http://doc.trolltech.com/qtabwidget.html">QTabWidget</A> *tab) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref26">setSQL</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref27">setSQL</A></b> (const <A HREF="toSQL.html">toSQL</A> &sql) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref28">query</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref29">query</A></b> (const <A HREF="toSQL.html">toSQL</A> &sql) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref30">query</A></b> (const <A HREF="toSQL.html">toSQL</A> &sql,<A HREF="#toQList">toQList</A> &par) 
</LI>
<LI><A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<b><A HREF="#ref31">sql</A></b> (void) 
</LI>
<LI>virtual  <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<b><A HREF="#ref32">sqlName</A></b> (void) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref33">setSQLName</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name) 
</LI>
</ul><h4>Public Members</h4><ul><LI>friend class <b><A HREF="#ref34">toResultObject</A></b></LI>
</ul><h4>Protected Methods</h4><ul><LI>void &nbsp;<b><A HREF="#ref9">setParams</A></b> (const <A HREF="#toQList">toQList</A> &par) 
</LI>
<LI>bool &nbsp;<b><A HREF="#ref10">setSQLParams</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,const <A HREF="#toQList">toQList</A> &par) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref35">connectionChanged</A></b> (void) 
</LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> Abstract baseclass of widgets that can perform queries. Usefull because you can execute
 the query without knowing how it's UI is presented.
 </p>
<A NAME="setParams"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setParams</strong> (const <A HREF="#toQList">toQList</A> &par)
<br></td><td align="right"><h3><strong>setParams</strong></h3></td></tr></table><p> <small>[protected]</small></p><p> Set parameters of last query.
   </p>
<A NAME="setSQLParams"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>setSQLParams</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,const <A HREF="#toQList">toQList</A> &par)
<br></td><td align="right"><h3><strong>setSQLParams</strong></h3></td></tr></table><p> <small>[protected]</small></p><p> Set SQL and parameters and return false if query shouldn't be reexecuted.
   </p>
<A NAME="connection"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="toConnection.html">toConnection</A> &&nbsp;<strong>connection</strong> (void)
<br></td><td align="right"><h3><strong>connection</strong></h3></td></tr></table><p></p><p> Get the current connection from the closest tool.
</p>
<p><b>Returns</b>: Reference to connection.
   </p>
<A NAME="timer"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="toTimer.html">toTimer</A> *&nbsp;<strong>timer</strong> (void)
<br></td><td align="right"><h3><strong>timer</strong></h3></td></tr></table><p></p><p> Get the timer associated with the closest tool.
</p>
<p><b>Returns</b>: Pointer to tool timer.
   </p>
<A NAME="toResult"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>toResult</strong> (void)
<br></td><td align="right"><h3><strong>toResult</strong></h3></td></tr></table><p></p><A NAME="~toResult"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td> &nbsp;<strong>~toResult</strong> ()
<br></td><td align="right"><h3><strong>~toResult</strong></h3></td></tr></table><p> <small>[virtual]</small></p><A NAME="clearParams"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>clearParams</strong> (void)
<br></td><td align="right"><h3><strong>clearParams</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Erase last parameters
   </p>
<A NAME="refresh"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>refresh</strong> (void)
<br></td><td align="right"><h3><strong>refresh</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Re execute last query
   </p>
<A NAME="query"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<i><strong>query</strong></i> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,const <A HREF="#toQList">toQList</A> &params)
<br></td><td align="right"><h3><i><strong>query</strong></i></h3></td></tr></table><p> <small>[pure virtual]</small></p><p> Perform a query.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">Execute an SQL statement.
</TD></TR>
<TR><TD align="left" valign="top"><i>params</i></TD><TD align="left" valign="top">Parameters needed as input to execute statement.
   </TD></TR>
</TABLE></P>
<A NAME="changeParams"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>changeParams</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &Param1)
<br></td><td align="right"><h3><strong>changeParams</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Reexecute with changed parameters.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>Param1</i></TD><TD align="left" valign="top">First parameter.
   </TD></TR>
</TABLE></P>
<A NAME="changeParams"></A><A NAME="ref19"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>changeParams</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &Param1,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &Param2)
<br></td><td align="right"><h3><strong>changeParams</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Reexecute with changed parameters.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>Param1</i></TD><TD align="left" valign="top">First parameter.
</TD></TR>
<TR><TD align="left" valign="top"><i>Param1</i></TD><TD align="left" valign="top">Second parameter.
   </TD></TR>
</TABLE></P>
<A NAME="changeParams"></A><A NAME="ref20"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>changeParams</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &Param1,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &Param2,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &Param3)
<br></td><td align="right"><h3><strong>changeParams</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Reexecute with changed parameters.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>Param1</i></TD><TD align="left" valign="top">First parameter.
</TD></TR>
<TR><TD align="left" valign="top"><i>Param2</i></TD><TD align="left" valign="top">Second parameter.
</TD></TR>
<TR><TD align="left" valign="top"><i>Param3</i></TD><TD align="left" valign="top">Third parameter.
   </TD></TR>
</TABLE></P>
<A NAME="canHandle"></A><A NAME="ref21"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool &nbsp;<strong>canHandle</strong> (<A HREF="toConnection.html">toConnection</A> &)
<br></td><td align="right"><h3><strong>canHandle</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Reimplemented for internal reasons.
   </p>
<A NAME="params"></A><A NAME="ref22"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="#toQList">toQList</A> &&nbsp;<strong>params</strong> (void)
<br></td><td align="right"><h3><strong>params</strong></h3></td></tr></table><p></p><p> Get last parameters used.
</p>
<p><b>Returns</b>: Don't modify the list returned.
   </p>
<A NAME="handled"></A><A NAME="ref23"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>handled</strong> (void)
<br></td><td align="right"><h3><strong>handled</strong></h3></td></tr></table><p></p><p> Check if this result is handled by the current connection
   </p>
<A NAME="setHandle"></A><A NAME="ref24"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setHandle</strong> (bool)
<br></td><td align="right"><h3><strong>setHandle</strong></h3></td></tr></table><p></p><p> Indicate that this result can not be handled even though indicated otherwise
   </p>
<A NAME="setTabWidget"></A><A NAME="ref25"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setTabWidget</strong> (<A HREF="http://doc.trolltech.com/qtabwidget.html">QTabWidget</A> *tab)
<br></td><td align="right"><h3><strong>setTabWidget</strong></h3></td></tr></table><p></p><p> Indicate what tabbed widget to disable page if not immediate parent if this
 result is not handled.
   </p>
<A NAME="setSQL"></A><A NAME="ref26"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setSQL</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql)
<br></td><td align="right"><h3><strong>setSQL</strong></h3></td></tr></table><p></p><p> Set the SQL statement of this list
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">String containing statement.
   </TD></TR>
</TABLE></P>
<A NAME="setSQL"></A><A NAME="ref27"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setSQL</strong> (const <A HREF="toSQL.html">toSQL</A> &sql)
<br></td><td align="right"><h3><strong>setSQL</strong></h3></td></tr></table><p></p><p> Set the SQL statement of this list. This will also affect <A HREF="toResult.html#Name">Name</A>.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">SQL containing statement.
   </TD></TR>
</TABLE></P>
<A NAME="query"></A><A NAME="ref28"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>query</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql)
<br></td><td align="right"><h3><strong>query</strong></h3></td></tr></table><p></p><p> Set new SQL and run query.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">New sql.
</TD></TR>
</TABLE></P>
<p><b>See also</b>: setSQL</p>
<A NAME="query"></A><A NAME="ref29"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>query</strong> (const <A HREF="toSQL.html">toSQL</A> &sql)
<br></td><td align="right"><h3><strong>query</strong></h3></td></tr></table><p></p><p> Set new SQL and run query.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">New sql.
</TD></TR>
</TABLE></P>
<p><b>See also</b>: setSQL</p>
<A NAME="query"></A><A NAME="ref30"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>query</strong> (const <A HREF="toSQL.html">toSQL</A> &sql,<A HREF="#toQList">toQList</A> &par)
<br></td><td align="right"><h3><strong>query</strong></h3></td></tr></table><p></p><p> Set new SQL and run query.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">New sql.
</TD></TR>
</TABLE></P>
<p><b>See also</b>: setSQL</p>
<A NAME="sql"></A><A NAME="ref31"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<strong>sql</strong> (void)
<br></td><td align="right"><h3><strong>sql</strong></h3></td></tr></table><p></p><p> Get SQL to execute
   </p>
<A NAME="sqlName"></A><A NAME="ref32"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<strong>sqlName</strong> (void)
<br></td><td align="right"><h3><strong>sqlName</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Get SQL name of list.
   </p>
<A NAME="setSQLName"></A><A NAME="ref33"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>setSQLName</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name)
<br></td><td align="right"><h3><strong>setSQLName</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Set SQL name of list.
   </p>
<A NAME="toResultObject"></A><A NAME="ref34"></A><table width="100%"><tr bgcolor="#eeeeee"><td>friend class  <strong>toResultObject</strong>
</td><td align="right"><h3><strong>toResultObject</strong></h3></td></tr></table><p></p><A NAME="connectionChanged"></A><A NAME="ref35"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>connectionChanged</strong> (void)
<br></td><td align="right"><h3><strong>connectionChanged</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p> Called when connection is changed. Be sure to call the parent if you reimplement this.
   </p>
<HR>
	<table>
	</table>
</BODY>
</HTML>