summaryrefslogtreecommitdiffstats
path: root/doc/html/classKFeedbackForm.html
blob: 7c8e86259eabbd6b4054bb7b1add6e0f0fb4374d (plain)
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
<!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: KFeedbackForm 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&nbsp;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&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<h1>KFeedbackForm Class Reference</h1><!-- doxytag: class="KFeedbackForm" --><code>#include &lt;<a class="el" href="kfeedback_8h-source.html">kfeedback.h</a>&gt;</code>
<p>
<a href="classKFeedbackForm-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Slots</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackForm.html#72b8b30801614c35e271c5e519f10c8b">sendMail</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Signals</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackForm.html#ec2b411546d45e31c9b412f1fa6d8897">mailSent</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackForm.html#c328809367354cf8ff97e7c78b521345">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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackForm.html#78d888d1554e9403a62d7c9b0c6e4a2e">KFeedbackForm</a> (const TQString &amp;feedbackMailAddress, TQWidget *parent)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackForm.html#b22414a85a37ca217e028bde8a663ac4">~KFeedbackForm</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackForm.html#6840e07fe3245d4e9c11ee0160af6068">readyToSend</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classKFeedbackQuestionList.html">KFeedbackQuestionList</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackForm.html#51b1d4e1e48d18c6155203b9f72ada5e">questionList</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Protected Slots</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackForm.html#5ec1c36c978229b6e14e9005b595d69e">slotCheckComplete</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">TQString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackForm.html#08ace5fb7dd689ced012aa722b690b71">formatComment</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4e667e814dc1de15bf601217c08f077f"></a><!-- doxytag: member="KFeedbackForm::_feedbackMailAddress" ref="4e667e814dc1de15bf601217c08f077f" args="" -->
TQString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackForm.html#4e667e814dc1de15bf601217c08f077f">_feedbackMailAddress</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e8c28be58b2684f090c396ad52f64ad3"></a><!-- doxytag: member="KFeedbackForm::_questionList" ref="e8c28be58b2684f090c396ad52f64ad3" args="" -->
<a class="el" href="classKFeedbackQuestionList.html">KFeedbackQuestionList</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackForm.html#e8c28be58b2684f090c396ad52f64ad3">_questionList</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="862ae3fd81afe2f61f19d41d927c537b"></a><!-- doxytag: member="KFeedbackForm::_comment" ref="862ae3fd81afe2f61f19d41d927c537b" args="" -->
TQMultiLineEdit *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackForm.html#862ae3fd81afe2f61f19d41d927c537b">_comment</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
User feedback form:<p>
User is asked a list of questions, the answers of which will be sent via mail back to a feedback mail address. 
<p>

<p>
Definition at line <a class="el" href="kfeedback_8h-source.html#l00098">98</a> of file <a class="el" href="kfeedback_8h-source.html">kfeedback.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="78d888d1554e9403a62d7c9b0c6e4a2e"></a><!-- doxytag: member="KFeedbackForm::KFeedbackForm" ref="78d888d1554e9403a62d7c9b0c6e4a2e" args="(const TQString &amp;feedbackMailAddress, TQWidget *parent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KFeedbackForm::KFeedbackForm           </td>
          <td>(</td>
          <td class="paramtype">const TQString &amp;&nbsp;</td>
          <td class="paramname"> <em>feedbackMailAddress</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TQWidget *&nbsp;</td>
          <td class="paramname"> <em>parent</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></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#l00080">80</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
<p>
References <a class="el" href="kfeedback_8h-source.html#l00179">_comment</a>, <a class="el" href="kfeedback_8h-source.html#l00178">_questionList</a> and <a class="el" href="kfeedback_8cpp-source.html#l00208">slotCheckComplete()</a>.
</div>
</div><p>
<a class="anchor" name="b22414a85a37ca217e028bde8a663ac4"></a><!-- doxytag: member="KFeedbackForm::~KFeedbackForm" ref="b22414a85a37ca217e028bde8a663ac4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KFeedbackForm::~KFeedbackForm           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</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#l00146">146</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="72b8b30801614c35e271c5e519f10c8b"></a><!-- doxytag: member="KFeedbackForm::sendMail" ref="72b8b30801614c35e271c5e519f10c8b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KFeedbackForm::sendMail           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Compose a mail from the user's answers and send it to the feedback mail address passed to the constructor.<p>
This method will check with <a class="el" href="classKFeedbackForm.html#6840e07fe3245d4e9c11ee0160af6068">readyToSend()</a> if the mail can be sent with the questions answered until now and prompt the user to answer more questions if not.<p>
Connect the <a class="el" href="classKFeedbackForm.html#ec2b411546d45e31c9b412f1fa6d8897">mailSent()</a> signal if you are interested when exactly all this was successful. 
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00153">153</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
<p>
References <a class="el" href="kfeedback_8h-source.html#l00177">_feedbackMailAddress</a>, <a class="el" href="kfeedback_8h-source.html#l00178">_questionList</a>, <a class="el" href="kfeedback_8cpp-source.html#l00215">formatComment()</a>, and <a class="el" href="kfeedback_8cpp-source.html#l00270">KFeedbackQuestionList::result()</a>.
</div>
</div><p>
<a class="anchor" name="6840e07fe3245d4e9c11ee0160af6068"></a><!-- doxytag: member="KFeedbackForm::readyToSend" ref="6840e07fe3245d4e9c11ee0160af6068" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KFeedbackForm::readyToSend           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Checks if the mail is ready to send, i.e. if all required fields are filled. 
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00229">229</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
<p>
References <a class="el" href="kfeedback_8h-source.html#l00178">_questionList</a>, and <a class="el" href="kfeedback_8cpp-source.html#l00254">KFeedbackQuestionList::isComplete()</a>.
<p>
Referenced by <a class="el" href="kfeedback_8cpp-source.html#l00071">KFeedbackDialog::checkSendButton()</a>.
</div>
</div><p>
<a class="anchor" name="51b1d4e1e48d18c6155203b9f72ada5e"></a><!-- doxytag: member="KFeedbackForm::questionList" ref="51b1d4e1e48d18c6155203b9f72ada5e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKFeedbackQuestionList.html">KFeedbackQuestionList</a>* KFeedbackForm::questionList           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the <a class="el" href="classKFeedbackQuestionList.html">KFeedbackQuestionList</a> . 
<p>
Definition at line <a class="el" href="kfeedback_8h-source.html#l00142">142</a> of file <a class="el" href="kfeedback_8h-source.html">kfeedback.h</a>.
<p>
References <a class="el" href="kfeedback_8h-source.html#l00178">_questionList</a>.
<p>
Referenced by <a class="el" href="kshowmailfeedback_8cpp-source.html#l00023">KShowMailApp::slotSendFeedbackMail()</a>.
</div>
</div><p>
<a class="anchor" name="ec2b411546d45e31c9b412f1fa6d8897"></a><!-- doxytag: member="KFeedbackForm::mailSent" ref="ec2b411546d45e31c9b412f1fa6d8897" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KFeedbackForm::mailSent           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Emitted when the user has sent the feedback mail - i.e. when he clicked on the "Send mail" button and the mail has successfully been forwarded to the mailer. He can still choose not to send the mail from within the mailer, though. 
<p>
Referenced by <a class="el" href="kfeedback_8cpp-source.html#l00153">sendMail()</a>.
</div>
</div><p>
<a class="anchor" name="c328809367354cf8ff97e7c78b521345"></a><!-- doxytag: member="KFeedbackForm::checkComplete" ref="c328809367354cf8ff97e7c78b521345" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KFeedbackForm::checkComplete           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Emitted when it is time to check for completeness of all information in this form: Either when a new question is added or when a question is answered. 
<p>
Referenced by <a class="el" href="kfeedback_8cpp-source.html#l00080">KFeedbackForm()</a>, and <a class="el" href="kfeedback_8cpp-source.html#l00208">slotCheckComplete()</a>.
</div>
</div><p>
<a class="anchor" name="5ec1c36c978229b6e14e9005b595d69e"></a><!-- doxytag: member="KFeedbackForm::slotCheckComplete" ref="5ec1c36c978229b6e14e9005b595d69e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KFeedbackForm::slotCheckComplete           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Check for completeness of this form. 
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00208">208</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#l00080">KFeedbackForm()</a>.
</div>
</div><p>
<a class="anchor" name="08ace5fb7dd689ced012aa722b690b71"></a><!-- doxytag: member="KFeedbackForm::formatComment" ref="08ace5fb7dd689ced012aa722b690b71" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TQString KFeedbackForm::formatComment           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Format the "personal comments" field for sending mail. 
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00215">215</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
<p>
References <a class="el" href="kfeedback_8h-source.html#l00179">_comment</a>.
<p>
Referenced by <a class="el" href="kfeedback_8cpp-source.html#l00153">sendMail()</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&nbsp;
<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>