1 /***************************************************************************
2 ksnewstuff.h - description
4 begin : Wed 21 May 2004
5 copyright : (C) 2004 by Jason Harris
6 email : kstars@30doradus.org
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 /**@class NewStuff class for KStars
19 *Subclass of KNewStuff, which provides a GUI for downloading extra
20 *application data from the internet. The KStars version is cutomized to
21 *parse the newly downloaded data and incorporate it immediately into
23 *@note This class is only compiled if the user has KDE >= 3.2.90, because
24 *earlier versions of KDE did not have KNewStuff.
32 #include <kdeversion.h>
34 #if KDE_IS_VERSION( 3, 2, 90 )
40 #include <knewstuff/knewstuff.h>
45 class KSNewStuff
: public QObject
, public KNewStuff
49 KSNewStuff( QWidget
*parent
= 0 );
50 bool install( const QString
&fileName
);
52 bool createUploadFile( const QString
& /*fileName*/ ) {
53 kdDebug() << i18n( "Uploading data is not possible yet!" );
58 void updateData( const QString
&newFile
);
65 #endif // KDE >= 3.2.90
66 #endif // KSNEWSTUFF_H