[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Querying the capabilities of KHTML
From:       Jeroen Wijnhout <Jeroen.Wijnhout () kdemail ! net>
Date:       2004-03-31 14:36:39
Message-ID: 200403311636.39073.Jeroen.Wijnhout () kdemail ! net
[Download RAW message or body]

On Wednesday 31 March 2004 14:34, Kevin Krammer wrote:
> Try this
> KService::Ptr service = KService::serviceByDesktopName("khtml");
> if (service->hasServiceType("text/html"))
> // can do it
> else
> // can't do it
>
> Cheers,
> Kevin

Excellent, that works! I guess this method requires a file khtml.desktop to 
exist (with exactly this name). According to the API docs this method is the 
safests, so it is probably guaranteed that this file exists with this name.

thanks,
Jeroen

-- 
Kile - an Integrated LaTeX Environment
http://kile.sourceforge.net
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic