/home/jon/Projects/gibberish/src/include/VocabularyParser.h

00001 /******************************************************************************
00002  *
00003  * This file is part of Gibberish.
00004  *
00005  * Gibberish is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  * 
00010  * Gibberish is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU General Public License
00016  * along with Foobar; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018  *
00019  *****************************************************************************/
00020 
00021 #ifndef _H_VOCABULARY_XML_PARSER
00022 #define _H_VOCABULARY_XML_PARSER
00023 
00024 #include <QIODevice>
00025 #include <QDomElement>
00026 
00027 #include "Questions.h"
00028 
00037 class VocabularyParser
00038 {
00039         public:
00040                 VocabularyParser( QString nLang, QString fLang );
00041 
00042                 void parse( QIODevice* device, Questions* lQuestions );
00043 
00044         private:
00045                 QString nativeLang;
00046                 QString foreignLang;
00047                 void parseWords( const QDomElement &element );
00048                 void parseEntry( const QDomElement &element );
00049                 
00050                 Questions* lQuestions;
00051                 
00052 };
00053 
00054 #endif

Generated on Sat Sep 16 21:02:41 2006 for Gibberish by  doxygen 1.4.6