]> Git trees. - libqmvoc.git/commitdiff
apidox
authorFrederik Gladhorn <gladhorn@kde.org>
Mon, 27 Aug 2007 14:47:32 +0000 (14:47 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Mon, 27 Aug 2007 14:47:32 +0000 (14:47 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705240

keduvocdocument/keduvocwordtype.h

index 5e0afcc17df4017292c863fed2b0e684d38a3b1d..a8a430dbafd9d3163eb8576306cecdd54219a8fe 100644 (file)
@@ -62,7 +62,7 @@ public:
 
 
     /**
-     * Same as above but for a sub word type (male/female/nutral for noun for example)
+     * Same as addType but for a sub word type (male/female/nutral for noun for example)
      * @param mainType The word type to which the subtype belongs.
      * @param typeName Sub type name
      * @param specialType See above
@@ -70,16 +70,48 @@ public:
      */
     void addSubType(const QString& mainType, const QString& typeName, const QString& specialType = QString(), const QString& specialTypeExplanation = QString());
 
+    /**
+     * Get a list of all known main word types.
+     * This can be for example: noun, verb, adjective...
+     * @return List of type names
+     */
     QStringList typeNameList() const;
-    QStringList subTypeNameList(const QString& mainType) const;
-
 
-//should we rather use strings instead of index below? yes probably...
+    /**
+     * Same as typeNameList for subtypes.
+     * Could be male, female, nutral for nouns.
+     * @param mainType The type whos subtypes are requested.
+     * @return The subtypes.
+     */
+    QStringList subTypeNameList(const QString& mainType) const;
 
+    /**
+     * Rename a type.
+     * @param oldTypeName Old name
+     * @param newTypeName New name
+     */
     void renameType( const QString& oldTypeName, const QString& newTypeName);
+    /**
+     * Rename a subtype.
+     * @param mainTypeName Main type
+     * @param oldTypeName Old name
+     * @param newTypeName New name
+     */
     void renameSubType( const QString& mainTypeName, const QString& oldTypeName, const QString& newTypeName);
 
+    /**
+     * Delete a type.
+     * Special types cannot be deleted.
+     * @param typeName name
+     * @return true if it was possible to delete the type
+     */
     bool removeType( const QString& typeName );
+    /**
+     * removeType for subtypes.
+     * @param mainTypeName main type
+     * @param typeName type name
+     * @return true if it was possible to delete the type
+     */
     bool removeSubType( const QString& mainTypeName, const QString& typeName );
 
     /**