]> Git trees. - libqmvoc.git/commitdiff
adapt qmvocexpression.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)
qmvocexpression.h

index 373033aaafa59e82b4a1cb391cc6471578cd316e..c6861261ed2b065fb4deadd6d9ed4e779d5848f2 100644 (file)
@@ -1,3 +1,7 @@
+/***************************************************************************
+*   this file is from kdeedu project. Filename: keduvocexpression.h
+***************************************************************************/
+
 /***************************************************************************
                         Vocabulary Expression for KDE Edu
     -----------------------------------------------------------------------
@@ -5,6 +9,8 @@
 
                            (C) 2005-2007 Peter Hedlund <peter.hedlund@kdemail.net>
     Copyright 2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
+    Copyright 2010, 2012 Reto Zingg <g.d0b3rm4n@gmail.com>
+
  ***************************************************************************/
 
 /***************************************************************************
  *                                                                         *
  ***************************************************************************/
 
-#ifndef KEDUVOCEXPRESSION_H
-#define KEDUVOCEXPRESSION_H
+#ifndef QMVOCEXPRESSION_H
+#define QMVOCEXPRESSION_H
 
-#include "libkeduvocdocument_export.h"
+#include "libqmvocdocument_export.h"
 
 #include <QtCore/QDateTime>
+#include <QMap>
 
-#include "keduvoclesson.h"
-#include "keduvocarticle.h"
-#include "keduvocmultiplechoice.h"
-#include "keduvoctranslation.h"
+#include "qmvoclesson.h"
+#include "qmvocarticle.h"
+#include "qmvocmultiplechoice.h"
+#include "qmvoctranslation.h"
 
-class KEduVocLesson;
+class QmVocLesson;
 
 /**
   This class contains one vocabulary expression as an original with one or more
   translations
   */
-class KEDUVOCDOCUMENT_EXPORT KEduVocExpression
+class QMVOCDOCUMENT_EXPORT QmVocExpression
 {
 public:
 
     /** default constructor for an empty vocabulary expression
      */
-    explicit KEduVocExpression();
+    explicit QmVocExpression();
 
     /** Constructor for a vocabulary expression with one translation
      *
      * @param expression       translation
      * @param lesson           lesson number
      */
-    explicit KEduVocExpression( const QString & expression );
+    explicit QmVocExpression( const QString & expression );
 
     /** Constructor for a vocabulary expression with an original and one or more translations
      *
@@ -55,15 +62,15 @@ public:
      * @param separator        expression will be split into an original and one or more translations using separator
      * @param lesson           lesson number, 0 for none
      */
-    explicit KEduVocExpression( const QStringList & translations );
+    explicit QmVocExpression( const QStringList & translations );
 
-    KEduVocExpression(const KEduVocExpression& other);
+    QmVocExpression(const QmVocExpression& other);
 
-    ~KEduVocExpression();
+    ~QmVocExpression();
 
     /** return the lesson
      */
-    KEduVocLesson * lesson() const;
+    QmVocLesson * lesson() const;
 
 
     /** reset all grades of the entry
@@ -82,7 +89,7 @@ public:
     int sizeHint() const;
     void setSizeHint( int sizeHint );
 
-    void setTranslation( int index, KEduVocTranslation* translation );
+    void setTranslation( int index, QmVocTranslation* translation );
     /**
      * Add a translation to this expression
      * @param index            number of translation = the identifier
@@ -101,23 +108,23 @@ public:
      * @param index of the language identifier
      * @return the translation
      */
-    KEduVocTranslation* translation( int index );
-    KEduVocTranslation* translation( int index ) const;
+    QmVocTranslation* translation( int index );
+    QmVocTranslation* translation( int index ) const;
 
     QList<int> translationIndices() const;
 
-    KEduVocExpression& operator= ( const KEduVocExpression &expression );
-    bool operator== ( const KEduVocExpression &expression ) const;
+    QmVocExpression& operator= ( const QmVocExpression &expression );
+    bool operator== ( const QmVocExpression &expression ) const;
 
 private:
-    class KEduVocExpressionPrivate;
-    KEduVocExpressionPrivate* const d;
+    class QmVocExpressionPrivate;
+    QmVocExpressionPrivate* const d;
 
     /** only called by lesson to add itself to the lesson list
      */
-    void setLesson( KEduVocLesson * l );
+    void setLesson( QmVocLesson * l );
 
-    friend class KEduVocLesson;
+    friend class QmVocLesson;
 };
 
-#endif // KEduVocExpression_H
+#endif // QMVOCEXPRESSION_H