kstars
ksfilereader.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 ksfilereader.h - description 00003 ------------------- 00004 begin : Tue Jan 28 2003 00005 copyright : (C) 2003 by Heiko Evermann 00006 email : heiko@evermann.de 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 KSFILEREADER_H 00019 #define KSFILEREADER_H 00020 00021 #include <qobject.h> 00022 #include <qstringlist.h> 00023 00032 class QFile; 00033 class QString; 00034 00035 class KSFileReader : public QObject { 00036 Q_OBJECT 00037 public: 00041 KSFileReader( QFile& file); 00042 00044 ~KSFileReader(); 00045 00048 bool hasMoreLines(); 00049 00053 QString& readLine(); 00054 00058 bool setLine(int i); 00059 00060 private: 00062 QStringList lines; 00064 int numLines; 00066 int curLine; 00067 }; 00068 00069 #endif