support for "script KCMs" in libkutils

Matthias Kretz kretz at kde.org
Mon Jul 9 21:26:55 BST 2007


Hi,

another patch, inspired by a request from Simon Edwards:
> For KDE4 I would like to be able to write KControl modules in Python (or
> Ruby etc), without having to generate a small C++ *.so module for each
> Python KControl module like I've had to do with KDE3. For Python you want to
> have one universal *.so module that can embed the Python interpreter, and
> load and run the requested KControl module script.

This patch only adds a new interface, a specialized KLibFactory that creates 
KCModule objects. The factory is passed the KCModuleInfo object so it has 
access to all the information in the .desktop file.

Ok to commit?

-- 
________________________________________________________
Matthias Kretz (Germany)                            <><
http://Vir.homelinux.org/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kcmodulefactory.patch
Type: text/x-diff
Size: 4203 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070709/5eb7ebda/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070709/5eb7ebda/attachment.sig>


More information about the kde-core-devel mailing list