1 /***************************************************************************
2 stardatasink.h - description
4 begin : Son Feb 10 2002
5 copyright : (C) 2002 by Thomas Kabelmann
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
18 #ifndef STARDATASINK_H
19 #define STARDATASINK_H
22 /**@class StarDataSink
23 *StarDataSink receives data from an FileSource object and appends these data
24 *to a QList of star data. It's an asynchronous io class.
25 *@author Thomas Kabelmann
36 class StarDataSink
: public QObject
, public QDataSink
{
44 StarDataSink( KStarsData
*parent
, const char *name
=0 );
49 /** is this object ready to receive data? */
52 /** end of data transmission reached */
56 *This function receives data from FileSource and appends data
57 *to some lists in KStarsData.
59 void receive( const uchar
*data
, int entries
);
65 // has objectnamelist changed while reloading?
68 // counts the number of blocks
74 *send signal if all data were transmitted
79 *send signal to update skymap time by time
80 *just for long data transmissions needed.
85 *If name list has changed emit this signal.