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
00020
00021 #ifndef KNEWSTUFF2_ENGINE_H
00022 #define KNEWSTUFF2_ENGINE_H
00023
00024 #include <knewstuff2/core/entry.h>
00025
00026 namespace KNS
00027 {
00028
00029
00030 class EnginePrivate;
00031
00042 class KNEWSTUFF_EXPORT Engine
00043 {
00044 public:
00051 explicit Engine(QWidget* parent = 0);
00052
00058 ~Engine();
00059
00073 KNS::Entry::List downloadDialogModal(QWidget* parent = 0);
00074
00091 static KNS::Entry::List download();
00092
00102 KNS::Entry *uploadDialogModal(const QString& file);
00103
00117 static KNS::Entry *upload(const QString& file);
00118
00128 void downloadDialog();
00129
00139 void uploadDialog(const QString& file);
00140
00141 bool init(const QString& config);
00142
00143 private:
00144
00145 friend class EnginePrivate;
00146 EnginePrivate* const d;
00147 Q_DISABLE_COPY(Engine)
00148 };
00149
00150 }
00151
00152 #endif