add setType to PackageStucture

Petri Damstén petri.damsten at gmail.com
Thu Oct 30 11:41:13 CET 2008


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:

    Q_UNUSED( args )
    // copy the main applet structure
    Plasma::PackageStructure::operator=( *Plasma::Applet::packageStructure() 
);
    // Copying resets type
    setType( "Comic" );
    setDefaultPackageRoot( "plasma/comics/" );
    setServicePrefix( "plasma-comic-" );
    setRequired( "mainscript", false ); // So we can test for .py, .rb etc.

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/afc8bd83/attachment.sig 


More information about the Plasma-devel mailing list