00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef OMGSCRAPERPLUGINREGISTRY_H
00021 #define OMGSCRAPERPLUGINREGISTRY_H
00022
00023 #include "omgscraperplugininterface.h"
00024 #include <QMap>
00025
00026 class QString;
00027 class QStringList;
00032 class OMG_LIB_EXPORT OmgScraperPluginRegistry : public QObject
00033 {
00034 Q_OBJECT;
00035
00036 public:
00037
00039 static OmgScraperPluginRegistry * instance();
00043 const int count();
00044
00052 OmgScraperPluginInterface* getPlugin(QString thePluginName="");
00056 QStringList names();
00061 QMap<QString,QString> licenses();
00062 signals:
00063
00064
00065 protected:
00066
00068 OmgScraperPluginRegistry( QObject * parent = 0 );
00069
00070 private:
00071
00072 static OmgScraperPluginRegistry* mpInstance;
00073
00074 QMap<QString,OmgScraperPluginInterface*> mPluginsMap;
00075
00076
00077 };
00078
00079 #endif //OMGSCRAPERPLUGINREGISTRY_H
00080