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
00127 void downloadDialog();
00128
00138 void uploadDialog(const QString& file);
00139
00140 bool init(const QString& config);
00141
00142 private:
00143
00144 friend class EnginePrivate;
00145 EnginePrivate* const d;
00146 Q_DISABLE_COPY(Engine)
00147 };
00148
00149 }
00150
00151 #endif