[banshee/moblin] Add reload signal
- From: Michael Meeks <michael src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee/moblin] Add reload signal
- Date: Fri, 4 Sep 2009 13:56:28 +0000 (UTC)
commit f21ae939c9aa541a99232256c9eaa7a8a0850828
Author: Michael Meeks <michael meeks novell com>
Date: Fri Sep 4 14:58:11 2009 +0100
Add reload signal
.../Banshee.MoblinBackend/BognorInterface.cs | 2 ++
.../Banshee.MoblinBackend/MoblinBognor.cs | 7 +++++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/Backends/Banshee.Moblin/Banshee.MoblinBackend/BognorInterface.cs b/src/Backends/Banshee.Moblin/Banshee.MoblinBackend/BognorInterface.cs
index fefd29a..cc47630 100644
--- a/src/Backends/Banshee.Moblin/Banshee.MoblinBackend/BognorInterface.cs
+++ b/src/Backends/Banshee.Moblin/Banshee.MoblinBackend/BognorInterface.cs
@@ -29,6 +29,7 @@ namespace org.moblin.BognorRegis
// signal signatures
// play queue list synchronisaton
+ public delegate void ReloadHandler ();
public delegate void UriAddedHandler (string uri, int position);
public delegate void UriRemovedHandler (string uri, int position);
// are we playing, and if so what next ?
@@ -61,6 +62,7 @@ namespace org.moblin.BognorRegis
// string,string GetNowPlaying (); - mangling ?
// signals
+ event ReloadHandler Reload;
event UriAddedHandler UriAdded;
event UriRemovedHandler UriRemoved;
event NowPlayingChangedHandler UriNowPlayingChanged;
diff --git a/src/Backends/Banshee.Moblin/Banshee.MoblinBackend/MoblinBognor.cs b/src/Backends/Banshee.Moblin/Banshee.MoblinBackend/MoblinBognor.cs
index 4e09b72..18f304b 100644
--- a/src/Backends/Banshee.Moblin/Banshee.MoblinBackend/MoblinBognor.cs
+++ b/src/Backends/Banshee.Moblin/Banshee.MoblinBackend/MoblinBognor.cs
@@ -155,6 +155,12 @@ namespace Banshee.MoblinBackend.BognorRegis
ServiceManager.PlayerEngine.ConnectEvent
(OnPlayerEvent, PlayerEvent.StateChange | PlayerEvent.Iterate);
+
+ // Counter intuitive, but unfortunately our service name is registered
+ // by banshee way in advance of it being ready to service requests for
+ // clients; so - we have to force our listeners to refresh, now we're
+ // ready for their call.
+ Reload();
}
IDBusExportable IDBusExportable.Parent {
@@ -307,6 +313,7 @@ namespace Banshee.MoblinBackend.BognorRegis
// It looks like we need a full shadow track list
// locally to get this right (which sucks).
+ public event ReloadHandler Reload;
public event UriAddedHandler UriAdded;
public event UriRemovedHandler UriRemoved;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]