[banshee] LastFM: Add device scrobbling support (bgo#536389)



commit 32063085c8d4d6d1f6d7ebfaecc543b1acc799bd
Author: Phil Trimble <philtrimble gmail com>
Date:   Tue May 1 13:45:24 2012 +0100

    LastFM: Add device scrobbling support (bgo#536389)
    
    Enables Last.fm scrobbling of recent plays from a connected device.
    Currently only available on devices supported by the AppleDevice
    extension. The new functionality happens upon connection of a device.
    
    Adds a new preference to control the functionality that will be
    disabled by default. Also updates the Last.fm help page to explain
    how it works.
    
    Signed-off-by: Andres G. Aragoneses <knocte gmail com>

 .../Banshee.Sources/IBatchScrobblerSource.cs       |   42 ++++++++++++++++++++
 1 files changed, 42 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Sources/IBatchScrobblerSource.cs b/src/Core/Banshee.Services/Banshee.Sources/IBatchScrobblerSource.cs
new file mode 100644
index 0000000..464920e
--- /dev/null
+++ b/src/Core/Banshee.Services/Banshee.Sources/IBatchScrobblerSource.cs
@@ -0,0 +1,42 @@
+// 
+// IBatchScrobblerSource.cs
+// 
+// Author:
+//   Phil Trimble <philtrimble gmail com>
+//   Andres G. Aragoneses <knocte gmail com>
+// 
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+// 
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using System.Collections.Generic;
+using Banshee.Collection;
+
+namespace Banshee.Sources
+{
+    public interface IBatchScrobblerSource
+    {
+        event EventHandler<ScrobblingBatchEventArgs> ReadyToScrobble;
+    }
+
+    public class ScrobblingBatchEventArgs : EventArgs
+    {
+        public IDictionary<TrackInfo, IList<DateTime>> ScrobblingBatch { get; set; }
+    }
+}
+



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