KNewStuff
engine.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
00019 #ifndef KNEWSTUFF2_ENGINE_H
00020 #define KNEWSTUFF2_ENGINE_H
00021
00022 #include <knewstuff2/core/entry.h>
00023
00024 namespace KNS
00025 {
00026
00027
00028 class EnginePrivate;
00029
00040 class KNEWSTUFF_EXPORT Engine
00041 {
00042 public:
00049 explicit Engine(QWidget* parent = 0);
00050
00056 ~Engine();
00057
00072 KNS::Entry::List downloadDialogModal(QWidget* parent = 0);
00073
00090 static KNS::Entry::List download();
00091
00101 KNS::Entry *uploadDialogModal(const QString& file);
00102
00116 static KNS::Entry *upload(const QString& file);
00117
00126 void downloadDialog();
00127
00137 void downloadDialog(QObject * receiver, const char * slot);
00138
00148 void uploadDialog(const QString& file);
00149
00150 bool init(const QString& config);
00151
00152 private:
00153
00154 friend class EnginePrivate;
00155 EnginePrivate* const d;
00156 Q_DISABLE_COPY(Engine)
00157 };
00158
00159 }
00160
00161 #endif