]> Git trees. - libqmvoc.git/commitdiff
adapt qmvocdeclension.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 17:28:48 +0000 (19:28 +0200)
qmvocdeclension.h

index 3ac3f3de2f08797a136a0274910ec2ba9c08d560..4f8d3e5ea6fa7afa657ad0086cc46418cb716155 100644 (file)
@@ -1,12 +1,17 @@
 /***************************************************************************
+*   this file is from kdeedu project. Filename: keduvocdeclension.h
+***************************************************************************/
 
-    C++ Interface: keduvocdeclension
+/***************************************************************************
+
+    C++ Interface: qmvocdeclension
 
     -----------------------------------------------------------------------
 
     begin         : Do Sep 20 2007
 
     copyright     : (C) 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
+    Copyright     : (C) 2010, 2012 Reto Zingg <g.d0b3rm4n@gmail.com>
 
     -----------------------------------------------------------------------
 
  *   (at your option) any later version.                                   *
  *                                                                         *
  ***************************************************************************/
-#ifndef KEDUVOCDECLENSION_H
-#define KEDUVOCDECLENSION_H
+#ifndef QMVOCDECLENSION_H
+#define QMVOCDECLENSION_H
 
-#include "libkeduvocdocument_export.h"
+#include "libqmvocdocument_export.h"
 
-#include "keduvoctext.h"
-#include "keduvocwordflags.h"
+#include "qmvoctext.h"
+#include "qmvocwordflags.h"
 
 /**
 A declension contains all forms that a NOUN possibly can have.
 
        @author Frederik Gladhorn <frederik.gladhorn@kdemail.net>
 */
-class KEDUVOCDOCUMENT_EXPORT KEduVocDeclension{
+class QMVOCDOCUMENT_EXPORT QmVocDeclension{
 public:
 
     /**
      * The constructor without arguments
      */
-    explicit KEduVocDeclension();
+    explicit QmVocDeclension();
 
     /** copy constructor
      * @param other comparison object to copy
      */
-    KEduVocDeclension( const KEduVocDeclension &other );
+    QmVocDeclension( const QmVocDeclension &other );
 
-    ~KEduVocDeclension();
+    ~QmVocDeclension();
 
     /** equality operator
      * @param a object to compare to
      * @returns true if comparisons are the same, false otherwise
      */
 //     will probably not be necessary
-//     bool operator == ( const KEduVocDeclension& a ) const;
+//     bool operator == ( const QmVocDeclension& a ) const;
 
     /** assignment operator for d-pointer copying
      * @param other object to copy from
      * @returns reference to this object
      */
-    KEduVocDeclension& operator= ( const KEduVocDeclension& other );
+    QmVocDeclension& operator= ( const QmVocDeclension& other );
 
     /**
      * The grammatical number, there is singular and plural for english, some languages have dual for exactly two items.
@@ -67,7 +72,7 @@ public:
      * @param decCase
      * @return
      */
-    KEduVocText& declension(KEduVocWordFlags flags);
+    QmVocText& declension(QmVocWordFlags flags);
 
     /**
      * Set a declension
@@ -75,7 +80,7 @@ public:
      * @param number
      * @param decCase
      */
-    void setDeclension(const KEduVocText& declension, KEduVocWordFlags flags);
+    void setDeclension(const QmVocText& declension, QmVocWordFlags flags);
 
     bool isEmpty();
 
@@ -91,7 +96,7 @@ public:
      * @param parent
      * @return
      */
-    static KEduVocDeclension* fromKVTML2(QDomElement& parent);
+    static QmVocDeclension* fromKVTML2(QDomElement& parent);
 
 private:
     class Private;