RFC: a replacement for KPluginLoader

Friedrich W. H. Kossebau kossebau at kde.org
Sat May 4 15:38:36 UTC 2013


Am Samstag, 4. Mai 2013, 17:06:21 schrieb David Faure:
> About KPluginFactory: registerPlugin is always used, it's the only way to
> declare your plugin class to the macro. The reason for that strange api
> though, was to be able to have multiple classes in one plugin, identified by
> a keyword (= fixed string). This is mostly used by KCM modules, so that
> multiple pages (instanciatable separately) can be provided by a single
> plugin file.

Being able to (optionally) bundle many class( factori)es in one plugin 
(=module/lib) might be possibly also needed for platforms which have 
restrictions on the number of libs an app can use/load, like Android IIUC 
(beware, no real knowledge here myself, only hear-say, real experts need to 
comment on this).

Cheers
Friedrich


More information about the Kde-frameworks-devel mailing list