+/***************************************************************************
+* this file is from kdeedu project. Filename: keduvocleitnerbox.h
+***************************************************************************/
+
/***************************************************************************
Copyright 2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
+ Copyright (C) 2010, 2012 Reto Zingg <g.d0b3rm4n@gmail.com>
***************************************************************************/
/***************************************************************************
* *
***************************************************************************/
-#ifndef KEDUVOCLEITNERBOX_H
-#define KEDUVOCLEITNERBOX_H
+#ifndef QMVOCLEITNERBOX_H
+#define QMVOCLEITNERBOX_H
-#include "libkeduvocdocument_export.h"
+#include "libqmvocdocument_export.h"
-#include "keduvoccontainer.h"
+#include "qmvoccontainer.h"
#include <QtCore/QList>
#include <QtCore/QString>
-class KEduVocExpression;
-class KEduVocTranslation;
+class QmVocExpression;
+class QmVocTranslation;
/**
* Leitner Boxes are an alternative grading system.
* Classically flash cards are kept in boxes and moved corresponding to the users knowledge level.
*/
-class KEDUVOCDOCUMENT_EXPORT KEduVocLeitnerBox :public KEduVocContainer
+class QMVOCDOCUMENT_EXPORT QmVocLeitnerBox :public QmVocContainer
{
public:
/** default constructor */
- explicit KEduVocLeitnerBox(const QString& name, KEduVocLeitnerBox *parent = 0);
+ explicit QmVocLeitnerBox(const QString& name, QmVocLeitnerBox *parent = 0);
/** destructor */
- ~KEduVocLeitnerBox();
+ ~QmVocLeitnerBox();
/**
* The leitner box class keeps track of individual translations, because for one entry, the translations can have different grades.
* @param row
* @return
*/
- KEduVocTranslation * translation(int row);
+ QmVocTranslation * translation(int row);
/**
* get a list of all entries in the box
* @return
*/
- QList < KEduVocExpression* > entries(EnumEntriesRecursive recursive = NotRecursive);
+ QList < QmVocExpression* > entries(EnumEntriesRecursive recursive = NotRecursive);
- KEduVocExpression* entry(int row, EnumEntriesRecursive recursive = NotRecursive);
+ QmVocExpression* entry(int row, EnumEntriesRecursive recursive = NotRecursive);
/** get the number of entries in the lesson */
int entryCount(EnumEntriesRecursive recursive = NotRecursive);
/** add an entry to the lesson
* @param entryid id of the entry to add
*/
- void addTranslation(KEduVocTranslation* translation);
+ void addTranslation(QmVocTranslation* translation);
/** remove an entry from the lesson
* @param entryid id of the entry to remove
*/
- void removeTranslation(KEduVocTranslation* translation);
+ void removeTranslation(QmVocTranslation* translation);
- friend class KEduVocTranslation;
+ friend class QmVocTranslation;
};
#endif