[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegraphics/kfile-plugins/dvi
From: Jos van den Oever <jos () vandenoever ! info>
Date: 2007-03-13 22:22:42
Message-ID: 1173824562.873281.22899.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 642306 by vandenoever:
Add a FactoryFactory, otherwise the plugin will not be picked up.
M +16 -2 dvithroughanalyzer.cpp
--- trunk/KDE/kdegraphics/kfile-plugins/dvi/dvithroughanalyzer.cpp #642305:642306
@@ -18,7 +18,9 @@
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
+#define STRIGI_IMPORT_API
#include <strigi/jstreamsconfig.h>
+#include <strigi/analyzerplugin.h>
#include <strigi/streamthroughanalyzer.h>
#include <strigi/indexable.h>
#include <strigi/cnstr.h>
@@ -28,7 +30,7 @@
using namespace std;
class DviThroughAnalyzerFactory;
-class DviThroughAnalyzer : public StreamThroughAnalyzer {
+class STRIGI_PLUGIN_API DviThroughAnalyzer : public StreamThroughAnalyzer {
private:
Indexable* indexable;
const DviThroughAnalyzerFactory* factory;
@@ -41,7 +43,7 @@
bool isReadyWithStream() { return true; }
};
-class DviThroughAnalyzerFactory : public StreamThroughAnalyzerFactory {
+class STRIGI_PLUGIN_API DviThroughAnalyzerFactory : public StreamThroughAnalyzerFactory {
friend class DviThroughAnalyzer;
private:
const char* getName() const {
@@ -93,3 +95,15 @@
return in;
}
+
+class Factory : public AnalyzerFactoryFactory {
+public:
+ list<StreamThroughAnalyzerFactory*>
+ getStreamThroughAnalyzerFactories() const {
+ list<StreamThroughAnalyzerFactory*> af;
+ af.push_back(new DviThroughAnalyzerFactory());
+ return af;
+ }
+};
+
+STRIGI_ANALYZER_FACTORY(Factory)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic