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

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


-----BEGIN PGP SIGNED MESSAGE-----
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 mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2-beta2 is coming very shortly...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD4DBQE9Et2P72KcVAmwbhARAjNgAJ9Cfuwi3sKJzKkz1FteCM7fStI1QwCWKVR0
spZR5LoYVSElCWPha7Vn0Q==
=yXD1
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list