[PATCH] KAboutData: Static license name/text resolvers

Chusslove Illich caslav.ilic at gmx.net
Sun May 11 11:42:36 BST 2008


Revisiting this issue:

> [: Chusslove Illich :]
> License information can be contained, as a keyword, in X-KDE-PluginInfo-
> License field of .desktop files. Possibly from other sources too, e.g.
> Kate scripts/syntax stuff comes to mind. As it is now, this information is
> presented as such to the user -- terse and unlocalized.
>
> After some discussion on #kde-devel, we've come to the conclusion -- the
> way I interpret it :) -- that it would be nice if KAboutData would provide
> static methods which take a license keyword, and return license name/text,
> for known licenses. The patch is attached.
>
> The immediate users are KPluginInfo and Plasma::PackageMetadata (though
> the latter may inherit from the former in the future). Also the patch to
> KPluginInfo, for an example of usage.

The new patches attached, now using KAboutLicense object, so the API becomes
cleaner.

-- 
Chusslove Illich (Часлав Илић)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kaboutdata-license-statics-03.diff
Type: text/x-diff
Size: 9293 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080511/29e3b735/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kplugininfo-licenses-02.diff
Type: text/x-diff
Size: 1911 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080511/29e3b735/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080511/29e3b735/attachment.sig>


More information about the kde-core-devel mailing list