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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>kshowmail: KFeedbackQuestionList Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.0 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul></div>
<h1>KFeedbackQuestionList Class Reference</h1><!-- doxytag: class="KFeedbackQuestionList" --><code>#include <<a class="el" href="kfeedback_8h-source.html">kfeedback.h</a>></code>
<p>
<a href="classKFeedbackQuestionList-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Signals</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackQuestionList.html#7eb8b8f5254845e7a559b3da1fa34ba4">checkComplete</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackQuestionList.html#c666871537387a102c9f6372aa8875e8">KFeedbackQuestionList</a> (TQWidget *parent)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackQuestionList.html#b467b667cbd906403af3222ab7a3e602">~KFeedbackQuestionList</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackQuestionList.html#5834cfcbdf74ac1d8762c037dc492291">isComplete</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">TQString </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackQuestionList.html#f31a9d0c7b6f06cfca9f76ccba5743f0">result</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackQuestionList.html#7c043c6ca2c63fae277e7b43fcb8d145">addQuestion</a> (const TQString &text, const TQString &id, bool exclusiveAnswer=true, bool required=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackQuestionList.html#9408bbc813e69ef33693cffa0ddd7c91">addYesNoQuestion</a> (const TQString &text, const TQString &id, bool required=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackQuestionList.html#37589f00f7f3e9c544780be24e122f21">firstQuestion</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackQuestionList.html#9c8ed9fbb0f64a8748806f3850d2db14">questionAnswered</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackQuestionList.html#3a0c308081a834c24cdd576a694174dd">questionAdded</a> (<a class="el" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> *question)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
List of feedback questions presented in a TQListView widget.
<p>
<p>
Definition at line <a class="el" href="kfeedback_8h-source.html#l00187">187</a> of file <a class="el" href="kfeedback_8h-source.html">kfeedback.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="c666871537387a102c9f6372aa8875e8"></a><!-- doxytag: member="KFeedbackQuestionList::KFeedbackQuestionList" ref="c666871537387a102c9f6372aa8875e8" args="(TQWidget *parent)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KFeedbackQuestionList::KFeedbackQuestionList </td>
<td>(</td>
<td class="paramtype">TQWidget * </td>
<td class="paramname"> <em>parent</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Constructor.
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00239">239</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
</div>
</div><p>
<a class="anchor" name="b467b667cbd906403af3222ab7a3e602"></a><!-- doxytag: member="KFeedbackQuestionList::~KFeedbackQuestionList" ref="b467b667cbd906403af3222ab7a3e602" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KFeedbackQuestionList::~KFeedbackQuestionList </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Destructor.
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00247">247</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="5834cfcbdf74ac1d8762c037dc492291"></a><!-- doxytag: member="KFeedbackQuestionList::isComplete" ref="5834cfcbdf74ac1d8762c037dc492291" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool KFeedbackQuestionList::isComplete </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns whether or not this question list is answered satisfactorily, i.e. if all questions marked as "required" are answered.
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00254">254</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
<p>
References <a class="el" href="kfeedback_8h-source.html#l00247">firstQuestion()</a>, <a class="el" href="kfeedback_8cpp-source.html#l00368">KFeedbackQuestion::isAnswered()</a>, <a class="el" href="kfeedback_8h-source.html#l00319">KFeedbackQuestion::isRequired()</a>, and <a class="el" href="kfeedback_8h-source.html#l00362">KFeedbackQuestion::nextQuestion()</a>.
<p>
Referenced by <a class="el" href="kfeedback_8cpp-source.html#l00229">KFeedbackForm::readyToSend()</a>.
</div>
</div><p>
<a class="anchor" name="f31a9d0c7b6f06cfca9f76ccba5743f0"></a><!-- doxytag: member="KFeedbackQuestionList::result" ref="f31a9d0c7b6f06cfca9f76ccba5743f0" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TQString KFeedbackQuestionList::result </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
The result of all answered questions in ASCII.
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00270">270</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
<p>
References <a class="el" href="kfeedback_8h-source.html#l00247">firstQuestion()</a>, <a class="el" href="kfeedback_8h-source.html#l00362">KFeedbackQuestion::nextQuestion()</a>, and <a class="el" href="kfeedback_8cpp-source.html#l00402">KFeedbackQuestion::result()</a>.
<p>
Referenced by <a class="el" href="kfeedback_8cpp-source.html#l00153">KFeedbackForm::sendMail()</a>.
</div>
</div><p>
<a class="anchor" name="7c043c6ca2c63fae277e7b43fcb8d145"></a><!-- doxytag: member="KFeedbackQuestionList::addQuestion" ref="7c043c6ca2c63fae277e7b43fcb8d145" args="(const TQString &text, const TQString &id, bool exclusiveAnswer=true, bool required=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> * KFeedbackQuestionList::addQuestion </td>
<td>(</td>
<td class="paramtype">const TQString & </td>
<td class="paramname"> <em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const TQString & </td>
<td class="paramname"> <em>id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>exclusiveAnswer</em> = <code>true</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>required</em> = <code>false</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Add a yes/no question to the list.<p>
'text' is the text the user will see (in his native language).<p>
'id' is what will be sent with the feedback mail, thus it should be unique within the application, yet human readable (preferably English) and not contain any weird characters that might confuse scripts that are later used to automatically parse those mails. Examples: "would_recommend_to_a_friend"<p>
Set 'required' to 'true' if answering this question is required to successfully complete this form.<p>
Returns a pointer to this question so you can add answers.
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00288">288</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
<p>
Referenced by <a class="el" href="kshowmailfeedback_8cpp-source.html#l00023">KShowMailApp::slotSendFeedbackMail()</a>.
</div>
</div><p>
<a class="anchor" name="9408bbc813e69ef33693cffa0ddd7c91"></a><!-- doxytag: member="KFeedbackQuestionList::addYesNoQuestion" ref="9408bbc813e69ef33693cffa0ddd7c91" args="(const TQString &text, const TQString &id, bool required=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void KFeedbackQuestionList::addYesNoQuestion </td>
<td>(</td>
<td class="paramtype">const TQString & </td>
<td class="paramname"> <em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const TQString & </td>
<td class="paramname"> <em>id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>required</em> = <code>false</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Add a yes/no question to the list.
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00303">303</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
<p>
References <a class="el" href="kfeedback_8cpp-source.html#l00360">KFeedbackQuestion::addAnswer()</a>.
<p>
Referenced by <a class="el" href="kshowmailfeedback_8cpp-source.html#l00023">KShowMailApp::slotSendFeedbackMail()</a>.
</div>
</div><p>
<a class="anchor" name="37589f00f7f3e9c544780be24e122f21"></a><!-- doxytag: member="KFeedbackQuestionList::firstQuestion" ref="37589f00f7f3e9c544780be24e122f21" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classKFeedbackQuestion.html">KFeedbackQuestion</a>* KFeedbackQuestionList::firstQuestion </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the first question of that list. Use KFeedbackQuestion::next() to get the next one.
<p>
Definition at line <a class="el" href="kfeedback_8h-source.html#l00247">247</a> of file <a class="el" href="kfeedback_8h-source.html">kfeedback.h</a>.
<p>
Referenced by <a class="el" href="kfeedback_8cpp-source.html#l00254">isComplete()</a>, and <a class="el" href="kfeedback_8cpp-source.html#l00270">result()</a>.
</div>
</div><p>
<a class="anchor" name="9c8ed9fbb0f64a8748806f3850d2db14"></a><!-- doxytag: member="KFeedbackQuestionList::questionAnswered" ref="9c8ed9fbb0f64a8748806f3850d2db14" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void KFeedbackQuestionList::questionAnswered </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Notify the list that another question has been answered. Emits the <a class="el" href="classKFeedbackQuestionList.html#7eb8b8f5254845e7a559b3da1fa34ba4">checkComplete()</a> signal when all required questions are answered.
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00318">318</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
<p>
Referenced by <a class="el" href="kfeedback_8cpp-source.html#l00491">KFeedbackAnswer::stateChange()</a>.
</div>
</div><p>
<a class="anchor" name="3a0c308081a834c24cdd576a694174dd"></a><!-- doxytag: member="KFeedbackQuestionList::questionAdded" ref="3a0c308081a834c24cdd576a694174dd" args="(KFeedbackQuestion *question)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void KFeedbackQuestionList::questionAdded </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> * </td>
<td class="paramname"> <em>question</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Notify the list that another question has been added. Emits the <a class="el" href="classKFeedbackQuestionList.html#7eb8b8f5254845e7a559b3da1fa34ba4">checkComplete()</a> signal when a required question is added.
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00324">324</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
<p>
References <a class="el" href="kfeedback_8h-source.html#l00319">KFeedbackQuestion::isRequired()</a>.
<p>
Referenced by <a class="el" href="kfeedback_8cpp-source.html#l00336">KFeedbackQuestion::KFeedbackQuestion()</a>.
</div>
</div><p>
<a class="anchor" name="7eb8b8f5254845e7a559b3da1fa34ba4"></a><!-- doxytag: member="KFeedbackQuestionList::checkComplete" ref="7eb8b8f5254845e7a559b3da1fa34ba4" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void KFeedbackQuestionList::checkComplete </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [signal]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Emitted when all required questions are answered.
<p>
Referenced by <a class="el" href="kfeedback_8cpp-source.html#l00324">questionAdded()</a>, and <a class="el" href="kfeedback_8cpp-source.html#l00318">questionAnswered()</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li>kshowmail/<a class="el" href="kfeedback_8h-source.html">kfeedback.h</a><li>kshowmail/<a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Thu Jul 5 19:36:09 2007 for kshowmail by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>
</body>
</html>
|