add setType to PackageStucture

Petri Damstén petri.damsten at gmail.com
Thu Oct 30 12:20:42 CET 2008


On Thursday 30 October 2008 12:49:01 Aaron J. Seigo wrote:
> On Thursday 30 October 2008, Petri Damstén wrote:
> > On Thursday 30 October 2008 12:30:10 Aaron J. Seigo wrote:
> > > On Thursday 30 October 2008, Petri Damstén wrote:
> > > > If we copy Plasma::Applet::packageStructure() to custom package
> > > > structure type is also copied and we have no setType to correct it.
> > >
> > > what is the exact use case for this?
> >
> > e.g. in comic package structure constructor:
>
> i think that's an incorrect use. you should just subclass PackageStructure
> directly and create a ComicProviderPackage class.

It's a subclass of PackageStructure, but I want to copy data from 
PlasmoidPackage which is what Applet::packageStructure() returns. And this is 
actually what you recommended for webapplet package :-)
http://mail.kde.org/pipermail/plasma-devel/2008-September/001009.html

There it works since webapplet is also a plasmoid type.

Petri

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20081030/2f5e55ad/attachment.sig 


More information about the Plasma-devel mailing list