knewstuff.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KNEWSTUFF_H
00021 #define KNEWSTUFF_H
00022
00023 #include <qstring.h>
00024
00025 class QWidget;
00026
00027 namespace KNS {
00028 class Engine;
00029 class Entry;
00030 }
00031
00058 class KNewStuff
00059 {
00060 public:
00069 KNewStuff( const QString &type, QWidget *parentWidget = 0 );
00070
00080 KNewStuff( const QString &type, const QString &providerList, QWidget *parentWidget = 0 );
00081 virtual ~KNewStuff();
00082
00086 QString type() const;
00087
00091 QWidget *parentWidget() const;
00092
00096 void download();
00097
00101 void upload();
00102
00106 void upload( const QString &fileName, const QString previewName );
00107
00119 virtual bool install( const QString &fileName ) = 0;
00129 virtual bool createUploadFile( const QString &fileName ) = 0;
00130
00136 virtual QString downloadDestination( KNS::Entry *entry );
00137
00138 private:
00139 KNS::Engine *mEngine;
00140 };
00141
00142 #endif
This file is part of the documentation for knewstuff Library Version 3.3.0.