]> Git trees. - libqmvoc.git/commitdiff
adapt qmvoctext.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, 15 Dec 2012 18:08:17 +0000 (20:08 +0200)
qmvoctext.h

index 1d196c2885f72f17fe0bd79e0d35b15afa082c8c..0190d0f5c0441f549efd6b7f818103684750b982 100644 (file)
@@ -1,5 +1,10 @@
+/***************************************************************************
+*   this file is from kdeedu project. Filename: keduvoctext.h
+***************************************************************************/
+
 /***************************************************************************
     Copyright 2007-2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
+    Copyright (C) 2010, 2012 Reto Zingg <g.d0b3rm4n@gmail.com>
  ***************************************************************************/
 
 /***************************************************************************
  *                                                                         *
  ***************************************************************************/
 
-#ifndef KEDUVOCTEXT_H
-#define KEDUVOCTEXT_H
+#ifndef QMVOCTEXT_H
+#define QMVOCTEXT_H
 
-#include "libkeduvocdocument_export.h"
+#include "libqmvocdocument_export.h"
 #include <QtCore/QDateTime>
 
 
@@ -56,20 +61,20 @@ class QDomElement;
  * This should be used instead of strings for all things that can be tested and thus get a grade.
  @author Frederik Gladhorn <frederik.gladhorn@kdemail.net>
 */
-class KEDUVOCDOCUMENT_EXPORT KEduVocText
+class QMVOCDOCUMENT_EXPORT QmVocText
 {
 public:
     /** default constructor */
-    KEduVocText(const QString& text = QString());
+    QmVocText(const QString& text = QString());
 
     /** copy constructor
      * provides safe copy of d pointer
      * @param other object to copy from
      */
-    KEduVocText( const KEduVocText &other );
+    QmVocText( const QmVocText &other );
 
     /** default destructor */
-    ~KEduVocText();
+    ~QmVocText();
 
     /**
      * The translation as string (the word itself)
@@ -88,13 +93,13 @@ public:
      * @param other grades copied
      * @return reference to the new grades
      */
-    KEduVocText& operator= ( const KEduVocText &other );
+    QmVocText& operator= ( const QmVocText &other );
     /**
      * Compare two sets of grades.
      * @param other
      * @return true if equal
      */
-    bool operator== ( const KEduVocText &other ) const;
+    bool operator== ( const QmVocText &other ) const;
 
 
     /** returns how often this entry has been practiced as int
@@ -163,8 +168,8 @@ public:
     void toKVTML2(QDomElement& parent);
 
 private:
-    class KEduVocTextPrivate;
-    KEduVocTextPrivate * const d;
+    class QmVocTextPrivate;
+    QmVocTextPrivate * const d;
 };
 
 #endif