KLibLoader Issue

Marc Mutz Marc.Mutz at uni-bielefeld.de
Sun Apr 27 20:46:40 BST 2003


On Saturday 26 April 2003 22:31, Raimundo Bilbao wrote:
> Hi,
> 	I'm something new to the KDE world so sorry if this question was
> previously asked, but I need to know before we start to construct al
> alternative patch for this,  if is possible to KLibloader to resolve
> de dependecies of dynamic libraries among them and load
> _automagically_ .
>
> 	We are developing a KDE/ERP and for that arquitecture we need
> dynamic modules and they be resolv on-fly by the loader (much like
> java applet's package concept! ).
<snip>

You need to define an interface for each component type that you want to 
be automatically loadable. Then provide a factory for each. The factory 
can mostly be cut'n'pasted from kdelibs/kabc/*factory.cpp

I've templatized the kabc classes, see attached files.

Marc

-- 
Ich gegen meinen Bruder.
Ich und mein Bruder gegen unseren Cousin.
Ich, mein Bruder und unser Cousin gegen unsere Nachbarn.
Wir alle gegen den Fremden.
                                      -- Beduinen-Sprichwort
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pluginloader.h
Type: text/x-chdr
Size: 4327 bytes
Desc: Templatized plugin loader
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030427/d56ed112/attachment.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pluginloaderbase.h
Type: text/x-chdr
Size: 2350 bytes
Desc: Common base class for templatized plugin loader
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030427/d56ed112/attachment-0001.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pluginloaderbase.cpp
Type: text/x-c++src
Size: 4184 bytes
Desc: Common base class for templatized plugin loader
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030427/d56ed112/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030427/d56ed112/attachment.sig>


More information about the kde-core-devel mailing list