setting mimetype prefs
Gav Wood
gav at kde.org
Thu Aug 21 14:54:48 BST 2003
On Thursday 21 August 2003 12:39, Gav Wood wrote:
> hi,
>
> i'm trying to write some code that manipulates the mime type preference
> order; i've looked all over the class docs, howtos, and even tryed to
> figure out how the kcm does it.
>
> by looking at the kcm code there doesn't appear to be a nice
> "KServiceType:: makePreferedService(KMimeType::Ptr )" or the like. is there
> an easy way to do it, or will i have to take hints from the kcm?
assuming the answer to this is "no, you'll have to do it the hard way", i have
since done it the hard way (taking hints from kcmfiletypes) and made a (imho)
fairly robust method for setting a prefered service for a given mimetype. is
it worth a patch to kdelibs; say KMimeType::setPreferedService() or
KServiceType::makePreferedService()?
gav
--
Gav Wood <gav at kde.org>
codito ergo non satis bibivi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030821/a4e0562a/attachment.sig>
More information about the kde-core-devel
mailing list