libkdeedu/keduvocdocument
keduvoccsvreader.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 create a KEduVocDocument from a text file 00003 ----------------------------------------------------------------------- 00004 copyright : (C) 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 KEDUVOCCSVREADER_H 00018 #define KEDUVOCCSVREADER_H 00019 00020 #include <QString> 00021 00022 class QIODevice; 00023 00024 class KEduVocDocument; 00025 00026 class KEduVocCsvReader 00027 { 00028 public: 00029 KEduVocCsvReader( 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