libkdeedu/keduvocdocument
keduvocpaukerreader.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 create a KEduVocDocument from a Pauker file 00003 ----------------------------------------------------------------------- 00004 copyright : (C) 2004, 2007 Peter Hedlund <peter.hedlund@kdemail.net> 00005 00006 ***************************************************************************/ 00007 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef KEDUVOCPAUKERREADER_H 00018 #define KEDUVOCPAUKERREADER_H 00019 00020 #include <QXmlStreamReader> 00021 00022 class QIODevice; 00023 class KEduVocDocument; 00024 00025 class KEduVocPaukerReader : public QXmlStreamReader 00026 { 00027 public: 00028 KEduVocPaukerReader( KEduVocDocument *doc ); 00029 00030 bool read( QIODevice *device ); 00031 00032 private: 00033 void readUnknownElement(); 00034 void readPauker(); 00035 void readBatch(); 00036 void readCard(); 00037 QString readText(); 00038 00039 KEduVocDocument *m_doc; 00040 }; 00041 00042 #endif
KDE 4.0 API Reference