banshee r3192 - in trunk/banshee: . src/Extensions/Banshee.DapCore/Banshee.DapCore src/Extensions/Banshee.DapCore/Resources
- From: rubenv svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3192 - in trunk/banshee: . src/Extensions/Banshee.DapCore/Banshee.DapCore src/Extensions/Banshee.DapCore/Resources
- Date: Sat, 9 Feb 2008 21:40:33 +0000 (GMT)
Author: rubenv
Date: Sat Feb 9 21:40:33 2008
New Revision: 3192
URL: http://svn.gnome.org/viewvc/banshee?rev=3192&view=rev
Log:
2008-02-09 Ruben Vermeersch <ruben savanne be>
* src/Extensions/Banshee.DapCore/Banshee.DapCore/DapCore.cs: Get the type
from TypeExtensionNode. Use Aaron's trick to get the class name from the
node.
* src/Extensions/Banshee.DapCore/Banshee.DapCore/DeviceClassNode.cs: Removed.
* src/Extensions/Banshee.DapCore/Banshee.DapCore/IDevice.cs: Fix
namespace issue.
* src/Extensions/Banshee.DapCore/Resources/Banshee.DapCore.addin.xml: Back
to TypeExtensionNode.
Removed:
trunk/banshee/src/Extensions/Banshee.DapCore/Banshee.DapCore/DeviceClassNode.cs
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Extensions/Banshee.DapCore/Banshee.DapCore/DapCore.cs
trunk/banshee/src/Extensions/Banshee.DapCore/Banshee.DapCore/IDevice.cs
trunk/banshee/src/Extensions/Banshee.DapCore/Resources/Banshee.DapCore.addin.xml
Modified: trunk/banshee/src/Extensions/Banshee.DapCore/Banshee.DapCore/DapCore.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.DapCore/Banshee.DapCore/DapCore.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.DapCore/Banshee.DapCore/DapCore.cs Sat Feb 9 21:40:33 2008
@@ -65,7 +65,10 @@
}
private void OnExtensionChanged (object s, ExtensionNodeEventArgs args) {
- Type device_type = ((DeviceClassNode) args.ExtensionNode).Type;
+ TypeExtensionNode node = (TypeExtensionNode) args.ExtensionNode;
+ Console.WriteLine(">>> Found Node ID: {0}", node.Id);
+ Type device_type = Type.GetType (node.Id);
+
if (args.Change == ExtensionChange.Add) {
// Register device plugin
supported_dap_types.Add (device_type);
@@ -137,8 +140,8 @@
}
try {
- DapDevice dap_device = new DapDevice (device);
- device_table.Add (device.Udi, dap_device);
+ //DapDevice dap_device = new DapDevice (device);
+ //device_table.Add (device.Udi, dap_device);
} catch (Exception e) {
Console.WriteLine (e);
}
Modified: trunk/banshee/src/Extensions/Banshee.DapCore/Banshee.DapCore/IDevice.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.DapCore/Banshee.DapCore/IDevice.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.DapCore/Banshee.DapCore/IDevice.cs Sat Feb 9 21:40:33 2008
@@ -28,6 +28,7 @@
using System;
using Banshee.Collection;
+using Hal;
namespace Banshee.Dap
{
@@ -50,7 +51,7 @@
void UploadTrack (TrackInfo track); // Should be TrackInfo, not 'object'
void Eject ();
- bool Initialize (Hal.Device device);
+ bool Initialize (Device device);
//bool CanSetName { get; }
//bool CanSetOwner { get; }
Modified: trunk/banshee/src/Extensions/Banshee.DapCore/Resources/Banshee.DapCore.addin.xml
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.DapCore/Resources/Banshee.DapCore.addin.xml (original)
+++ trunk/banshee/src/Extensions/Banshee.DapCore/Resources/Banshee.DapCore.addin.xml Sat Feb 9 21:40:33 2008
@@ -21,7 +21,7 @@
</Extension>
<ExtensionPoint path="/Banshee/Dap/DeviceClass">
- <ExtensionNode name="DeviceClass" type="Banshee.Dap.DeviceClassNode" />
+ <ExtensionNode name="DeviceClass"/>
</ExtensionPoint>
</Addin>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]