libkdeedu/keduvocdocument
#include <keduvoctext.h>

Public Member Functions | |
KEduVocText (const QString &text=QString()) | |
KEduVocText (const KEduVocText &other) | |
~KEduVocText () | |
count_t | badCount () const |
void | decGrade () |
void | fromKVTML2 (QDomElement &parent) |
grade_t | grade () const |
void | incBadCount () |
void | incGrade () |
void | incPracticeCount () |
bool | isEmpty () |
KEduVocText & | operator= (const KEduVocText &other) |
bool | operator== (const KEduVocText &other) const |
count_t | practiceCount () const |
QDateTime | practiceDate () const |
void | resetGrades () |
void | setBadCount (count_t count) |
void | setGrade (grade_t grade) |
void | setPracticeCount (count_t count) |
void | setPracticeDate (const QDateTime &date) |
void | setText (const QString &expr) |
QString | text () const |
void | toKVTML2 (QDomElement &parent) |
Detailed Description
A text in vocabulary documents.
Associated with it are grade and date information. This should be used instead of strings for all things that can be tested and thus get a grade.
Definition at line 59 of file keduvoctext.h.
Constructor & Destructor Documentation
KEduVocText::KEduVocText | ( | const QString & | text = QString() | ) |
default constructor
Definition at line 33 of file keduvoctext.cpp.
KEduVocText::KEduVocText | ( | const KEduVocText & | other | ) |
copy constructor provides safe copy of d pointer
- Parameters
-
other object to copy from
Definition at line 40 of file keduvoctext.cpp.
KEduVocText::~KEduVocText | ( | ) |
default destructor
Definition at line 50 of file keduvoctext.cpp.
Member Function Documentation
count_t KEduVocText::badCount | ( | ) | const |
returns bad query count as int
- Returns
- bad query count
Definition at line 131 of file keduvoctext.cpp.
void KEduVocText::decGrade | ( | ) |
decrements grade
Definition at line 98 of file keduvoctext.cpp.
void KEduVocText::fromKVTML2 | ( | QDomElement & | parent | ) |
Definition at line 205 of file keduvoctext.cpp.
grade_t KEduVocText::grade | ( | ) | const |
returns grade as int
- Returns
- number of knowlegde: 0=known, x=numbers not knows
Definition at line 77 of file keduvoctext.cpp.
void KEduVocText::incBadCount | ( | ) |
increment bad query count of given translation by 1
Definition at line 119 of file keduvoctext.cpp.
void KEduVocText::incGrade | ( | ) |
increments grade
Definition at line 92 of file keduvoctext.cpp.
void KEduVocText::incPracticeCount | ( | ) |
increment query count of given translation by 1
Definition at line 113 of file keduvoctext.cpp.
bool KEduVocText::isEmpty | ( | ) |
If the string inside is empty this returns true.
- Returns
Definition at line 227 of file keduvoctext.cpp.
KEduVocText & KEduVocText::operator= | ( | const KEduVocText & | other | ) |
Equal operator to copy grades.
- Parameters
-
other grades copied
- Returns
- reference to the new grades
Definition at line 154 of file keduvoctext.cpp.
bool KEduVocText::operator== | ( | const KEduVocText & | other | ) | const |
Compare two sets of grades.
- Parameters
-
other
- Returns
- true if equal
Definition at line 165 of file keduvoctext.cpp.
count_t KEduVocText::practiceCount | ( | ) | const |
returns how often this entry has been practiced as int
- Returns
- total count
Definition at line 107 of file keduvoctext.cpp.
QDateTime KEduVocText::practiceDate | ( | ) | const |
returns last practice date as int
Definition at line 143 of file keduvoctext.cpp.
void KEduVocText::resetGrades | ( | ) |
Clears grading and date information.
Definition at line 65 of file keduvoctext.cpp.
void KEduVocText::setBadCount | ( | count_t | count | ) |
set bad query count as int
- Parameters
-
count the new count
Definition at line 137 of file keduvoctext.cpp.
void KEduVocText::setGrade | ( | grade_t | grade | ) |
sets the grade
- Parameters
-
grade number of knowlegde: 0=known, x=numbers not knows
Definition at line 83 of file keduvoctext.cpp.
void KEduVocText::setPracticeCount | ( | count_t | count | ) |
set how often this entry has been practiced as int
- Parameters
-
count the new count
Definition at line 125 of file keduvoctext.cpp.
void KEduVocText::setPracticeDate | ( | const QDateTime & | date | ) |
void KEduVocText::setText | ( | const QString & | expr | ) |
QString KEduVocText::text | ( | ) | const |
The translation as string (the word itself)
- Returns
- the translation
Definition at line 55 of file keduvoctext.cpp.
void KEduVocText::toKVTML2 | ( | QDomElement & | parent | ) |
Definition at line 175 of file keduvoctext.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:37:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.