banshee r4814 - in trunk/banshee: . src/Extensions/Banshee.Torrent/Banshee.Torrent



Author: alanmc
Date: Sun Nov  9 13:50:09 2008
New Revision: 4814
URL: http://svn.gnome.org/viewvc/banshee?rev=4814&view=rev

Log:
2008-11-09 Alan McGovern <alan mcgovern gmail com>
        * Banshee.Torrent/Banshee.Torrent/TorrentService.cs:
        * Banshee.Torrent/Banshee.Torrent/TorrentFileDownloadTask.cs:
        * Update to
          work with the latest monotorrent.dbus



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Extensions/Banshee.Torrent/Banshee.Torrent/TorrentFileDownloadTask.cs
   trunk/banshee/src/Extensions/Banshee.Torrent/Banshee.Torrent/TorrentService.cs

Modified: trunk/banshee/src/Extensions/Banshee.Torrent/Banshee.Torrent/TorrentFileDownloadTask.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Torrent/Banshee.Torrent/TorrentFileDownloadTask.cs	(original)
+++ trunk/banshee/src/Extensions/Banshee.Torrent/Banshee.Torrent/TorrentFileDownloadTask.cs	Sun Nov  9 13:50:09 2008
@@ -70,7 +70,7 @@
 			SetStatus (TaskStatus.Running);
 			TorrentService s = (TorrentService) Banshee.ServiceStack.ServiceManager.Get<TorrentService>("TorrentService");
 			downloader = s.Download (this.RemoteUri.ToString(), Path.GetDirectoryName(this.LocalPath));
-			torrent = MonoTorrent.DBus.TorrentService.Bus.GetObject <ITorrent> (TorrentService.BusName, this.downloader.GetTorrent ());
+			torrent = TorrentService.Bus.GetObject <ITorrent> (TorrentService.BusName, this.downloader.GetTorrent ());
 			
 			this.downloader.StateChanged += delegate {
 				if (downloader.GetState () == TorrentState.Seeding)

Modified: trunk/banshee/src/Extensions/Banshee.Torrent/Banshee.Torrent/TorrentService.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Torrent/Banshee.Torrent/TorrentService.cs	(original)
+++ trunk/banshee/src/Extensions/Banshee.Torrent/Banshee.Torrent/TorrentService.cs	Sun Nov  9 13:50:09 2008
@@ -42,6 +42,7 @@
     public class TorrentService : IExtensionService, IDelayedInitializeService
     {
         private static bool RegisteredInMigo = false;
+        public static Bus Bus = Bus.Session;
         public static readonly string BusName = "org.monotorrent.dbus";
         public static readonly string EngineName = "banshee";
         public static readonly ObjectPath ServicePath = new ObjectPath ("/org/monotorrent/service");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]