]> Git trees. - libqmvoc.git/commitdiff
adapt qmvocleitnerbox.h for querymee
authorReto Zingg <g.d0b3rm4n@gmail.com>
Sat, 15 Dec 2012 17:28:48 +0000 (19:28 +0200)
committerReto Zingg <g.d0b3rm4n@gmail.com>
Sat, 21 Sep 2013 11:09:08 +0000 (14:09 +0300)
qmvocleitnerbox.h

index 37bd7805ef3bc451bbf6f58ee70fb1e2056acf70..132c6246bfbd135cbcf66a43d8b8f85d2b4dd807 100644 (file)
@@ -1,5 +1,10 @@
+/***************************************************************************
+*   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);
@@ -62,14 +67,14 @@ private:
     /** 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