KEduVocText

Search for usage in LXR

KEduVocText Class Reference

#include <keduvoctext.h>

Inheritance diagram for KEduVocText:

Public Member Functions

 KEduVocText (const KEduVocText &other)
 
 KEduVocText (const QString &text=QString())
 
 ~KEduVocText ()
 
count_t badCount () const
 
void decGrade ()
 
void fromKVTML2 (QDomElement &parent)
 
grade_t grade () const
 
void incBadCount ()
 
void incGrade ()
 
void incPracticeCount ()
 
quint32 interval () const
 
bool isEmpty ()
 
KEduVocTextoperator= (const KEduVocText &other)
 
bool operator== (const KEduVocText &other) const
 
count_t practiceCount () const
 
QDateTime practiceDate () const
 
grade_t preGrade () const
 
void resetGrades ()
 
void setBadCount (count_t count)
 
void setGrade (grade_t grade)
 
void setInterval (quint32 interval)
 
void setPracticeCount (count_t count)
 
void setPracticeDate (const QDateTime &date)
 
void setPreGrade (grade_t grade)
 
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.

Author
Frederik Gladhorn frede.nosp@m.rik..nosp@m.gladh.nosp@m.orn@.nosp@m.kdema.nosp@m.il.n.nosp@m.et

Definition at line 49 of file keduvoctext.h.

Constructor & Destructor Documentation

◆ KEduVocText() [1/2]

KEduVocText::KEduVocText ( const QString & text = QString())

default constructor

Definition at line 27 of file keduvoctext.cpp.

◆ KEduVocText() [2/2]

KEduVocText::KEduVocText ( const KEduVocText & other)

copy constructor provides safe copy of d pointer

Parameters
otherobject to copy from

Definition at line 34 of file keduvoctext.cpp.

◆ ~KEduVocText()

KEduVocText::~KEduVocText ( )

default destructor

Definition at line 46 of file keduvoctext.cpp.

Member Function Documentation

◆ badCount()

count_t KEduVocText::badCount ( ) const

returns bad query count as int

Returns
bad query count

Definition at line 132 of file keduvoctext.cpp.

◆ decGrade()

void KEduVocText::decGrade ( )

decrements grade

Definition at line 104 of file keduvoctext.cpp.

◆ fromKVTML2()

void KEduVocText::fromKVTML2 ( QDomElement & parent)

Definition at line 218 of file keduvoctext.cpp.

◆ grade()

grade_t KEduVocText::grade ( ) const

returns grade as int

Returns
number of knowledge: 0=known, x=numbers not knows

Definition at line 86 of file keduvoctext.cpp.

◆ incBadCount()

void KEduVocText::incBadCount ( )

increment bad query count of given translation by 1

Definition at line 122 of file keduvoctext.cpp.

◆ incGrade()

void KEduVocText::incGrade ( )

increments grade

Definition at line 99 of file keduvoctext.cpp.

◆ incPracticeCount()

void KEduVocText::incPracticeCount ( )

increment query count of given translation by 1

Definition at line 117 of file keduvoctext.cpp.

◆ interval()

quint32 KEduVocText::interval ( ) const

returns interval until next practice is due

Definition at line 152 of file keduvoctext.cpp.

◆ isEmpty()

bool KEduVocText::isEmpty ( )

If the string inside is empty this returns true.

Returns

Definition at line 241 of file keduvoctext.cpp.

◆ operator=()

KEduVocText & KEduVocText::operator= ( const KEduVocText & other)

Equal operator to copy grades.

Parameters
othergrades copied
Returns
reference to the new grades

Definition at line 162 of file keduvoctext.cpp.

◆ operator==()

bool KEduVocText::operator== ( const KEduVocText & other) const

Compare two sets of grades.

Parameters
other
Returns
true if equal

Definition at line 175 of file keduvoctext.cpp.

◆ practiceCount()

count_t KEduVocText::practiceCount ( ) const

returns how often this entry has been practiced as int

Returns
total count

Definition at line 112 of file keduvoctext.cpp.

◆ practiceDate()

QDateTime KEduVocText::practiceDate ( ) const

returns last practice date as int

Definition at line 142 of file keduvoctext.cpp.

◆ preGrade()

grade_t KEduVocText::preGrade ( ) const

returns pregrade

Definition at line 73 of file keduvoctext.cpp.

◆ resetGrades()

void KEduVocText::resetGrades ( )

Clears grading and date information.

Definition at line 61 of file keduvoctext.cpp.

◆ setBadCount()

void KEduVocText::setBadCount ( count_t count)

set bad query count as int

Parameters
countthe new count

Definition at line 137 of file keduvoctext.cpp.

◆ setGrade()

void KEduVocText::setGrade ( grade_t grade)

sets the grade

Parameters
gradenumber of knowledge: 0=known, x=numbers not knows

Definition at line 91 of file keduvoctext.cpp.

◆ setInterval()

void KEduVocText::setInterval ( quint32 interval)

Set interval until next practice is due.

Parameters
intervalthe new interval

Definition at line 157 of file keduvoctext.cpp.

◆ setPracticeCount()

void KEduVocText::setPracticeCount ( count_t count)

set how often this entry has been practiced as int

Parameters
countthe new count

Definition at line 127 of file keduvoctext.cpp.

◆ setPracticeDate()

void KEduVocText::setPracticeDate ( const QDateTime & date)

Set last query date.

Parameters
datethe new date

Definition at line 147 of file keduvoctext.cpp.

◆ setPreGrade()

void KEduVocText::setPreGrade ( grade_t grade)

sets the pregrade

Parameters
gradenumber of knowledge: 0=known, x=numbers not knows

Definition at line 78 of file keduvoctext.cpp.

◆ setText()

void KEduVocText::setText ( const QString & expr)

Sets the translation.

Parameters
expr

Definition at line 56 of file keduvoctext.cpp.

◆ text()

QString KEduVocText::text ( ) const

The translation as string (the word itself)

Returns
the translation

Definition at line 51 of file keduvoctext.cpp.

◆ toKVTML2()

void KEduVocText::toKVTML2 ( QDomElement & parent)

Definition at line 182 of file keduvoctext.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:53:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.