kstars
stardatasink.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef STARDATASINK_H
00019 #define STARDATASINK_H
00020
00021
00029 #include <qobject.h>
00030 #include <qasyncio.h>
00031
00032 #include <qglobal.h>
00033
00034 class KStarsData;
00035
00036 class StarDataSink : public QObject, public QDataSink {
00040 Q_OBJECT
00041
00042 public:
00044 StarDataSink( KStarsData *parent, const char *name=0 );
00045
00047 ~StarDataSink();
00048
00050 int readyToReceive();
00051
00053 void eof();
00054
00059 void receive( const uchar *data, int entries );
00060
00061 private:
00062
00063 KStarsData *ksData;
00064
00065
00066 uint nameListCount;
00067
00068
00069 uint receivedBlocks;
00070
00071 signals:
00072
00076 void done();
00077
00082 void updateSkymap();
00083
00087 void clearCache();
00088 };
00089
00090 #endif