Plugin loader (was: Re: "get hot new stuff" button)

David Faure david at
Fri Jun 21 09:02:22 BST 2002

Hash: SHA1

On Friday 21 June 2002 09:54, Cornelius Schumacher wrote:
> On Friday 21 June 2002 08:02, David Faure wrote:
> > On Thursday 20 June 2002 23:56, Cornelius Schumacher wrote:
> > > By the way, how many different plugin loading frameworks do we have in
> > > KDE?
> >
> > Only one and it's called KLibLoader+KTrader ;)
> I know about them ;-) Of course you can build a plugin loader on top of these 
> classes, but it requires additional code which is similar in all apps using 
> plugins. What I'm missing is something which would it make possible to write 
> plugin loading code like this:
> PluginLoader<SomeClass> loader;
> PluginInfo::List list = loader.availablePlugins();
> SomeClass *plugin = loader.load( list[1] );
> QPtrList<SomeClass> pluginList = loader.loadAll();
> This would hide ugly things like passing around library names or casting 
> factory classes to the right type.

Sorry, I forgot to mention KParts::ComponentFactory, which is exactly what you want.

- -- 
David FAURE, david at, faure at
Contributing to:,
KOffice-1.2-beta2 is coming very shortly...
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see


More information about the kde-core-devel mailing list