[Kommander-devel] [PATCH] Enable plugins to register DCOP
functions via SpecialInformation interface
Fabian Franz
FabianFranz at gmx.de
Thu Nov 9 20:20:49 EST 2006
> It works as follows. In your plugin do:
>
> SpecialInformation::insert(TableFunction::adjustColumn,
> "adjustColumn(QString widgetName, int col)", "Adjusts column col to fit.");
> SpecialInformation::addDCOP(TableFunction::adjustColumn, "void");
>
> Patch is against kommander-1.3.0.
>
> Please apply.
New patch attached.
I forgot to check, if the function was actually added via addDCOP and has a replyType != "".
The patch before did expose all functions to be accessable via DCOP, but a widget might choose to not publish its functions via DCOP.
(And besides it gives problems with old plugins as the replyType cannot be found out from process if it is not set explicitely ...)
Its a two line change to previouis patch, but I guess it is easier if I attach it again completely.
Please apply.
cu
Fabian
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kommander-dcop-for-plugins-secure.diff
Type: text/x-diff
Size: 7519 bytes
Desc: not available
Url : http://mail01.fortunecookiestudios.com/pipermail/kommander-devel/attachments/20061110/dffe3b4b/kommander-dcop-for-plugins-secure.bin
More information about the Kommander-devel
mailing list