FolderParser.h

Go to the documentation of this file.
00001 #ifndef FOLDER_PARSER_H
00002 #define FOLDER_PARSER_H
00003 
00004 #include <iostream.h>
00005 #include <qfile.h>
00006 #include <qmessagebox.h>
00007 #include <qstring.h>
00008 #include <qxml.h>
00009 #include <stdlib.h>
00010 #include <string.h>
00011 #include "Folder.h"
00012 
00013 class FolderParser : public QXmlDefaultHandler {
00014 
00015 public:
00016 
00017     FolderParser( Folder& vocabulary, const QString& location );
00018     bool startDocument();
00019     bool startElement( const QString&, const QString&, const QString&, const QXmlAttributes& attribs );
00020     bool characters( const QString& characters );
00021     bool endElement( const QString&, const QString&, const QString& qname );
00022     bool endDocument();
00023 
00024     bool fatalError( const QXmlParseException& exception );
00025 
00026     bool isVocabularyFile();
00027 
00028 private:
00029 
00030     QString desc;
00031 
00032     QString tempCh;
00033     bool mustKeepText;
00034 
00035     Folder& folder;
00036     bool isFolderFile;
00037     const QString& location;
00038 
00039 };
00040 
00041 #endif

Generated on Sun Mar 1 17:30:47 2009 for toMOTko by  doxygen 1.5.6