moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kstars / kstars / ksnewstuff.h
blobf647100c5fa9a61aa372a16e6ac990b733031817
1 /***************************************************************************
2 ksnewstuff.h - description
3 -------------------
4 begin : Wed 21 May 2004
5 copyright : (C) 2004 by Jason Harris
6 email : kstars@30doradus.org
7 ***************************************************************************/
9 /***************************************************************************
10 * *
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. *
15 * *
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
22 *the program.
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.
25 *@author Jason Harris
26 *@version 1.0
29 #ifndef KSNEWSTUFF_H
30 #define KSNEWSTUFF_H
32 #include <kdeversion.h>
34 #if KDE_IS_VERSION( 3, 2, 90 )
36 #include <klocale.h>
37 #include <kdebug.h>
38 #include <qobject.h>
40 #include <knewstuff/knewstuff.h>
42 class KDirWatch;
43 class KStars;
45 class KSNewStuff : public QObject, public KNewStuff
47 Q_OBJECT
48 public:
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!" );
54 return false;
57 public slots:
58 void updateData( const QString &newFile );
60 private:
61 KDirWatch *kdw;
62 KStars *ks;
65 #endif // KDE >= 3.2.90
66 #endif // KSNEWSTUFF_H