This directory contains the framework for KBabel to be easily extensible with
plugins for searching translations.

For an examples of modules see subdirectory "modules".


Here is a short description, how to write an module:

First off all, the module must inherit the interface class SearchEngine and
has to implement all the virtual functions in there. Also a preferences
widget must be available, that has to inherit from PrefWidget.
Just include searchengine.h to have everything necessary available.

Then you module has to be compiled as shared library and there must be a
factory available, so that it can be loaded with KLibLoader. See 
documentation of KLibLoader for more details. At last you have to install
a modules file into $PREFIX/share/apps/kbabeldict/modules
This file must have the name <modulname>.rc and the following content:

[SearchEngine]
Name=<modulename>
Lib=<libname>

where <modulename> has to be replaced with the untranslated name of the module
and <libname> the name of the shared library, that contains your SearchEngine,
for example "libpocompendium".
Additionally you can add a list of applications, to them your module is 
restricted to with "Applications=<list>"
For example with "Applications=kbabel" your module will only be used in KBabel.


