• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

filesource.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           filesource.h  -  description
00003                              -------------------
00004     begin                : Son Feb 10 2002
00005     copyright            : (C) 2002 by Thomas Kabelmann
00006     email                : tk78@gmx.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 FILESOURCE_H
00019 #define FILESOURCE_H
00020 
00030 #include <qasyncio.h>
00031 #include <qstring.h>
00032 
00033 class KStarsData;
00034 class KSFileReader;
00035 
00036 class FileSource : public QDataSource  {
00037 
00038     public:
00041         FileSource( KStarsData *ksdata, float magnitude );
00042 
00044         ~FileSource();
00045     
00049         int readyToSend();
00050 
00054         bool rewindable() { return false; }
00055         
00061         void sendTo( QDataSink *sink, int );
00062 
00065         float magnitude() { return maxMagnitude; }
00066         
00067     private:
00068 
00069         bool readingData;
00070 
00071         KSFileReader *fileReader;
00072 
00073         // which sao file should be opened and which line
00074         int fileNumber, lineNumber;
00075 
00076         // counts blocksize
00077         int counter;
00078 
00079         // new magnitude to load
00080         float maxMagnitude;
00081 
00082         KStarsData *data;
00083 
00096         #define maxLines 500
00097     
00101         QString stringArray[ maxLines ];
00102 
00103 };
00104 
00105 #endif

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal