[PATCH] KAboutData: Static license name/text resolvers

Chusslove Illich caslav.ilic at gmx.net
Sat Mar 1 03:41:01 GMT 2008


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.

-- 
Chusslove Illich (Часлав Илић)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kaboutdata-license-statics-01.diff
Type: text/x-diff
Size: 10242 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080301/a4ebcb59/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kplugininfo-licenses-01.diff
Type: text/x-diff
Size: 1629 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080301/a4ebcb59/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/20080301/a4ebcb59/attachment.sig>


More information about the kde-core-devel mailing list