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