Update to new plugin approach.

svn path=/trunk/kdesupport/qca/; revision=393981
This commit is contained in:
Brad Hards 2005-03-01 02:59:18 +00:00
parent 84964053c9
commit 1bb8a9b13c
2 changed files with 22 additions and 6 deletions

View File

@ -17,9 +17,10 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#include "QtCrypto/qcaprovider.h"
#include <QtCrypto>
#include <QtCore>
#include <qstringlist.h>
#include <iostream>
#include <botan/rng.h>
#include <botan/md2.h>
@ -442,4 +443,16 @@ public:
}
};
QCA_EXPORT_PLUGIN(botanProvider);
class botanPlugin : public QCAPlugin
{
Q_OBJECT
public:
virtual int version() const { return QCA_PLUGIN_VERSION; }
virtual QCA::Provider *createProvider() { return new botanProvider; }
};
#include "qca-botan.moc"
Q_EXPORT_PLUGIN(botanPlugin);

View File

@ -1,12 +1,15 @@
TEMPLATE = lib
CONFIG += qt thread debug plugin
#CONFIG += qt thread release plugin
QT -= gui
TARGET = qca-botan
DEFINES += QCA_PLUGIN
INCLUDEPATH += ../../include
INCLUDEPATH += ../../include/QtCrypto
SOURCES = qca-botan.cpp
include(conf.pri)
include(extra.pri)
#temp hack until build system is fixed
#include(conf.pri)
#include(extra.pri)
LIBS += -L/usr/lib -lm -lpthread -lrt -lbotan