Default args for KParts
Holger Freyther
freyther at gmx.net
Fri Apr 30 15:14:24 BST 2004
On Friday 30 April 2004 14:46, Ian Reinhart Geiser wrote:
> This would allow me to then give things like the script name for the kpart
> I want the proxy to load.
Hi,
no doubt about the correctness of the patch and I understand the issue of
chainloading but I think there should be other ways to inform the chainloader
which part to load really.
I think it is also error prone because somebody might mispells his partname
and wonders why it doesn't load at all even if his script is correct. I
always prefer code which a compiler or interpreter verifies for correctness
but this is chain loading is really.
What other ways does the chainloader have to figure out why it was created?
-One could pass the KService::Ptr to the KPart but this would require even
greater and binary incompatible changes.
-One could pass something from the KService or do the full stuf using your
default arguments
-One could fix the generic factory to 'know' the principle of a chainloader
and then pass the data to the 'chainloader'. Now the chainloader could work
on the kService or whatever to know the real part
maybe something better
regards holger
--
_____________________________________________
Holger 'zecke' Freyther
Project OPIE- the Open Palmtop Integrated Environment
http://opie.handhelds.org
Sponsor me! Donate Hardware!
http://handhelds.org/~zecke
More information about the kde-core-devel
mailing list