KEduVocLesson
#include <keduvoclesson.h>
Public Member Functions | |
KEduVocLesson (const KEduVocLesson &other) | |
KEduVocLesson (const QString &name, KEduVocContainer *parent=nullptr) | |
~KEduVocLesson () override | |
void | appendEntry (KEduVocExpression *entry) |
QList< KEduVocExpression * > | entries (EnumEntriesRecursive recursive=NotRecursive) override |
KEduVocExpression * | entry (int row, EnumEntriesRecursive recursive=NotRecursive) override |
int | entryCount (EnumEntriesRecursive recursive=NotRecursive) override |
void | insertEntry (int index, KEduVocExpression *entry) |
KEduVocLesson & | operator= (const KEduVocLesson &) |
void | removeEntry (KEduVocExpression *entry) |
Public Member Functions inherited from KEduVocContainer | |
KEduVocContainer (const KEduVocContainer &other) | |
KEduVocContainer (const QString &name, EnumContainerType type, KEduVocContainer *parent=nullptr) | |
virtual | ~KEduVocContainer () |
void | appendChildContainer (KEduVocContainer *child) |
double | averageGrade (int translation, EnumEntriesRecursive recursive) |
KEduVocContainer * | childContainer (const QString &name) |
KEduVocContainer * | childContainer (int row) |
int | childContainerCount () const |
QList< KEduVocContainer * > | childContainers () |
KEduVocContainer::EnumContainerType | containerType () |
void | deleteChildContainer (int row) |
KEduVocDocument * | document () const |
int | expressionsOfGrade (int translation, grade_t grade, EnumEntriesRecursive recursive) |
QUrl | imageUrl () |
bool | inPractice () |
void | insertChildContainer (int row, KEduVocContainer *child) |
QString | name () |
KEduVocContainer & | operator= (const KEduVocContainer &) |
bool | operator== (const KEduVocContainer &other) const |
virtual KEduVocContainer * | parent () |
void | removeChildContainer (int row) |
void | removeTranslation (int translation) |
void | resetGrades (int translation, EnumEntriesRecursive recursive) |
int | row () const |
void | setContainerType (KEduVocContainer::EnumContainerType type) |
void | setImageUrl (const QUrl &url) |
void | setInPractice (bool inPractice) |
void | setName (const QString &name) |
Additional Inherited Members | |
Public Types inherited from KEduVocContainer | |
enum | EnumContainerType { Container , Lesson , WordType , Leitner } |
enum | EnumEntriesRecursive { NotRecursive = 0 , Recursive = 1 } |
Protected Member Functions inherited from KEduVocContainer | |
KEduVocContainer (const QString &name, EnumContainerType type, KEduVocDocument *document) | |
QList< KEduVocExpression * > | entriesRecursive () |
void | invalidateChildLessonEntries () |
void | updateChildLessonEntries () |
Detailed Description
class to store information about a lesson
Definition at line 17 of file keduvoclesson.h.
Constructor & Destructor Documentation
◆ KEduVocLesson() [1/2]
|
explicit |
default constructor
Definition at line 21 of file keduvoclesson.cpp.
◆ KEduVocLesson() [2/2]
KEduVocLesson::KEduVocLesson | ( | const KEduVocLesson & | other | ) |
copy constructor for d-pointer safe copying
Definition at line 34 of file keduvoclesson.cpp.
◆ ~KEduVocLesson()
|
override |
destructor
Definition at line 41 of file keduvoclesson.cpp.
Member Function Documentation
◆ appendEntry()
void KEduVocLesson::appendEntry | ( | KEduVocExpression * | entry | ) |
append an entry to the lesson
- Parameters
-
entry the id of the entry to add
Definition at line 63 of file keduvoclesson.cpp.
◆ entries()
|
overridevirtual |
get a list of all entries in the lesson
Implements KEduVocContainer.
Definition at line 47 of file keduvoclesson.cpp.
◆ entry()
|
overridevirtual |
Implements KEduVocContainer.
Definition at line 87 of file keduvoclesson.cpp.
◆ entryCount()
|
overridevirtual |
get the number of entries in the lesson
Implements KEduVocContainer.
Definition at line 55 of file keduvoclesson.cpp.
◆ insertEntry()
void KEduVocLesson::insertEntry | ( | int | index, |
KEduVocExpression * | entry ) |
insert an entry at a specific position
- Parameters
-
index entry
Definition at line 68 of file keduvoclesson.cpp.
◆ operator=()
KEduVocLesson & KEduVocLesson::operator= | ( | const KEduVocLesson & | ) |
assignment operator
◆ removeEntry()
void KEduVocLesson::removeEntry | ( | KEduVocExpression * | entry | ) |
remove an entry from the lesson
- Parameters
-
entry the id of the entry to remove
Definition at line 76 of file keduvoclesson.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.