<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<blockquote
cite="mid:20101210191500.37A1113A9D3@albiero.videolan.org"
type="cite">
<pre wrap="">No, D-Bus is inherently asynchronous. I think the issue Conor was having was
purely with the bindings he was using, which were making the calls
synchronous. Talking about "pointers" in the context of a D-Bus spec is a
sure sign of confusion between D-Bus interfaces and bindings.
</pre>
</blockquote>
Indeed I was confused, we had our xmas party on Thursday night and
might have been a little worse for wear Friday morning. It wasn't
until later on in the day that I realised that I was looking at
things in the wrong way and hence my initial email was incorrect
with regards the particulars of DBus interaction. Moving on ...<br>
<blockquote
cite="mid:20101210191500.37A1113A9D3@albiero.videolan.org"
type="cite">
<pre wrap="">I think we should have a CurrentPlaylist property, rather than a method, and
then PropertyChanged can be used to notify of changes.
</pre>
</blockquote>
Sounds good. <br>
<blockquote
cite="mid:20101210191500.37A1113A9D3@albiero.videolan.org"
type="cite">
<pre wrap="">
Also, note this comment in the ActivatePlaylist documentation:
</pre>
<blockquote type="cite">
<pre wrap="">It is up to the media player whether this completely replaces the current
tracklist, or whether it is merely inserted into the tracklist and the first
track starts. For example, if the media player is operating in a "jukebox"
mode, it may just append the playlist to the list of upcoming tracks, and
skip to the first track in the playlist.
</pre>
</blockquote>
<pre wrap="">
So there's no guarantee that CurrentPlaylist will change when ActivatePlaylist
is called, or that it will even be set to a sensible value. Speaking of
which, CurrentPlaylist needs to have a way of indicating "no current
playlist". That could either be returning a playlist strict with empty fields,
or (and I think this is cleaner), returning an error message.
</pre>
</blockquote>
Error message is fine. Which ever you prefer. <br>
<br>
Watching the CurrentPlaylist property should replace the requested
signal (ActivePlaylistChanged). So unless I'm missing something that
should take care of the lot. <br>
<br>
Conor
<blockquote
cite="mid:20101210191500.37A1113A9D3@albiero.videolan.org"
type="cite">
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
mpris mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mpris@videolan.org">mpris@videolan.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.videolan.org/listinfo/mpris">http://mailman.videolan.org/listinfo/mpris</a>
</pre>
</blockquote>
</body>
</html>