parley
#include <answervalidatorold.h>
Public Member Functions | |
AnswerValidatorOld (KEduVocDocument *doc) | |
~AnswerValidatorOld () | |
void | checkUserAnswer (const QString &userAnswer) |
void | checkUserAnswer (const QString &solution, const QString &userAnswer, const QString &language=QString()) |
void | setLanguage (int translation) |
void | setTestEntry (TestEntry *entry) |
bool | spellcheckerAvailable () |
Detailed Description
Provides different comparison methods to determine the quality of the answer.
Definition at line 31 of file answervalidatorold.h.
Constructor & Destructor Documentation
AnswerValidatorOld::AnswerValidatorOld | ( | KEduVocDocument * | doc | ) |
Definition at line 50 of file answervalidatorold.cpp.
AnswerValidatorOld::~AnswerValidatorOld | ( | ) |
Definition at line 58 of file answervalidatorold.cpp.
Member Function Documentation
void AnswerValidatorOld::checkUserAnswer | ( | const QString & | userAnswer | ) |
Checks the user answer.
If the answer was correct, 1.0 is set as lastPercentage for the TestEntry, 0.0 means no relation between answer and solution whatsoever. The type of mistake is also set in the TestEntry.
- Parameters
-
userAnswer
Definition at line 307 of file answervalidatorold.cpp.
void AnswerValidatorOld::checkUserAnswer | ( | const QString & | solution, |
const QString & | userAnswer, | ||
const QString & | language = QString() |
||
) |
Definition at line 320 of file answervalidatorold.cpp.
void AnswerValidatorOld::setLanguage | ( | int | translation | ) |
Set the language for the spell checker.
(Identifierindex)
- Parameters
-
translation
Definition at line 64 of file answervalidatorold.cpp.
void AnswerValidatorOld::setTestEntry | ( | TestEntry * | entry | ) |
Sets the current entry.
This has to be set before trying to validate! It will store the results.
- Parameters
-
expression
Definition at line 92 of file answervalidatorold.cpp.
bool AnswerValidatorOld::spellcheckerAvailable | ( | ) |
Definition at line 526 of file answervalidatorold.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.