• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

libkdeedu/keduvocdocument

  • sources
  • kde-4.12
  • kdeedu
  • libkdeedu
  • keduvocdocument
keduvockvtml2reader.h
Go to the documentation of this file.
1 /***************************************************************************
2  read a KEduVocDocument from a KVTML2 file
3  -----------------------------------------------------------------------
4  copyright : (C) 2007 Jeremy Whiting <jpwhiting@kde.org>
5  Copyright 2007-2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
6  ***************************************************************************/
7 
8 /***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #ifndef KEDUVOCKVTML2READER_H
18 #define KEDUVOCKVTML2READER_H
19 
20 #include <QtXml/QDomDocument>
21 #include <QList>
22 
23 #include "keduvocexpression.h"
24 #include "keduvocpersonalpronoun.h"
25 #include "keduvocarticle.h"
26 #include "keduvocmultiplechoice.h"
27 
28 class QIODevice;
29 class KEduVocDocument;
30 class KEduVocWordType;
31 
36 class KEduVocKvtml2Reader : public QObject
37 {
38  Q_OBJECT
39 public:
43  KEduVocKvtml2Reader( QIODevice *file );
44 
48  bool readDoc( KEduVocDocument *doc );
49 
53  QString errorMessage() const
54  {
55  return m_errorMessage;
56  }
57 
58 private:
62  bool readInformation( QDomElement &informationElement );
63 
65  bool readGroups( QDomElement &domElementParent );
66 
70  bool readIdentifier( QDomElement &identifierElement );
71 
76  bool readArticle( QDomElement &articleElement, int identifierNum );
77 
78  bool readPersonalPronoun( QDomElement &conjugElement, KEduVocPersonalPronoun &pronoun );
79 
80  bool readPersonalPronounChild(QDomElement & personElement, KEduVocPersonalPronoun &pronoun, KEduVocWordFlags flags);
81 
85  bool readWordType( KEduVocWordType* parentContainer, QDomElement &typesElement );
86 
96  bool readLeitner( KEduVocLeitnerBox* parentContainer, QDomElement &leitnerElement );
97 
104  bool readChildWordTypes( KEduVocWordType* parentContainer, QDomElement &lessonElement );
105 
109  QStringList readTenses( QDomElement &tensesElement );
110 
114  bool readUsages( QDomElement &usagesElement );
115 
119  bool readEntry( QDomElement &entryElement );
120 
124  bool readTranslation( QDomElement &translationElement, KEduVocExpression *expr, int index );
125 
130  bool readComparison( QDomElement &comparisonElement, KEduVocTranslation *translation );
131 
136  bool readMultipleChoice( QDomElement &multipleChoiceElement, KEduVocTranslation* translation );
137 
144  bool readChildLessons( KEduVocLesson* parentLesson, QDomElement &lessonElement );
145 
149  bool readLesson( KEduVocLesson* parentLesson, QDomElement &lessonElement );
150 
151  bool readSynonymsAntonymsFalseFriends( QDomElement &rootElement );
152 
154  QIODevice *m_inputFile;
155 
157  KEduVocDocument *m_doc;
158 
161  QMap<int, KEduVocExpression*> m_allEntries;
162 
164  QString m_errorMessage;
165 };
166 
167 #endif
keduvocpersonalpronoun.h
keduvocexpression.h
KEduVocLesson
class to store information about a lesson
Definition: keduvoclesson.h:27
QObject
KEduVocLeitnerBox
Leitner Boxes are an alternative grading system.
Definition: keduvocleitnerbox.h:31
KEduVocPersonalPronoun
The conjugation of a verb.
Definition: keduvocpersonalpronoun.h:25
KEduVocWordType
class to store translation word types
Definition: keduvocwordtype.h:33
KEduVocKvtml2Reader::readDoc
bool readDoc(KEduVocDocument *doc)
read the document
Definition: keduvockvtml2reader.cpp:48
KEduVocTranslation
Definition: keduvoctranslation.h:35
keduvocmultiplechoice.h
KEduVocExpression
This class contains one vocabulary expression as an original with one or more translations.
Definition: keduvocexpression.h:37
KEduVocKvtml2Reader::KEduVocKvtml2Reader
KEduVocKvtml2Reader(QIODevice *file)
default constructor
Definition: keduvockvtml2reader.cpp:38
KEduVocDocument
This class contains the expressions of your vocabulary as well as other information about the vocabul...
Definition: keduvocdocument.h:44
KEduVocKvtml2Reader
class to read kvtml2 data files into keduvocdocument
Definition: keduvockvtml2reader.h:36
keduvocarticle.h
KEduVocKvtml2Reader::errorMessage
QString errorMessage() const
get the errormessage string
Definition: keduvockvtml2reader.h:53
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:37:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdeedu/keduvocdocument

Skip menu "libkdeedu/keduvocdocument"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal