You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kshowmail/doc/html/classKFeedbackAnswer.html

312 lines
15 KiB

<!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: KFeedbackAnswer 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>KFeedbackAnswer Class Reference</h1><!-- doxytag: class="KFeedbackAnswer" --><a href="classKFeedbackAnswer-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 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="classKFeedbackAnswer.html#7100bf31bf9d49009b8c5a82c1ae5bde">KFeedbackAnswer</a> (<a class="el" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> *parent, const TQString &amp;text, const TQString &amp;id, bool exclusive=true)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">TQString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackAnswer.html#0c38ffb3d84f3ca2204bcd66f605514c">id</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">TQString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackAnswer.html#a177a24369a5dab88d5602f6651275ea">text</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackAnswer.html#5de55655375db66b438b221d63cd0082">isExclusive</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackAnswer.html#864fad7f3c6f5f92f262488735799cb7">isChecked</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classKFeedbackAnswer.html">KFeedbackAnswer</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackAnswer.html#31fe8732bdbda805d1306e5c86fcae91">nextAnswer</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackAnswer.html#c147b9f7c35c83c8a5458a79f6cafed9">question</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual TQString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackAnswer.html#a643ff4986437b3089dcda86512c4f79">key</a> (int column, bool ascending) const</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackAnswer.html#3812bf11ec42b06397e87a753797bbd8">stateChange</a> (bool newState)</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="f6c09e6daf51423ec373fc9608486adb"></a><!-- doxytag: member="KFeedbackAnswer::_id" ref="f6c09e6daf51423ec373fc9608486adb" args="" -->
TQString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackAnswer.html#f6c09e6daf51423ec373fc9608486adb">_id</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b2a618699a774f019ce272d6fbd0aeb8"></a><!-- doxytag: member="KFeedbackAnswer::_exclusive" ref="b2a618699a774f019ce272d6fbd0aeb8" args="" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackAnswer.html#b2a618699a774f019ce272d6fbd0aeb8">_exclusive</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1ddde383928714423714a70a829a0c57"></a><!-- doxytag: member="KFeedbackAnswer::_no" ref="1ddde383928714423714a70a829a0c57" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFeedbackAnswer.html#1ddde383928714423714a70a829a0c57">_no</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
<p>
Definition at line <a class="el" href="kfeedback_8h-source.html#l00388">388</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="7100bf31bf9d49009b8c5a82c1ae5bde"></a><!-- doxytag: member="KFeedbackAnswer::KFeedbackAnswer" ref="7100bf31bf9d49009b8c5a82c1ae5bde" args="(KFeedbackQuestion *parent, const TQString &amp;text, const TQString &amp;id, bool exclusive=true)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KFeedbackAnswer::KFeedbackAnswer </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classKFeedbackQuestion.html">KFeedbackQuestion</a> *&nbsp;</td>
<td class="paramname"> <em>parent</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const TQString &amp;&nbsp;</td>
<td class="paramname"> <em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const TQString &amp;&nbsp;</td>
<td class="paramname"> <em>id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>exclusive</em> = <code>true</code></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>
'exclusive' tells the type of answer: One of many allowed or any number of many.
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00458">458</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
<p>
References <a class="el" href="kfeedback_8h-source.html#l00455">_no</a>.
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="0c38ffb3d84f3ca2204bcd66f605514c"></a><!-- doxytag: member="KFeedbackAnswer::id" ref="0c38ffb3d84f3ca2204bcd66f605514c" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TQString KFeedbackAnswer::id </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>
Return this answer's ID.
<p>
Definition at line <a class="el" href="kfeedback_8h-source.html#l00405">405</a> of file <a class="el" href="kfeedback_8h-source.html">kfeedback.h</a>.
<p>
References <a class="el" href="kfeedback_8h-source.html#l00453">_id</a>.
<p>
Referenced by <a class="el" href="kfeedback_8cpp-source.html#l00402">KFeedbackQuestion::result()</a>.
</div>
</div><p>
<a class="anchor" name="a177a24369a5dab88d5602f6651275ea"></a><!-- doxytag: member="KFeedbackAnswer::text" ref="a177a24369a5dab88d5602f6651275ea" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TQString KFeedbackAnswer::text </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return this answer's text.
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00474">474</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
</div>
</div><p>
<a class="anchor" name="5de55655375db66b438b221d63cd0082"></a><!-- doxytag: member="KFeedbackAnswer::isExclusive" ref="5de55655375db66b438b221d63cd0082" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool KFeedbackAnswer::isExclusive </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 whether or not this is an exclusive answer.
<p>
Definition at line <a class="el" href="kfeedback_8h-source.html#l00415">415</a> of file <a class="el" href="kfeedback_8h-source.html">kfeedback.h</a>.
<p>
References <a class="el" href="kfeedback_8h-source.html#l00454">_exclusive</a>.
</div>
</div><p>
<a class="anchor" name="864fad7f3c6f5f92f262488735799cb7"></a><!-- doxytag: member="KFeedbackAnswer::isChecked" ref="864fad7f3c6f5f92f262488735799cb7" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool KFeedbackAnswer::isChecked </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 whether or not this answer is checked.
<p>
Definition at line <a class="el" href="kfeedback_8h-source.html#l00420">420</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#l00368">KFeedbackQuestion::isAnswered()</a>, and <a class="el" href="kfeedback_8cpp-source.html#l00402">KFeedbackQuestion::result()</a>.
</div>
</div><p>
<a class="anchor" name="31fe8732bdbda805d1306e5c86fcae91"></a><!-- doxytag: member="KFeedbackAnswer::nextAnswer" ref="31fe8732bdbda805d1306e5c86fcae91" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classKFeedbackAnswer.html">KFeedbackAnswer</a>* KFeedbackAnswer::nextAnswer </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the next possible answer or 0 if there is no more.
<p>
Definition at line <a class="el" href="kfeedback_8h-source.html#l00425">425</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#l00368">KFeedbackQuestion::isAnswered()</a>, and <a class="el" href="kfeedback_8cpp-source.html#l00402">KFeedbackQuestion::result()</a>.
</div>
</div><p>
<a class="anchor" name="c147b9f7c35c83c8a5458a79f6cafed9"></a><!-- doxytag: member="KFeedbackAnswer::question" ref="c147b9f7c35c83c8a5458a79f6cafed9" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classKFeedbackQuestion.html">KFeedbackQuestion</a>* KFeedbackAnswer::question </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the question to this answer.
<p>
Definition at line <a class="el" href="kfeedback_8h-source.html#l00431">431</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#l00491">stateChange()</a>.
</div>
</div><p>
<a class="anchor" name="a643ff4986437b3089dcda86512c4f79"></a><!-- doxytag: member="KFeedbackAnswer::key" ref="a643ff4986437b3089dcda86512c4f79" args="(int column, bool ascending) const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TQString KFeedbackAnswer::key </td>
<td>(</td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"> <em>column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>ascending</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the sort key.<p>
Reimplemented from TQListViewItem to maintain insertion order.
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00481">481</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
<p>
References <a class="el" href="kfeedback_8h-source.html#l00455">_no</a>.
</div>
</div><p>
<a class="anchor" name="3812bf11ec42b06397e87a753797bbd8"></a><!-- doxytag: member="KFeedbackAnswer::stateChange" ref="3812bf11ec42b06397e87a753797bbd8" args="(bool newState)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void KFeedbackAnswer::stateChange </td>
<td>(</td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>newState</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
On/off change.<p>
Reimplemented from TQCheckListItem to monitor answering required questions. This method notifies the <a class="el" href="classKFeedbackQuestionList.html">KFeedbackQuestionList</a> whenever a required question is being answered.
<p>
Definition at line <a class="el" href="kfeedback_8cpp-source.html#l00491">491</a> of file <a class="el" href="kfeedback_8cpp-source.html">kfeedback.cpp</a>.
<p>
References <a class="el" href="kfeedback_8h-source.html#l00431">question()</a>, <a class="el" href="kfeedback_8cpp-source.html#l00318">KFeedbackQuestionList::questionAnswered()</a>, and <a class="el" href="kfeedback_8cpp-source.html#l00447">KFeedbackQuestion::questionList()</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>