]> Git trees. - libqmvoc.git/commitdiff
readIdentifier fleshed out a bit, todo added
authorJeremy Paul Whiting <jpwhiting@kde.org>
Wed, 18 Jul 2007 02:52:24 +0000 (02:52 +0000)
committerJeremy Paul Whiting <jpwhiting@kde.org>
Wed, 18 Jul 2007 02:52:24 +0000 (02:52 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=689280

kdeeducore/keduvockvtml2reader.cpp
kdeeducore/kvtml2todo [new file with mode: 0644]

index 201c7185a8e478655fbcc86f9e2043a38ac6c161..809267c59e6754e2bdb3224a408d1e6e5c03a165 100644 (file)
@@ -250,7 +250,40 @@ bool KEduVocKvtml2Reader::readIdentifier(QDomElement &identifierElement)
   QDomElement currentElement = identifierElement.firstChildElement(KVTML_TYPE);
   if (!currentElement.isNull())
   {
-    
+    // TODO: do something with the type
+  }
+  
+  currentElement = identifierElement.firstChildElement(KVTML_LOCALE);
+  if (!currentElement.isNull())
+  {
+    // TODO: do something with the locale
+  }
+  
+  currentElement = identifierElement.firstChildElement(KVTML_NAME);
+  if (!currentElement.isNull())
+  {
+    // TODO: do something with the name
+  }
+  
+  currentElement = identifierElement.firstChildElement(KVTML_SIZEHINT);
+  if (!currentElement.isNull())
+  {
+    // TODO: do something with the sizehint
+  }
+  
+  // read sub-parts
+  currentElement = identifierElement.firstChildElement(KVTML_ARTICLE);
+  if (!currentElement.isNull())
+  {
+    readArticle(currentElement, id);
+  }
+  
+  currentElement = identifierElement.firstChildElement(KVTML_PERSONALPRONOUNS);
+  if (!currentElement.isNull())
+  {
+    KEduVocConjugation personalPronouns;
+    readConjug(currentElement, personalPronouns);
+    // TODO: do something with these personalpronouns
   }
   return result;
 }
diff --git a/kdeeducore/kvtml2todo b/kdeeducore/kvtml2todo
new file mode 100644 (file)
index 0000000..2b095f6
--- /dev/null
@@ -0,0 +1,11 @@
+Temporary todo for kvtml2
+
+reader:
+  read lessons
+  read translations
+  read translation sub-parts
+  store identifier sub-parts
+
+writer:
+  everything
+