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
|
<!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: kshowmail/kfeedback.h Source File</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><a href="classes.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
</ul></div>
<div class="nav">
<a class="el" href="dir_656923b733374505e0e2f68ecb68d952.html">kshowmail</a></div>
<h1>kfeedback.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * File name: kfeedback.h</span>
<a name="l00003"></a>00003 <span class="comment"> * Summary: User feedback form and mailing utilities</span>
<a name="l00004"></a>00004 <span class="comment"> * License: LGPL - See file COPYING.LIB for details.</span>
<a name="l00005"></a>00005 <span class="comment"> * Author: Stefan Hundhammer <sh@suse.de></span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Updated: 2002-02-24</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * $Id: kfeedback_8h-source.html,v 1.10 2007/07/05 17:37:51 kuddel-fl Exp $</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> */</span>
<a name="l00012"></a>00012
<a name="l00013"></a>00013
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef KFeedback_h</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define KFeedback_h</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span>
<a name="l00019"></a>00019 <span class="preprocessor">#endif</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="preprocessor">#include <tqlistview.h></span>
<a name="l00022"></a>00022 <span class="preprocessor">#include <tqvbox.h></span>
<a name="l00023"></a>00023 <span class="preprocessor">#include <kdialogbase.h></span>
<a name="l00024"></a>00024
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="preprocessor">#ifndef NOT_USED</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor"># define NOT_USED(PARAM) ( (void) (PARAM) )</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span>
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="keyword">class </span><a class="code" href="classKFeedbackForm.html">KFeedbackForm</a>;
<a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="classKFeedbackQuestionList.html">KFeedbackQuestionList</a>;
<a name="l00033"></a>00033 <span class="keyword">class </span><a class="code" href="classKFeedbackQuestion.html">KFeedbackQuestion</a>;
<a name="l00034"></a>00034 <span class="keyword">class </span><a class="code" href="classKFeedbackAnswer.html">KFeedbackAnswer</a>;
<a name="l00035"></a>00035 <span class="keyword">class </span>TQMultiLineEdit;
<a name="l00036"></a>00036
<a name="l00037"></a>00037
<a name="l00042"></a><a class="code" href="classKFeedbackDialog.html">00042</a> <span class="keyword">class </span><a class="code" href="classKFeedbackDialog.html">KFeedbackDialog</a>: <span class="keyword">public</span> KDialogBase
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044 TQ_OBJECT
<a name="l00045"></a>00045
<a name="l00046"></a>00046 <span class="keyword">public</span>:
<a name="l00047"></a>00047
<a name="l00051"></a>00051 <a class="code" href="classKFeedbackDialog.html#1ae22ffc4cfbabb1b954f2f75c57f8ba">KFeedbackDialog</a>( <span class="keyword">const</span> TQString & feedbackMailAddress,
<a name="l00052"></a>00052 <span class="keyword">const</span> TQString & helpTopic = TQString::null );
<a name="l00053"></a>00053
<a name="l00054"></a>00054
<a name="l00058"></a>00058 <span class="keyword">virtual</span> <a class="code" href="classKFeedbackDialog.html#3db3a02eb0b2a94d8e3bedbd1f5f6d70">~KFeedbackDialog</a>();
<a name="l00059"></a>00059
<a name="l00060"></a>00060
<a name="l00064"></a><a class="code" href="classKFeedbackDialog.html#1d9dfb5bac160ce16eb8e929f37c31b6">00064</a> <a class="code" href="classKFeedbackForm.html">KFeedbackForm</a> *<a class="code" href="classKFeedbackDialog.html#1d9dfb5bac160ce16eb8e929f37c31b6">form</a>() { <span class="keywordflow">return</span> <a class="code" href="classKFeedbackDialog.html#c95533de8e33e87407a06b910f5b6cfa">_form</a>; }
<a name="l00065"></a>00065
<a name="l00066"></a>00066
<a name="l00067"></a>00067 <span class="keyword">public</span> slots:
<a name="l00068"></a>00068
<a name="l00073"></a>00073 <span class="keywordtype">void</span> <a class="code" href="classKFeedbackDialog.html#34f680000dbe1b4446bd647d51c3738d">checkSendButton</a>();
<a name="l00074"></a>00074
<a name="l00075"></a>00075
<a name="l00076"></a>00076 signals:
<a name="l00083"></a>00083 <span class="keywordtype">void</span> <a class="code" href="classKFeedbackDialog.html#962b0e6f0813c923c924bb9b81c8ba1b">mailSent</a>();
<a name="l00084"></a>00084
<a name="l00085"></a>00085
<a name="l00086"></a>00086 <span class="keyword">protected</span>:
<a name="l00087"></a>00087
<a name="l00088"></a><a class="code" href="classKFeedbackDialog.html#c95533de8e33e87407a06b910f5b6cfa">00088</a> <a class="code" href="classKFeedbackForm.html">KFeedbackForm</a> * <a class="code" href="classKFeedbackDialog.html#c95533de8e33e87407a06b910f5b6cfa">_form</a>;
<a name="l00089"></a>00089 };
<a name="l00090"></a>00090
<a name="l00091"></a>00091
<a name="l00098"></a><a class="code" href="classKFeedbackForm.html">00098</a> <span class="keyword">class </span><a class="code" href="classKFeedbackForm.html">KFeedbackForm</a>: <span class="keyword">public</span> TQVBox
<a name="l00099"></a>00099 {
<a name="l00100"></a>00100 TQ_OBJECT
<a name="l00101"></a>00101
<a name="l00102"></a>00102 <span class="keyword">public</span>:
<a name="l00106"></a>00106 <a class="code" href="classKFeedbackForm.html#78d888d1554e9403a62d7c9b0c6e4a2e">KFeedbackForm</a>( <span class="keyword">const</span> TQString & feedbackMailAddress,
<a name="l00107"></a>00107 TQWidget * parent );
<a name="l00108"></a>00108
<a name="l00112"></a>00112 <span class="keyword">virtual</span> <a class="code" href="classKFeedbackForm.html#b22414a85a37ca217e028bde8a663ac4">~KFeedbackForm</a>();
<a name="l00113"></a>00113
<a name="l00114"></a>00114
<a name="l00115"></a>00115 <span class="keyword">public</span> slots:
<a name="l00116"></a>00116
<a name="l00128"></a>00128 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKFeedbackForm.html#72b8b30801614c35e271c5e519f10c8b">sendMail</a>();
<a name="l00129"></a>00129
<a name="l00130"></a>00130
<a name="l00131"></a>00131 <span class="keyword">public</span>:
<a name="l00132"></a>00132
<a name="l00137"></a>00137 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classKFeedbackForm.html#6840e07fe3245d4e9c11ee0160af6068">readyToSend</a>();
<a name="l00138"></a>00138
<a name="l00142"></a><a class="code" href="classKFeedbackForm.html#51b1d4e1e48d18c6155203b9f72ada5e">00142</a> <a class="code" href="classKFeedbackQuestionList.html">KFeedbackQuestionList</a> * <a class="code" href="classKFeedbackForm.html#51b1d4e1e48d18c6155203b9f72ada5e">questionList</a>() { <span class="keywordflow">return</span> <a class="code" href="classKFeedbackForm.html#e8c28be58b2684f090c396ad52f64ad3">_questionList</a>; }
<a name="l00143"></a>00143
<a name="l00144"></a>00144
<a name="l00145"></a>00145 signals:
<a name="l00152"></a>00152 <span class="keywordtype">void</span> <a class="code" href="classKFeedbackForm.html#ec2b411546d45e31c9b412f1fa6d8897">mailSent</a>();
<a name="l00153"></a>00153
<a name="l00159"></a>00159 <span class="keywordtype">void</span> <a class="code" href="classKFeedbackForm.html#c328809367354cf8ff97e7c78b521345">checkComplete</a>();
<a name="l00160"></a>00160
<a name="l00161"></a>00161
<a name="l00162"></a>00162 <span class="keyword">protected</span> slots:
<a name="l00166"></a>00166 <span class="keywordtype">void</span> <a class="code" href="classKFeedbackForm.html#5ec1c36c978229b6e14e9005b595d69e">slotCheckComplete</a>();
<a name="l00167"></a>00167
<a name="l00168"></a>00168
<a name="l00169"></a>00169 <span class="keyword">protected</span>:
<a name="l00170"></a>00170
<a name="l00174"></a>00174 TQString <a class="code" href="classKFeedbackForm.html#08ace5fb7dd689ced012aa722b690b71">formatComment</a>();
<a name="l00175"></a>00175
<a name="l00176"></a>00176
<a name="l00177"></a><a class="code" href="classKFeedbackForm.html#4e667e814dc1de15bf601217c08f077f">00177</a> TQString <a class="code" href="classKFeedbackForm.html#4e667e814dc1de15bf601217c08f077f">_feedbackMailAddress</a>;
<a name="l00178"></a><a class="code" href="classKFeedbackForm.html#e8c28be58b2684f090c396ad52f64ad3">00178</a> <a class="code" href="classKFeedbackQuestionList.html">KFeedbackQuestionList</a> * <a class="code" href="classKFeedbackForm.html#e8c28be58b2684f090c396ad52f64ad3">_questionList</a>;
<a name="l00179"></a><a class="code" href="classKFeedbackForm.html#862ae3fd81afe2f61f19d41d927c537b">00179</a> TQMultiLineEdit * <a class="code" href="classKFeedbackForm.html#862ae3fd81afe2f61f19d41d927c537b">_comment</a>;
<a name="l00180"></a>00180 };
<a name="l00181"></a>00181
<a name="l00182"></a>00182
<a name="l00183"></a>00183
<a name="l00187"></a><a class="code" href="classKFeedbackQuestionList.html">00187</a> <span class="keyword">class </span><a class="code" href="classKFeedbackQuestionList.html">KFeedbackQuestionList</a>: <span class="keyword">public</span> TQListView
<a name="l00188"></a>00188 {
<a name="l00189"></a>00189 TQ_OBJECT
<a name="l00190"></a>00190
<a name="l00191"></a>00191 <span class="keyword">public</span>:
<a name="l00192"></a>00192
<a name="l00196"></a>00196 <a class="code" href="classKFeedbackQuestionList.html#c666871537387a102c9f6372aa8875e8">KFeedbackQuestionList</a>( TQWidget *parent );
<a name="l00197"></a>00197
<a name="l00201"></a>00201 <span class="keyword">virtual</span> <a class="code" href="classKFeedbackQuestionList.html#b467b667cbd906403af3222ab7a3e602">~KFeedbackQuestionList</a>();
<a name="l00202"></a>00202
<a name="l00207"></a>00207 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classKFeedbackQuestionList.html#5834cfcbdf74ac1d8762c037dc492291">isComplete</a>();
<a name="l00208"></a>00208
<a name="l00212"></a>00212 TQString <a class="code" href="classKFeedbackQuestionList.html#f31a9d0c7b6f06cfca9f76ccba5743f0">result</a>();
<a name="l00213"></a>00213
<a name="l00231"></a>00231 <a class="code" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> * <a class="code" href="classKFeedbackQuestionList.html#7c043c6ca2c63fae277e7b43fcb8d145">addQuestion</a>( <span class="keyword">const</span> TQString & text,
<a name="l00232"></a>00232 <span class="keyword">const</span> TQString & <span class="keywordtype">id</span>,
<a name="l00233"></a>00233 <span class="keywordtype">bool</span> exclusiveAnswer = <span class="keyword">true</span>,
<a name="l00234"></a>00234 <span class="keywordtype">bool</span> required = <span class="keyword">false</span> );
<a name="l00235"></a>00235
<a name="l00239"></a>00239 <span class="keywordtype">void</span> <a class="code" href="classKFeedbackQuestionList.html#9408bbc813e69ef33693cffa0ddd7c91">addYesNoQuestion</a>( <span class="keyword">const</span> TQString & text,
<a name="l00240"></a>00240 <span class="keyword">const</span> TQString & <span class="keywordtype">id</span>,
<a name="l00241"></a>00241 <span class="keywordtype">bool</span> required = <span class="keyword">false</span> );
<a name="l00242"></a>00242
<a name="l00247"></a><a class="code" href="classKFeedbackQuestionList.html#37589f00f7f3e9c544780be24e122f21">00247</a> <a class="code" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> * <a class="code" href="classKFeedbackQuestionList.html#37589f00f7f3e9c544780be24e122f21">firstQuestion</a>()<span class="keyword"> const</span>
<a name="l00248"></a>00248 <span class="keyword"> </span>{ <span class="keywordflow">return</span> (<a class="code" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> *) TQListView::firstChild(); }
<a name="l00249"></a>00249
<a name="l00255"></a>00255 <span class="keywordtype">void</span> <a class="code" href="classKFeedbackQuestionList.html#9c8ed9fbb0f64a8748806f3850d2db14">questionAnswered</a>();
<a name="l00256"></a>00256
<a name="l00262"></a>00262 <span class="keywordtype">void</span> <a class="code" href="classKFeedbackQuestionList.html#3a0c308081a834c24cdd576a694174dd">questionAdded</a>( <a class="code" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> * question );
<a name="l00263"></a>00263
<a name="l00264"></a>00264 signals:
<a name="l00268"></a>00268 <span class="keywordtype">void</span> <a class="code" href="classKFeedbackQuestionList.html#7eb8b8f5254845e7a559b3da1fa34ba4">checkComplete</a>();
<a name="l00269"></a>00269 };
<a name="l00270"></a>00270
<a name="l00271"></a>00271
<a name="l00275"></a><a class="code" href="classKFeedbackQuestion.html">00275</a> <span class="keyword">class </span><a class="code" href="classKFeedbackQuestion.html">KFeedbackQuestion</a>: <span class="keyword">public</span> TQCheckListItem
<a name="l00276"></a>00276 {
<a name="l00277"></a>00277 <span class="keyword">public</span>:
<a name="l00278"></a>00278
<a name="l00300"></a>00300 <a class="code" href="classKFeedbackQuestion.html#74f81a22aec4f3969ac05fcef5d8dee4">KFeedbackQuestion</a>( <a class="code" href="classKFeedbackQuestionList.html">KFeedbackQuestionList</a> * parent,
<a name="l00301"></a>00301 <span class="keyword">const</span> TQString & <a class="code" href="classKFeedbackQuestion.html#13730ea63a6d8de44866c9134cb88f3c">text</a>,
<a name="l00302"></a>00302 <span class="keyword">const</span> TQString & <span class="keywordtype">id</span>,
<a name="l00303"></a>00303 <span class="keywordtype">bool</span> <a class="code" href="classKFeedbackQuestion.html#40333b62b3defe8ebbe27fc8552bffff">exclusiveAnswer</a> = <span class="keyword">true</span>,
<a name="l00304"></a>00304 <span class="keywordtype">bool</span> required = <span class="keyword">false</span>,
<a name="l00305"></a>00305 <span class="keywordtype">bool</span> open = <span class="keyword">true</span> );
<a name="l00306"></a>00306
<a name="l00313"></a>00313 <span class="keywordtype">void</span> <a class="code" href="classKFeedbackQuestion.html#70dfbcfb7699accc62ca3f9c1b2da8b6">addAnswer</a>( <span class="keyword">const</span> TQString & text,
<a name="l00314"></a>00314 <span class="keyword">const</span> TQString & <span class="keywordtype">id</span> );
<a name="l00315"></a>00315
<a name="l00319"></a><a class="code" href="classKFeedbackQuestion.html#5431a877415afca993aaefea86c0c7ec">00319</a> <span class="keywordtype">bool</span> <a class="code" href="classKFeedbackQuestion.html#5431a877415afca993aaefea86c0c7ec">isRequired</a>() { <span class="keywordflow">return</span> <a class="code" href="classKFeedbackQuestion.html#2c946b672e2c0d163ffc3d4b64c61801">_required</a>; }
<a name="l00320"></a>00320
<a name="l00324"></a>00324 <span class="keywordtype">bool</span> <a class="code" href="classKFeedbackQuestion.html#593b269b00a8da9152a66f31fcdf75f3">isAnswered</a>();
<a name="l00325"></a>00325
<a name="l00334"></a>00334 TQString <a class="code" href="classKFeedbackQuestion.html#51e0a1d351c8f7819f50a6ebf66c193d">result</a>();
<a name="l00335"></a>00335
<a name="l00339"></a><a class="code" href="classKFeedbackQuestion.html#83626cfa4d3235b58028d011a7955add">00339</a> TQString <a class="code" href="classKFeedbackQuestion.html#83626cfa4d3235b58028d011a7955add">id</a>() { <span class="keywordflow">return</span> <a class="code" href="classKFeedbackQuestion.html#f0209761e6a1c061b4749f4a0228afc3">_id</a>; }
<a name="l00340"></a>00340
<a name="l00344"></a>00344 TQString <a class="code" href="classKFeedbackQuestion.html#13730ea63a6d8de44866c9134cb88f3c">text</a>();
<a name="l00345"></a>00345
<a name="l00349"></a><a class="code" href="classKFeedbackQuestion.html#40333b62b3defe8ebbe27fc8552bffff">00349</a> <span class="keywordtype">bool</span> <a class="code" href="classKFeedbackQuestion.html#40333b62b3defe8ebbe27fc8552bffff">exclusiveAnswer</a>() { <span class="keywordflow">return</span> <a class="code" href="classKFeedbackQuestion.html#8d6d302dac4b8dc4973ff7cf8aa5f852">_exclusiveAnswer</a>; }
<a name="l00350"></a>00350
<a name="l00351"></a>00351
<a name="l00357"></a>00357 <span class="keyword">virtual</span> TQString <a class="code" href="classKFeedbackQuestion.html#72b655cc6c5414023d05669142053a7c">key</a>( <span class="keywordtype">int</span> column, <span class="keywordtype">bool</span> ascending ) <span class="keyword">const</span>;
<a name="l00358"></a>00358
<a name="l00362"></a><a class="code" href="classKFeedbackQuestion.html#f3731cde03060c91a80ebb5c80f657a1">00362</a> <a class="code" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> * <a class="code" href="classKFeedbackQuestion.html#f3731cde03060c91a80ebb5c80f657a1">nextQuestion</a>()<span class="keyword"> const</span>
<a name="l00363"></a>00363 <span class="keyword"> </span>{ <span class="keywordflow">return</span> (<a class="code" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> *) TQListViewItem::nextSibling(); }
<a name="l00364"></a>00364
<a name="l00369"></a><a class="code" href="classKFeedbackQuestion.html#a8759ac15cc2bec6f1a9e183eb374574">00369</a> <a class="code" href="classKFeedbackAnswer.html">KFeedbackAnswer</a> * <a class="code" href="classKFeedbackQuestion.html#a8759ac15cc2bec6f1a9e183eb374574">firstAnswer</a>()<span class="keyword"> const</span>
<a name="l00370"></a>00370 <span class="keyword"> </span>{ <span class="keywordflow">return</span> (<a class="code" href="classKFeedbackAnswer.html">KFeedbackAnswer</a> *) TQListViewItem::firstChild(); }
<a name="l00371"></a>00371
<a name="l00376"></a>00376 <a class="code" href="classKFeedbackQuestionList.html">KFeedbackQuestionList</a> * <a class="code" href="classKFeedbackQuestion.html#f879e5220a516c94124130a2d0a1a2dd">questionList</a>() <span class="keyword">const</span>;
<a name="l00377"></a>00377
<a name="l00378"></a>00378
<a name="l00379"></a>00379 <span class="keyword">protected</span>:
<a name="l00380"></a>00380
<a name="l00381"></a><a class="code" href="classKFeedbackQuestion.html#f0209761e6a1c061b4749f4a0228afc3">00381</a> TQString <a class="code" href="classKFeedbackQuestion.html#f0209761e6a1c061b4749f4a0228afc3">_id</a>;
<a name="l00382"></a><a class="code" href="classKFeedbackQuestion.html#8d6d302dac4b8dc4973ff7cf8aa5f852">00382</a> <span class="keywordtype">bool</span> <a class="code" href="classKFeedbackQuestion.html#8d6d302dac4b8dc4973ff7cf8aa5f852">_exclusiveAnswer</a>;
<a name="l00383"></a><a class="code" href="classKFeedbackQuestion.html#2c946b672e2c0d163ffc3d4b64c61801">00383</a> <span class="keywordtype">bool</span> <a class="code" href="classKFeedbackQuestion.html#2c946b672e2c0d163ffc3d4b64c61801">_required</a>;
<a name="l00384"></a><a class="code" href="classKFeedbackQuestion.html#4b1825caeff106b7a911ac725acdd8d1">00384</a> <span class="keywordtype">int</span> <a class="code" href="classKFeedbackQuestion.html#4b1825caeff106b7a911ac725acdd8d1">_no</a>;
<a name="l00385"></a>00385 };
<a name="l00386"></a>00386
<a name="l00387"></a>00387
<a name="l00388"></a><a class="code" href="classKFeedbackAnswer.html">00388</a> <span class="keyword">class </span><a class="code" href="classKFeedbackAnswer.html">KFeedbackAnswer</a>: <span class="keyword">public</span> TQCheckListItem
<a name="l00389"></a>00389 {
<a name="l00390"></a>00390 <span class="keyword">public</span>:
<a name="l00397"></a>00397 <a class="code" href="classKFeedbackAnswer.html#7100bf31bf9d49009b8c5a82c1ae5bde">KFeedbackAnswer</a>( <a class="code" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> * parent,
<a name="l00398"></a>00398 <span class="keyword">const</span> TQString & <a class="code" href="classKFeedbackAnswer.html#a177a24369a5dab88d5602f6651275ea">text</a>,
<a name="l00399"></a>00399 <span class="keyword">const</span> TQString & <span class="keywordtype">id</span>,
<a name="l00400"></a>00400 <span class="keywordtype">bool</span> exclusive = <span class="keyword">true</span> );
<a name="l00401"></a>00401
<a name="l00405"></a><a class="code" href="classKFeedbackAnswer.html#0c38ffb3d84f3ca2204bcd66f605514c">00405</a> TQString <a class="code" href="classKFeedbackAnswer.html#0c38ffb3d84f3ca2204bcd66f605514c">id</a>() { <span class="keywordflow">return</span> <a class="code" href="classKFeedbackAnswer.html#f6c09e6daf51423ec373fc9608486adb">_id</a>; }
<a name="l00406"></a>00406
<a name="l00410"></a>00410 TQString <a class="code" href="classKFeedbackAnswer.html#a177a24369a5dab88d5602f6651275ea">text</a>();
<a name="l00411"></a>00411
<a name="l00415"></a><a class="code" href="classKFeedbackAnswer.html#5de55655375db66b438b221d63cd0082">00415</a> <span class="keywordtype">bool</span> <a class="code" href="classKFeedbackAnswer.html#5de55655375db66b438b221d63cd0082">isExclusive</a>() { <span class="keywordflow">return</span> <a class="code" href="classKFeedbackAnswer.html#b2a618699a774f019ce272d6fbd0aeb8">_exclusive</a>; }
<a name="l00416"></a>00416
<a name="l00420"></a><a class="code" href="classKFeedbackAnswer.html#864fad7f3c6f5f92f262488735799cb7">00420</a> <span class="keywordtype">bool</span> <a class="code" href="classKFeedbackAnswer.html#864fad7f3c6f5f92f262488735799cb7">isChecked</a>() { <span class="keywordflow">return</span> TQCheckListItem::isOn(); }
<a name="l00421"></a>00421
<a name="l00425"></a><a class="code" href="classKFeedbackAnswer.html#31fe8732bdbda805d1306e5c86fcae91">00425</a> <a class="code" href="classKFeedbackAnswer.html">KFeedbackAnswer</a> * <a class="code" href="classKFeedbackAnswer.html#31fe8732bdbda805d1306e5c86fcae91">nextAnswer</a>()<span class="keyword"> const</span>
<a name="l00426"></a>00426 <span class="keyword"> </span>{ <span class="keywordflow">return</span> (<a class="code" href="classKFeedbackAnswer.html">KFeedbackAnswer</a> *) TQListViewItem::nextSibling(); }
<a name="l00427"></a>00427
<a name="l00431"></a><a class="code" href="classKFeedbackAnswer.html#c147b9f7c35c83c8a5458a79f6cafed9">00431</a> <a class="code" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> * <a class="code" href="classKFeedbackAnswer.html#c147b9f7c35c83c8a5458a79f6cafed9">question</a>()<span class="keyword"> const</span>
<a name="l00432"></a>00432 <span class="keyword"> </span>{ <span class="keywordflow">return</span> (<a class="code" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> *) TQListViewItem::parent(); }
<a name="l00433"></a>00433
<a name="l00439"></a>00439 <span class="keyword">virtual</span> TQString <a class="code" href="classKFeedbackAnswer.html#a643ff4986437b3089dcda86512c4f79">key</a>( <span class="keywordtype">int</span> column, <span class="keywordtype">bool</span> ascending ) <span class="keyword">const</span>;
<a name="l00440"></a>00440
<a name="l00441"></a>00441
<a name="l00449"></a>00449 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKFeedbackAnswer.html#3812bf11ec42b06397e87a753797bbd8">stateChange</a>( <span class="keywordtype">bool</span> newState );
<a name="l00450"></a>00450
<a name="l00451"></a>00451 <span class="keyword">protected</span>:
<a name="l00452"></a>00452
<a name="l00453"></a><a class="code" href="classKFeedbackAnswer.html#f6c09e6daf51423ec373fc9608486adb">00453</a> TQString <a class="code" href="classKFeedbackAnswer.html#f6c09e6daf51423ec373fc9608486adb">_id</a>;
<a name="l00454"></a><a class="code" href="classKFeedbackAnswer.html#b2a618699a774f019ce272d6fbd0aeb8">00454</a> <span class="keywordtype">bool</span> <a class="code" href="classKFeedbackAnswer.html#b2a618699a774f019ce272d6fbd0aeb8">_exclusive</a>;
<a name="l00455"></a><a class="code" href="classKFeedbackAnswer.html#1ddde383928714423714a70a829a0c57">00455</a> <span class="keywordtype">int</span> <a class="code" href="classKFeedbackAnswer.html#1ddde383928714423714a70a829a0c57">_no</a>;
<a name="l00456"></a>00456 };
<a name="l00457"></a>00457
<a name="l00458"></a>00458
<a name="l00459"></a>00459
<a name="l00460"></a>00460 <span class="preprocessor">#endif // KFeedback_h</span>
<a name="l00461"></a>00461 <span class="preprocessor"></span>
<a name="l00462"></a>00462
<a name="l00463"></a>00463 <span class="comment">// EOF</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Jul 5 19:36:06 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>
|