00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef RECOGNISERFACTORY_H
00026 #define RECOGNISERFACTORY_H
00027
00028
00029 #include <QList>
00030 #include <QString>
00031
00032 #include <jni.h>
00033
00034 #include "sharedmacros.h"
00035
00036 class QByteArray;
00037 class QObject;
00038
00039 class AbstractRecogniser;
00040 class DigestDbModel;
00041
00042
00055 class RecogniserFactory {
00056
00057 public:
00058 static const QList<QByteArray>& keys();
00059 static AbstractRecogniser* create( const QByteArray& key,
00060 JavaVM* jvm,
00061 DigestDbModel* digestDbModel,
00062 QObject* parent = 0 );
00063 static QString title( const QByteArray& key );
00064 static QString description( const QByteArray& key );
00065
00066 static void loadPlugins( JavaVM* jvm );
00067 static void unloadPlugins();
00068 };
00069
00070
00071 #endif // ! RECOGNISERFACTORY_H