Review Request 112680: KPluginTrader: QPluginLoader/metadata-based querying of Plugins
David Faure
faure at kde.org
Fri Sep 13 07:48:23 UTC 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112680/#review39939
-----------------------------------------------------------
Ship it!
... after these docu fixes
staging/kservice/src/plugin/kplugintrader.h
<http://git.reviewboard.kde.org/r/112680/#comment29483>
return inside foreach() is going to break the loop :-)
Just leave a comment here, remove the statement.
staging/kservice/src/plugin/kplugintrader.h
<http://git.reviewboard.kde.org/r/112680/#comment29484>
swap with previous line
staging/kservice/src/plugin/kplugintrader.h
<http://git.reviewboard.kde.org/r/112680/#comment29485>
swap
staging/kservice/src/plugin/kplugintrader.h
<http://git.reviewboard.kde.org/r/112680/#comment29486>
move up by 3 lines :)
staging/kservice/src/plugin/kplugintrader.cpp
<http://git.reviewboard.kde.org/r/112680/#comment29487>
prepend "static"
(file-static == no symbol == good)
- David Faure
On Sept. 12, 2013, 9:15 p.m., Sebastian Kügler wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/112680/
> -----------------------------------------------------------
>
> (Updated Sept. 12, 2013, 9:15 p.m.)
>
>
> Review request for KDE Frameworks and David Faure.
>
>
> Description
> -------
>
> A trader interface (similar to the CORBA Trader), which provides a way query specific subdirectories in the Qt plugin paths for plugins. KPluginTrader provides an easy way to load a plugin instance from a KPluginFactory, just querying for existing plugins.
>
> KPluginTrader provides a way for an application to query directories in the Qt plugin paths, accessed through QCoreApplication::libraryPaths(). Plugins may match a specific set of requirements. This allows to find specific plugins at run-time without having to hard-code their names and/or paths. KPluginTrader does not search recursively, you are rather encouraged to install plugins into specific subdirectories to further speed searching.
>
> KPluginTrader exclusively searches within the plugin binaries' metadata (via QPluginLoader::metaData()). It does not search these directories recursively and it does not use KServiceTypeTrader or KSyCoCa. Currently, no caching is done, this should/will be implemented separately on top of this patch.
>
> The implementation is losely based on KServiceTypeTrader, meant for easy porting.
>
> Code, along with other needed patches can be found in kdelibs[sebas/pluginlocator].
>
>
> Diffs
> -----
>
> staging/kservice/src/plugin/kplugintrader.h PRE-CREATION
> staging/kservice/src/plugin/kplugintrader.cpp PRE-CREATION
>
> Diff: http://git.reviewboard.kde.org/r/112680/diff/
>
>
> Testing
> -------
>
> - A whole bunch of newly written unit tests pass, to be submitted separately
> - Ported Plasma::PluginLoader's dataengine handling, it works without apparent regressions
>
>
> Thanks,
>
> Sebastian Kügler
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20130913/e319a999/attachment.html>
More information about the Kde-frameworks-devel
mailing list