KFeedbackAnswer Class Reference

List of all members.

Public Member Functions

 KFeedbackAnswer (KFeedbackQuestion *parent, const QString &text, const QString &id, bool exclusive=true)
QString id ()
QString text ()
bool isExclusive ()
bool isChecked ()
KFeedbackAnswernextAnswer () const
KFeedbackQuestionquestion () const
virtual QString key (int column, bool ascending) const
virtual void stateChange (bool newState)

Protected Attributes

QString _id
bool _exclusive
int _no

Detailed Description

Definition at line 388 of file kfeedback.h.


Constructor & Destructor Documentation

KFeedbackAnswer::KFeedbackAnswer ( KFeedbackQuestion parent,
const QString &  text,
const QString &  id,
bool  exclusive = true 
)

Constructor.

'exclusive' tells the type of answer: One of many allowed or any number of many.

Definition at line 458 of file kfeedback.cpp.

References _no.


Member Function Documentation

QString KFeedbackAnswer::id (  )  [inline]

Return this answer's ID.

Definition at line 405 of file kfeedback.h.

References _id.

Referenced by KFeedbackQuestion::result().

QString KFeedbackAnswer::text (  ) 

Return this answer's text.

Definition at line 474 of file kfeedback.cpp.

bool KFeedbackAnswer::isExclusive (  )  [inline]

Returns whether or not this is an exclusive answer.

Definition at line 415 of file kfeedback.h.

References _exclusive.

bool KFeedbackAnswer::isChecked (  )  [inline]

Returns whether or not this answer is checked.

Definition at line 420 of file kfeedback.h.

Referenced by KFeedbackQuestion::isAnswered(), and KFeedbackQuestion::result().

KFeedbackAnswer* KFeedbackAnswer::nextAnswer (  )  const [inline]

Returns the next possible answer or 0 if there is no more.

Definition at line 425 of file kfeedback.h.

Referenced by KFeedbackQuestion::isAnswered(), and KFeedbackQuestion::result().

KFeedbackQuestion* KFeedbackAnswer::question (  )  const [inline]

Returns the question to this answer.

Definition at line 431 of file kfeedback.h.

Referenced by stateChange().

QString KFeedbackAnswer::key ( int  column,
bool  ascending 
) const [virtual]

Returns the sort key.

Reimplemented from QListViewItem to maintain insertion order.

Definition at line 481 of file kfeedback.cpp.

References _no.

void KFeedbackAnswer::stateChange ( bool  newState  )  [virtual]

On/off change.

Reimplemented from QCheckListItem to monitor answering required questions. This method notifies the KFeedbackQuestionList whenever a required question is being answered.

Definition at line 491 of file kfeedback.cpp.

References question(), KFeedbackQuestionList::questionAnswered(), and KFeedbackQuestion::questionList().


The documentation for this class was generated from the following files:
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  doxygen 1.5.0