From kde-devel Wed Mar 31 14:36:39 2004 From: Jeroen Wijnhout Date: Wed, 31 Mar 2004 14:36:39 +0000 To: kde-devel Subject: Re: Querying the capabilities of KHTML Message-Id: <200403311636.39073.Jeroen.Wijnhout () kdemail ! net> X-MARC-Message: https://marc.info/?l=kde-devel&m=108074381300852 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 <<