]> Git trees. - libqmvoc.git/commitdiff
Add apidox.
authorFrederik Gladhorn <gladhorn@kde.org>
Sun, 17 Jun 2007 20:16:01 +0000 (20:16 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Sun, 17 Jun 2007 20:16:01 +0000 (20:16 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=676834

kdeeducore/keduvoctranslation.cpp
kdeeducore/keduvoctranslation.h

index 107ac6e245eba5cd5c6cda0ac642fff05f9d139d..a80763c018576c4c094ce1ec41a07a4d011fd7db 100644 (file)
@@ -13,7 +13,6 @@
  *                                                                         *
  ***************************************************************************/
 
-//#include "keduvocexpression.h"
 
 #include "keduvoctranslation.h"
 #include <KDebug>
@@ -324,19 +323,6 @@ void KEduVocTranslation::setQueryDate (  int indexFrom, const QDateTime & date )
 }
 
 
-// bool KEduVocTranslation::uniqueType() const
-// { ///@todo what is this??? I have no clue... help!
-// /*
-//     bool unique = true;
-//     QString type0 = type ( 0 );
-//     for ( int i = 1; i < translationCount(); i++ )
-//         if ( type0 != type ( i ) )
-//             unique = false;
-//     return unique; */
-//     return false;
-// }
-//
-
 QString KEduVocTranslation::type() const
 {
     return m_types;
index ea6e247be4040db8d82edb9a8fc92baf1e6e37b2..957180f967a0364f57eb55ae12f31fca0b42106b 100644 (file)
 class KDEEDUCORE_EXPORT KEduVocTranslation
 {
 public:
+    /**
+     * Default constructor for an empty translation.
+     */
     KEduVocTranslation( );
+    /**
+     * Constructor
+     * @param translation is used as translation
+     */
     KEduVocTranslation( const QString &translation );
 
+    /**
+     * Destructor
+     */
     ~KEduVocTranslation();
 
+    /**
+     * The translation as string (the word itself)
+     * @return the translation
+     */
     QString translation () const;
+    /**
+     * Sets the translation
+     * @param expr
+     */
     void setTranslation ( const QString & expr );
 
 
+    /**
+     * Clears grading and date information.
+     */
     void resetGrades();
 
 
@@ -168,13 +189,6 @@ public:
    */
   QString type() const;
 
-/// @todo is this still needed? if so rather in KEduVocExpression
-//   /** all langs have same type ?
-//    *
-//    * @return                 true if all have same type
-//    */
-//   bool uniqueType () const;
-
  /** sets type of this expression
    *
    * @param index            index of type
@@ -319,7 +333,17 @@ public:
    */
   void incQueryCount( int indexFrom );
 
+    /**
+     * Equal operator to assing a translation to another one.
+     * @param translation translation to be copied
+     * @return reference to the new translation
+     */
     KEduVocTranslation& operator=(const KEduVocTranslation &translation);
+    /**
+     * Compare two translations, including word type etc.
+     * @param translation
+     * @return true if equal
+     */
     bool operator==(const KEduVocTranslation &translation) const;
 
 private: