[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KMediaPlayer Interface
From: David Faure <david () mandrakesoft ! com>
Date: 2002-04-08 12:39:56
[Download RAW message or body]
On Saturday 06 April 2002 19:06, Neil Stevens wrote:
> I have one more question: What should I put in the desktop file for
> KMediaPlayer/Engine? Should I mark that it's derived from ReadOnlyPart or
> Player even though it won't be putting out a widget?
IMHO: define a new servicetype, call it MediaPlayer, add it to the ServiceTypes line
of the .desktop file for your part, and add to the factory code
of your part:
if className == "MediaPlayer"
create a mediaplayer with no GUI (e.g. ctor option)
else if className == "KParts/ReadOnlyPart" (is it '::'?)
create a mediaplayer with a GUI
(see e.g. khtml_factory.cpp, KHTMLFactory::createPartObject)
In any case, don't let Konqueror, which asks for a KParts/ReadOnlyPart,
get no widget in return.
--
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic