KMediaPlayer Interface

Simon Hausmann hausmann at kde.org
Fri Apr 5 22:12:01 BST 2002


On Fri, Apr 05, 2002 at 12:58:02PM -0800, Neil Stevens wrote:
> Is it OK if I add this KMediaPlayer interface into kdelibs?  We've been 
> having some copy and paste from app to app, and it seems to me that this is 
> the way to eliminate it.
> 
> Having written no KParts code in the past, I welcome any and all criticism 
> of this interface.
> 
> thanks,
> -- 
> Neil Stevens - neil at qualityassistant.com
> "I always cheer up immensely if an attack is particularly wounding
> because I think, well, if they attack one personally, it means they
> have not a single political argument left." - Margaret Thatcher

YAL (Yet Another Library :-}

What I don't understand is the relation to KParts. Player inherits
from KParts::ReadOnlyPart, hence an implementation guarantees to
provide openURL/openFile, but the Engine class provides simliar
functionality (open(url), stop, etc.) .

Another option would be to bite in the bullet and make this a set of
pure interfaces only and rely on the syntax unfriendly qt_cast.

I don't know what the best solution is (I only wish there would be a
nice solution for the casting :(

Simon




More information about the kde-core-devel mailing list