[GSoC] UML of PlaySong functionality for MprisPlayer plug-in

Peter Grasch peter at grasch.net
Fri Jun 27 10:31:41 UTC 2014


On Friday, June 27, 2014 10:32:50 AM you wrote:
> > So the first question would be how you’d process e.g.,
> > trackMetaDataChanged? Do you want to search all lists of lists of tracks?
> > If you just use a list of lists, you lose the association with the
> > serviceName, which you’ll kind of need...
> I was not going to use list of lists (just wrote it for an idea). I need
> something where I can associate a trackId to both serviceName and it's
> title, but I have no clue at the moment what exactly I can use.
How about a class "Player", with an attribute "title". Then have a hash of 
serviceName -> Player* in the command manager?

> > How will you match up user input (“Play X”) to track ids?
> 
> If what I mentioned above is somehow realised, when creating a "Play X"
> command, I will have the title of the track (i.e X) and also the trackId,
> which I will pass to the MprisPlayerCommand (and also ofcourse the
> serviceName). Then I will use the trackId for goto method inside
> triggerPrivate().
Wait, you mean you want the user to *know* the track id?


> PS: Did you forgot to CC the mailing list?
I did. Shame on me. Forwarded it now.

Best regards,
Peter


More information about the Kde-speech mailing list