[banshee/moblin: 2/11] Skeleton Moblin backend



commit 098a72e2d5405a6b670331bf1df7984ac982bca0
Author: Michael Meeks <michael meeks novell com>
Date:   Fri Aug 7 11:09:07 2009 +0100

    Skeleton Moblin backend

 configure.ac                                       |    1 +
 .../Banshee.Moblin/Banshee.Moblin.addin.xml        |   21 ++++
 src/Backends/Banshee.Moblin/Banshee.Moblin.csproj  |  113 ++++++++++++++++++++
 .../Banshee.MoblinBackend/MoblinService.cs         |   62 +++++++++++
 src/Backends/Banshee.Moblin/Makefile.am            |   17 +++
 src/Backends/Makefile.am                           |    1 +
 6 files changed, 215 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7f63678..42a4357 100644
--- a/configure.ac
+++ b/configure.ac
@@ -238,6 +238,7 @@ src/Core/Banshee.Widgets/Makefile
 
 src/Backends/Makefile
 src/Backends/Banshee.Gnome/Makefile
+src/Backends/Banshee.Moblin/Makefile
 src/Backends/Banshee.GStreamer/Makefile
 src/Backends/Banshee.Hal/Makefile
 src/Backends/Banshee.Unix/Makefile
diff --git a/src/Backends/Banshee.Moblin/Banshee.Moblin.addin.xml b/src/Backends/Banshee.Moblin/Banshee.Moblin.addin.xml
new file mode 100644
index 0000000..0de7435
--- /dev/null
+++ b/src/Backends/Banshee.Moblin/Banshee.Moblin.addin.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Addin 
+    id="Banshee.Moblin"
+    version="1.0"
+    compatVersion="1.0"
+    copyright="© 2008 Novell Inc. Licensed under the MIT X11 license."
+    category="required:Backends"
+    description="Backend providers for the Moblin platform."
+    defaultEnabled="true">
+
+  <Dependencies>
+    <Addin id="Banshee.Core" version="1.0"/>
+    <Addin id="Banshee.Gnome" version="1.0"/>
+    <Addin id="Banshee.Services" version="1.0"/>
+    <Addin id="Banshee.NowPlaying" version="1.0"/>
+  </Dependencies>
+  
+  <Extension path="/Banshee/ServiceManager/Service">
+    <Service class="Banshee.MoblinBackend.MoblinService"/>
+  </Extension>
+</Addin>
diff --git a/src/Backends/Banshee.Moblin/Banshee.Moblin.csproj b/src/Backends/Banshee.Moblin/Banshee.Moblin.csproj
new file mode 100644
index 0000000..f0b00d5
--- /dev/null
+++ b/src/Backends/Banshee.Moblin/Banshee.Moblin.csproj
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"; ToolsVersion="3.5">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>8.0.50727</ProductVersion>
+    <ProjectGuid>{CA8BAD3C-1545-4B04-AF6B-4105DFD3A9A1}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <UseParentDirectoryAsNamespace>true</UseParentDirectoryAsNamespace>
+    <AssemblyName>Banshee.Gnome</AssemblyName>
+    <SchemaVersion>2.0</SchemaVersion>
+    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+    <Optimize>true</Optimize>
+    <OutputPath>..\..\..\bin</OutputPath>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
+    <RootNamespace>
+    </RootNamespace>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <AssemblyKeyFile>.</AssemblyKeyFile>
+    <CustomCommands>
+      <CustomCommands>
+        <Command type="Build" command="make" workingdir="${SolutionDir}" />
+        <Command type="Execute" command="make run" workingdir="${SolutionDir}" />
+      </CustomCommands>
+    </CustomCommands>
+    <OutputType>Library</OutputType>
+    <AssemblyName>Banshee.Gnome</AssemblyName>
+    <OutputPath>..\..\..\bin\</OutputPath>
+    <RootNamespace>
+    </RootNamespace>
+    <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
+    <Optimize>true</Optimize>
+    <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
+    <DefineConstants>
+    </DefineConstants>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Windows|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <PlatformTarget>x86</PlatformTarget>
+    <AssemblyKeyFile>.</AssemblyKeyFile>
+    <OutputType>Library</OutputType>
+    <AssemblyName>Banshee.Gnome</AssemblyName>
+    <OutputPath>..\..\..\bin\</OutputPath>
+    <RootNamespace>
+    </RootNamespace>
+    <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
+    <Optimize>true</Optimize>
+    <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
+    <DefineConstants>
+    </DefineConstants>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\..\Core\Banshee.Core\Banshee.Core.csproj">
+      <Project>{2ADB831A-A050-47D0-B6B9-9C19D60233BB}</Project>
+      <Name>Banshee.Core</Name>
+    </ProjectReference>
+    <ProjectReference Include="..\..\Core\Banshee.Services\Banshee.Services.csproj">
+      <Project>{B28354F0-BA87-44E8-989F-B864A3C7C09F}</Project>
+      <Name>Banshee.Services</Name>
+    </ProjectReference>
+    <ProjectReference Include="..\..\Libraries\Hyena\Hyena.csproj">
+      <Project>{95374549-9553-4C1E-9D89-667755F90E12}</Project>
+      <Name>Hyena</Name>
+    </ProjectReference>
+    <ProjectReference Include="..\..\Libraries\Hyena.Gui\Hyena.Gui.csproj">
+      <Project>{C856EFD8-E812-4E61-8B76-E3583D94C233}</Project>
+      <Name>Hyena.Gui</Name>
+    </ProjectReference>
+    <ProjectReference Include="..\..\Core\Banshee.ThickClient\Banshee.ThickClient.csproj">
+      <Project>{AC839523-7BDF-4AB6-8115-E17921B96EC6}</Project>
+      <Name>Banshee.ThickClient</Name>
+    </ProjectReference>
+    <ProjectReference Include="..\..\Extensions\Banshee.NowPlaying\Banshee.NowPlaying.csproj">
+      <Project>{16FB0D3A-53FA-4B8E-B02B-4AF66E87829A}</Project>
+      <Name>Banshee.NowPlaying</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="gnome-sharp, Version=2.24.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Banshee.MoblinBackend\MoblinService.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <EmbeddedResource Include="Banshee.Moblin.addin.xml" />
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <ProjectExtensions>
+    <MonoDevelop>
+      <Properties>
+        <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="true" RelativeMakefileName="Makefile.am">
+          <BuildFilesVar Sync="true" Name="SOURCES" />
+          <DeployFilesVar />
+          <ResourcesVar Sync="true" Name="RESOURCES" />
+          <OthersVar />
+          <GacRefVar />
+          <AsmRefVar />
+          <ProjectRefVar />
+        </MonoDevelop.Autotools.MakefileInfo>
+      </Properties>
+    </MonoDevelop>
+  </ProjectExtensions>
+</Project>
\ No newline at end of file
diff --git a/src/Backends/Banshee.Moblin/Banshee.MoblinBackend/MoblinService.cs b/src/Backends/Banshee.Moblin/Banshee.MoblinBackend/MoblinService.cs
new file mode 100644
index 0000000..b31f066
--- /dev/null
+++ b/src/Backends/Banshee.Moblin/Banshee.MoblinBackend/MoblinService.cs
@@ -0,0 +1,62 @@
+//
+// MoblinService.cs
+//
+// Author:
+//   Aaron Bockover <abockover novell com>
+//
+// Copyright (C) 2008 Novell, Inc.
+//
+// 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 Banshee.Web;
+using Banshee.Base;
+using Banshee.Collection;
+using Banshee.MediaEngine;
+using Banshee.ServiceStack;
+
+namespace Banshee.MoblinBackend
+{
+    public class MoblinService : IExtensionService, IDisposable 
+    {
+        public MoblinService ()
+        {
+        }
+        
+        public void Initialize ()
+        {
+	  //            ServiceManager.PlayerEngine.ConnectEvent
+	  //	        (UpdateRecentFilesHandler, PlayerEvent.StateChange);
+	  Console.WriteLine ("Init MoblinBackend");
+        }
+        
+        public void Dispose ()
+        {
+	  //            ServiceManager.PlayerEngine.DisconnectEvent
+	  //	        (UpdateRecentFilesHandler);
+        }
+        
+        string IService.ServiceName {
+            get { return "MoblinService"; }
+        }
+    }
+}
diff --git a/src/Backends/Banshee.Moblin/Makefile.am b/src/Backends/Banshee.Moblin/Makefile.am
new file mode 100644
index 0000000..d6216fd
--- /dev/null
+++ b/src/Backends/Banshee.Moblin/Makefile.am
@@ -0,0 +1,17 @@
+ASSEMBLY = Banshee.Moblin
+TARGET = library
+LINK = $(REF_BACKEND_GNOME)
+INSTALL_DIR = $(BACKENDS_INSTALL_DIR)
+
+SOURCES =  \
+	Banshee.MoblinBackend/MoblinService.cs
+
+RESOURCES =  \
+	Banshee.Moblin.addin.xml 
+
+if ENABLE_GNOME
+include $(top_srcdir)/build/build.mk
+else
+EXTRA_DIST = $(SOURCES) $(RESOURCES)
+endif
+
diff --git a/src/Backends/Makefile.am b/src/Backends/Makefile.am
index 0cc38e8..cd659e8 100644
--- a/src/Backends/Makefile.am
+++ b/src/Backends/Makefile.am
@@ -1,6 +1,7 @@
 SUBDIRS = \
 	Banshee.Hal \
 	Banshee.Gnome \
+	Banshee.Moblin \
 	Banshee.GStreamer \
 	Banshee.Unix \
 	Banshee.NowPlaying.X11 \



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