beagle r4556 - in branches/beagle-win32-branch: . src/Beagle src/Beagle.Daemon src/Beagle.Engine src/Beagle.Engine/Beagle.Engine src/Beagle.Filters src/Beagle.Util src/Beagle.Util/Beagle.Util src/Beagle/Beagle win-deps



Author: llipka
Date: Thu Feb 28 20:43:08 2008
New Revision: 4556
URL: http://svn.gnome.org/viewvc/beagle?rev=4556&view=rev

Log:
Add win32 deps assemblies. Add TcpTransport. Add VS.net project files.

Added:
   branches/beagle-win32-branch/Beagle.sln   (contents, props changed)
   branches/beagle-win32-branch/src/Beagle.Daemon/Beagle.Daemon.csproj   (contents, props changed)
   branches/beagle-win32-branch/src/Beagle.Engine/
   branches/beagle-win32-branch/src/Beagle.Engine/AssemblyInfo.cs.in   (contents, props changed)
   branches/beagle-win32-branch/src/Beagle.Engine/Beagle.Engine/
   branches/beagle-win32-branch/src/Beagle.Engine/Beagle.Engine.csproj   (contents, props changed)
   branches/beagle-win32-branch/src/Beagle.Filters/Beagle.Filters.csproj   (contents, props changed)
   branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util.csproj   (contents, props changed)
   branches/beagle-win32-branch/src/Beagle/Beagle.csproj   (contents, props changed)
   branches/beagle-win32-branch/src/Beagle/Beagle/TcpTransport.cs   (contents, props changed)
   branches/beagle-win32-branch/win-deps/
   branches/beagle-win32-branch/win-deps/ICSharpCode.SharpZipLib.dll   (contents, props changed)
   branches/beagle-win32-branch/win-deps/Mono.Cairo.dll   (contents, props changed)
   branches/beagle-win32-branch/win-deps/Mono.Data.Sqlite.dll   (contents, props changed)
   branches/beagle-win32-branch/win-deps/Mono.Posix.dll   (contents, props changed)
   branches/beagle-win32-branch/win-deps/NDesk.DBus.GLib.dll   (contents, props changed)
   branches/beagle-win32-branch/win-deps/NDesk.DBus.dll   (contents, props changed)
   branches/beagle-win32-branch/win-deps/sqlite3.dll   (contents, props changed)
Modified:
   branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/Archive.cs
   branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/NautilusTools.cs
   branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/PathFinder.cs
   branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/XdgMime.cs
   branches/beagle-win32-branch/src/Beagle/Beagle/IIndexableGenerator.cs
   branches/beagle-win32-branch/src/Beagle/Beagle/Message.cs
   branches/beagle-win32-branch/src/Beagle/Beagle/UnixTransport.cs

Added: branches/beagle-win32-branch/Beagle.sln
==============================================================================
--- (empty file)
+++ branches/beagle-win32-branch/Beagle.sln	Thu Feb 28 20:43:08 2008
@@ -0,0 +1,53 @@
+ï
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{74CD9594-0648-4B41-B97C-520344BA97B0}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Beagle.Util", "src\Beagle.Util\Beagle.Util.csproj", "{EED7CCE3-A6A2-4163-ACBC-0CA649070432}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Beagle", "src\Beagle\Beagle.csproj", "{F6C2E799-417F-4C13-B5A8-47B98A9B7733}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Beagle.Filters", "src\Beagle.Filters\Beagle.Filters.csproj", "{3623F28A-0A8E-4CAD-AA67-BE126D2EE09A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Beagle.Engine", "src\Beagle.Engine\Beagle.Engine.csproj", "{83DA33E0-4B7E-4A1F-825F-D75D65413DE0}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Beagle.Daemon", "src\Beagle.Daemon\Beagle.Daemon.csproj", "{82422CAA-5716-4D1A-A0C8-97906A46FED3}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{EED7CCE3-A6A2-4163-ACBC-0CA649070432}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{EED7CCE3-A6A2-4163-ACBC-0CA649070432}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{EED7CCE3-A6A2-4163-ACBC-0CA649070432}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{EED7CCE3-A6A2-4163-ACBC-0CA649070432}.Release|Any CPU.Build.0 = Release|Any CPU
+		{F6C2E799-417F-4C13-B5A8-47B98A9B7733}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{F6C2E799-417F-4C13-B5A8-47B98A9B7733}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{F6C2E799-417F-4C13-B5A8-47B98A9B7733}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{F6C2E799-417F-4C13-B5A8-47B98A9B7733}.Release|Any CPU.Build.0 = Release|Any CPU
+		{3623F28A-0A8E-4CAD-AA67-BE126D2EE09A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{3623F28A-0A8E-4CAD-AA67-BE126D2EE09A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{3623F28A-0A8E-4CAD-AA67-BE126D2EE09A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{3623F28A-0A8E-4CAD-AA67-BE126D2EE09A}.Release|Any CPU.Build.0 = Release|Any CPU
+		{83DA33E0-4B7E-4A1F-825F-D75D65413DE0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{83DA33E0-4B7E-4A1F-825F-D75D65413DE0}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{83DA33E0-4B7E-4A1F-825F-D75D65413DE0}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{83DA33E0-4B7E-4A1F-825F-D75D65413DE0}.Release|Any CPU.Build.0 = Release|Any CPU
+		{82422CAA-5716-4D1A-A0C8-97906A46FED3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{82422CAA-5716-4D1A-A0C8-97906A46FED3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{82422CAA-5716-4D1A-A0C8-97906A46FED3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{82422CAA-5716-4D1A-A0C8-97906A46FED3}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(NestedProjects) = preSolution
+		{EED7CCE3-A6A2-4163-ACBC-0CA649070432} = {74CD9594-0648-4B41-B97C-520344BA97B0}
+		{F6C2E799-417F-4C13-B5A8-47B98A9B7733} = {74CD9594-0648-4B41-B97C-520344BA97B0}
+		{3623F28A-0A8E-4CAD-AA67-BE126D2EE09A} = {74CD9594-0648-4B41-B97C-520344BA97B0}
+		{83DA33E0-4B7E-4A1F-825F-D75D65413DE0} = {74CD9594-0648-4B41-B97C-520344BA97B0}
+		{82422CAA-5716-4D1A-A0C8-97906A46FED3} = {74CD9594-0648-4B41-B97C-520344BA97B0}
+	EndGlobalSection
+EndGlobal

Added: branches/beagle-win32-branch/src/Beagle.Daemon/Beagle.Daemon.csproj
==============================================================================
--- (empty file)
+++ branches/beagle-win32-branch/src/Beagle.Daemon/Beagle.Daemon.csproj	Thu Feb 28 20:43:08 2008
@@ -0,0 +1,39 @@
+ï<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>8.0.50727</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{82422CAA-5716-4D1A-A0C8-97906A46FED3}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>Beagle.Daemon</RootNamespace>
+    <AssemblyName>Beagle.Daemon</AssemblyName>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file

Added: branches/beagle-win32-branch/src/Beagle.Engine/AssemblyInfo.cs.in
==============================================================================
--- (empty file)
+++ branches/beagle-win32-branch/src/Beagle.Engine/AssemblyInfo.cs.in	Thu Feb 28 20:43:08 2008
@@ -0,0 +1,11 @@
+//
+// AssemblyInfo.cs
+//
+// Copyright (C) 2008 Lukas Lipka <lukaslipka gmail com>
+//
+
+using System.Reflection;
+
+[assembly: AssemblyVersion("@VERSION@")]
+[assembly: AssemblyTitle ("Beagle.Engine")]
+

Added: branches/beagle-win32-branch/src/Beagle.Engine/Beagle.Engine.csproj
==============================================================================
--- (empty file)
+++ branches/beagle-win32-branch/src/Beagle.Engine/Beagle.Engine.csproj	Thu Feb 28 20:43:08 2008
@@ -0,0 +1,39 @@
+ï<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>8.0.50727</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{83DA33E0-4B7E-4A1F-825F-D75D65413DE0}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>Beagle.Engine</RootNamespace>
+    <AssemblyName>Beagle.Engine</AssemblyName>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file

Added: branches/beagle-win32-branch/src/Beagle.Filters/Beagle.Filters.csproj
==============================================================================
--- (empty file)
+++ branches/beagle-win32-branch/src/Beagle.Filters/Beagle.Filters.csproj	Thu Feb 28 20:43:08 2008
@@ -0,0 +1,39 @@
+ï<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>8.0.50727</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{3623F28A-0A8E-4CAD-AA67-BE126D2EE09A}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>Beagle.Filters</RootNamespace>
+    <AssemblyName>Beagle.Filters</AssemblyName>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file

Added: branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util.csproj
==============================================================================
--- (empty file)
+++ branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util.csproj	Thu Feb 28 20:43:08 2008
@@ -0,0 +1,197 @@
+ï<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>8.0.50727</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{EED7CCE3-A6A2-4163-ACBC-0CA649070432}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>Beagle.Util</RootNamespace>
+    <AssemblyName>Beagle.Util</AssemblyName>
+    <StartupObject>
+    </StartupObject>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+  <ItemGroup>
+    <None Include="Beagle.Util\Archive.cs" />
+    <Compile Include="Beagle.Util\ArrayFu.cs" />
+    <None Include="Beagle.Util\AvahiBrowser.cs" />
+    <Compile Include="Beagle.Util\Battery.cs" />
+    <Compile Include="Beagle.Util\BetterBitArray.cs" />
+    <Compile Include="Beagle.Util\Camel.cs" />
+    <Compile Include="Beagle.Util\ChmFile.cs" />
+    <Compile Include="Beagle.Util\CompatFileChooser.cs" />
+    <Compile Include="Beagle.Util\Config.cs" />
+    <Compile Include="Beagle.Util\DateTimeUtil.cs" />
+    <Compile Include="Beagle.Util\DelayedTextWriter.cs" />
+    <Compile Include="Beagle.Util\DirectoryWalker.cs" />
+    <Compile Include="Beagle.Util\Evolution.cs" />
+    <Compile Include="Beagle.Util\ExceptionHandlingThread.cs" />
+    <Compile Include="Beagle.Util\ExtendedAttribute.cs" />
+    <Compile Include="Beagle.Util\ExternalStringsHack.cs" />
+    <Compile Include="Beagle.Util\FileAdvise.cs" />
+    <Compile Include="Beagle.Util\FileSystem.cs" />
+    <Compile Include="Beagle.Util\FrequencyStatistics.cs" />
+    <Compile Include="Beagle.Util\FSpotTools.cs" />
+    <None Include="Beagle.Util\Galago.cs" />
+    <Compile Include="Beagle.Util\GnomeFu.cs" />
+    <Compile Include="Beagle.Util\GtkUtils.cs" />
+    <Compile Include="Beagle.Util\GuidFu.cs" />
+    <Compile Include="Beagle.Util\HigMessageDialog.cs" />
+    <Compile Include="Beagle.Util\HtmlRemovingReader.cs" />
+    <Compile Include="Beagle.Util\ICalParser.cs" />
+    <Compile Include="Beagle.Util\ImBuddy.cs" />
+    <Compile Include="Beagle.Util\Inotify.cs" />
+    <Compile Include="Beagle.Util\KdeUtils.cs" />
+    <Compile Include="Beagle.Util\KonqHistoryUtil.cs" />
+    <Compile Include="Beagle.Util\LineReader.cs" />
+    <Compile Include="Beagle.Util\Log.cs" />
+    <Compile Include="Beagle.Util\Logger.cs" />
+    <Compile Include="Beagle.Util\MultiReader.cs" />
+    <Compile Include="Beagle.Util\NautilusTools.cs" />
+    <Compile Include="Beagle.Util\NetworkService.cs" />
+    <Compile Include="Beagle.Util\Note.cs" />
+    <Compile Include="Beagle.Util\OperaHistory.cs" />
+    <Compile Include="Beagle.Util\Password.cs" />
+    <Compile Include="Beagle.Util\PathFinder.cs" />
+    <Compile Include="Beagle.Util\PullingReader.cs" />
+    <Compile Include="Beagle.Util\QueryKeywordMapping.cs" />
+    <Compile Include="Beagle.Util\ReflectionFu.cs" />
+    <Compile Include="Beagle.Util\SafeProcess.cs" />
+    <Compile Include="Beagle.Util\Scheduler.cs" />
+    <Compile Include="Beagle.Util\SmallIntArray.cs" />
+    <Compile Include="Beagle.Util\Stopwatch.cs" />
+    <Compile Include="Beagle.Util\StringFu.cs" />
+    <Compile Include="Beagle.Util\StringMatcher.cs" />
+    <Compile Include="Beagle.Util\SystemInformation.cs" />
+    <Compile Include="Beagle.Util\SystemPriorities.cs" />
+    <Compile Include="Beagle.Util\TeeTextWriter.cs" />
+    <Compile Include="Beagle.Util\ThreadPond.cs" />
+    <Compile Include="Beagle.Util\Thunderbird.cs" />
+    <Compile Include="Beagle.Util\Timeline.cs" />
+    <Compile Include="Beagle.Util\TopScores.cs" />
+    <Compile Include="Beagle.Util\TypeCacheAttribute.cs" />
+    <Compile Include="Beagle.Util\UnclosableStream.cs" />
+    <Compile Include="Beagle.Util\UriFu.cs" />
+    <Compile Include="Beagle.Util\VersionFu.cs" />
+    <Compile Include="Beagle.Util\XdgMime.cs" />
+    <Compile Include="Beagle.Util\XKeybinder.cs" />
+    <Compile Include="Beagle.Util\XmlFu.cs" />
+    <Compile Include="F-Spot\Bim.cs" />
+    <Compile Include="F-Spot\BitConverter.cs" />
+    <Compile Include="F-Spot\Exif.cs" />
+    <Compile Include="F-Spot\IptcFile.cs" />
+    <Compile Include="F-Spot\JpegHeader.cs" />
+    <Compile Include="F-Spot\MetadataStore.cs" />
+    <Compile Include="F-Spot\PixbufUtils.cs" />
+    <Compile Include="F-Spot\PngFile.cs" />
+    <Compile Include="F-Spot\Tiff.cs" />
+    <Compile Include="F-Spot\XmpFile.cs" />
+    <Compile Include="Hal\AccessControl.cs" />
+    <Compile Include="Hal\Context.cs" />
+    <Compile Include="Hal\CPUFreq.cs" />
+    <Compile Include="Hal\Device.cs" />
+    <Compile Include="Hal\IAccessControl.cs" />
+    <Compile Include="Hal\ICPUFreq.cs" />
+    <Compile Include="Hal\IDevice.cs" />
+    <Compile Include="Hal\IKillSwitch.cs" />
+    <Compile Include="Hal\ILaptopPanel.cs" />
+    <Compile Include="Hal\ILightSensor.cs" />
+    <Compile Include="Hal\IManager.cs" />
+    <Compile Include="Hal\IStorage.cs" />
+    <Compile Include="Hal\ISystemPowerManagement.cs" />
+    <Compile Include="Hal\IVolume.cs" />
+    <Compile Include="Hal\IVolumeCrypto.cs" />
+    <Compile Include="Hal\KillSwitch.cs" />
+    <Compile Include="Hal\LaptopPanel.cs" />
+    <Compile Include="Hal\LightSensor.cs" />
+    <Compile Include="Hal\Manager.cs" />
+    <Compile Include="Hal\PropertyModification.cs" />
+    <Compile Include="Hal\Storage.cs" />
+    <Compile Include="Hal\SystemPowerManagement.cs" />
+    <Compile Include="Hal\Volume.cs" />
+    <Compile Include="Hal\VolumeCrypto.cs" />
+    <Compile Include="SemWeb\Algos.cs" />
+    <Compile Include="SemWeb\Inference.cs" />
+    <Compile Include="SemWeb\LiteralFilters.cs" />
+    <Compile Include="SemWeb\MemoryStore.cs" />
+    <Compile Include="SemWeb\N3Reader.cs" />
+    <Compile Include="SemWeb\N3Writer.cs" />
+    <Compile Include="SemWeb\NamespaceManager.cs" />
+    <Compile Include="SemWeb\Query.cs" />
+    <Compile Include="SemWeb\RdfReader.cs" />
+    <Compile Include="SemWeb\RDFS.cs" />
+    <Compile Include="SemWeb\RdfWriter.cs" />
+    <Compile Include="SemWeb\RdfXmlReader.cs" />
+    <Compile Include="SemWeb\RdfXmlWriter.cs" />
+    <Compile Include="SemWeb\Remote.cs" />
+    <Compile Include="SemWeb\Resource.cs" />
+    <Compile Include="SemWeb\RSquary.cs" />
+    <Compile Include="SemWeb\SQLStore.cs" />
+    <Compile Include="SemWeb\Statement.cs" />
+    <Compile Include="SemWeb\Store.cs" />
+    <Compile Include="SemWeb\UriMap.cs" />
+    <Compile Include="SemWeb\Util.cs" />
+    <Compile Include="SemWeb\XPathSemWebNavigator.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <Reference Include="atk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="gconf-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="gdk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="glib-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="gnome-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="gnome-vfs-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="ICSharpCode.SharpZipLib, Version=0.85.4.369, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\win-deps\ICSharpCode.SharpZipLib.dll</HintPath>
+    </Reference>
+    <Reference Include="Mono.Data.Sqlite, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\win-deps\Mono.Data.Sqlite.dll</HintPath>
+    </Reference>
+    <Reference Include="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\win-deps\Mono.Posix.dll</HintPath>
+    </Reference>
+    <Reference Include="NDesk.DBus, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f6716e4f9b2ed099, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\win-deps\NDesk.DBus.dll</HintPath>
+    </Reference>
+    <Reference Include="NDesk.DBus.GLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f6716e4f9b2ed099, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\win-deps\NDesk.DBus.GLib.dll</HintPath>
+    </Reference>
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Web" />
+    <Reference Include="System.XML" />
+  </ItemGroup>
+</Project>
\ No newline at end of file

Modified: branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/Archive.cs
==============================================================================
--- branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/Archive.cs	(original)
+++ branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/Archive.cs	Thu Feb 28 20:43:08 2008
@@ -165,9 +165,9 @@
 			get {
 				throw new System.NotSupportedException();
 			}
-			set {
-				throw new System.NotSupportedException();
-			}
+			//set {
+			//	throw new System.NotSupportedException();
+			//}
 		}
 		public override long Position {
 			get {

Modified: branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/NautilusTools.cs
==============================================================================
--- branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/NautilusTools.cs	(original)
+++ branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/NautilusTools.cs	Thu Feb 28 20:43:08 2008
@@ -137,6 +137,7 @@
 			return directory;
 		}
 
+#if false
 		public static void Main (string[] args)
 		{
 			foreach (string a in args) {
@@ -152,8 +153,8 @@
 
 					Console.WriteLine ();
 				}
-			}
-			
+			}			
 		}
+#endif
 	}
 }

Modified: branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/PathFinder.cs
==============================================================================
--- branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/PathFinder.cs	(original)
+++ branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/PathFinder.cs	Thu Feb 28 20:43:08 2008
@@ -2,6 +2,7 @@
 // PathFinder.cs
 //
 // Copyright (C) 2004 Novell, Inc.
+// Copyright (C) 2008 Lukas Lipka <lukaslipka gmail com>
 //
 
 //
@@ -30,15 +31,10 @@
 
 namespace Beagle.Util {
 
-	public class PathFinder {
-
-		private PathFinder () { }
+	public static class PathFinder {
 
 		static public string[] Paths {
-			get {
-				string env_var = Environment.GetEnvironmentVariable ("PATH");
-				return env_var.Split (':');
-			}
+			get { return Environment.GetEnvironmentVariable ("PATH").Split (':'); }
 		}
 
 		static public string PkgLibDir {

Modified: branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/XdgMime.cs
==============================================================================
--- branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/XdgMime.cs	(original)
+++ branches/beagle-win32-branch/src/Beagle.Util/Beagle.Util/XdgMime.cs	Thu Feb 28 20:43:08 2008
@@ -186,7 +186,7 @@
 			return true;
 		}
 
-#if true
+#if false
 		public static void Main (string[] args)
 		{
 			if (args.Length != 1)

Added: branches/beagle-win32-branch/src/Beagle/Beagle.csproj
==============================================================================
--- (empty file)
+++ branches/beagle-win32-branch/src/Beagle/Beagle.csproj	Thu Feb 28 20:43:08 2008
@@ -0,0 +1,76 @@
+ï<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>8.0.50727</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{F6C2E799-417F-4C13-B5A8-47B98A9B7733}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>Beagle</RootNamespace>
+    <AssemblyName>Beagle</AssemblyName>
+    <StartupObject>
+    </StartupObject>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+  <ItemGroup>
+    <Compile Include="Beagle\TcpTransport.cs" />
+    <Compile Include="Beagle\Hit.cs" />
+    <Compile Include="Beagle\IIndexableGenerator.cs" />
+    <Compile Include="Beagle\Indexable.cs" />
+    <Compile Include="Beagle\IndexingService.cs" />
+    <Compile Include="Beagle\IndexingStatusResponse.cs" />
+    <Compile Include="Beagle\InformationalMessagesRequest.cs" />
+    <Compile Include="Beagle\Message.cs" />
+    <Compile Include="Beagle\Property.cs" />
+    <Compile Include="Beagle\Query.cs" />
+    <Compile Include="Beagle\QueryableStatus.cs" />
+    <Compile Include="Beagle\QueryPart.cs" />
+    <Compile Include="Beagle\QueryResponses.cs" />
+    <Compile Include="Beagle\RemoteControl.cs" />
+    <Compile Include="Beagle\Snippet.cs" />
+    <Compile Include="Beagle\Transport.cs" />
+    <Compile Include="Beagle\UnixTransport.cs" />
+    <Compile Include="Beagle\Versioned.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <Reference Include="glib-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\win-deps\Mono.Posix.dll</HintPath>
+    </Reference>
+    <Reference Include="System" />
+    <Reference Include="System.XML" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\Beagle.Util\Beagle.Util.csproj">
+      <Project>{EED7CCE3-A6A2-4163-ACBC-0CA649070432}</Project>
+      <Name>Beagle.Util</Name>
+    </ProjectReference>
+  </ItemGroup>
+</Project>
\ No newline at end of file

Modified: branches/beagle-win32-branch/src/Beagle/Beagle/IIndexableGenerator.cs
==============================================================================
--- branches/beagle-win32-branch/src/Beagle/Beagle/IIndexableGenerator.cs	(original)
+++ branches/beagle-win32-branch/src/Beagle/Beagle/IIndexableGenerator.cs	Thu Feb 28 20:43:08 2008
@@ -24,18 +24,13 @@
 // DEALINGS IN THE SOFTWARE.
 //
 
-
-
-namespace Beagle {
-
-	public interface IIndexableGenerator {
-
+namespace Beagle
+{
+	public interface IIndexableGenerator
+	{
 		Indexable GetNextIndexable ();
-
 		bool HasNextIndexable ();
-
 		string StatusName { get; }
-
 		void PostFlushHook ();
 	}
 }

Modified: branches/beagle-win32-branch/src/Beagle/Beagle/Message.cs
==============================================================================
--- branches/beagle-win32-branch/src/Beagle/Beagle/Message.cs	(original)
+++ branches/beagle-win32-branch/src/Beagle/Beagle/Message.cs	Thu Feb 28 20:43:08 2008
@@ -85,7 +85,12 @@
 			this.keepalive = keepalive;
 
 			// Register the Unix socket transport by default
+
+#if LINUX
 			this.RegisterTransport (new UnixTransport ());
+#else
+			this.RegisterTransport (new TcpTransport ());
+#endif
 		}
 
 		public RequestMessage ()

Added: branches/beagle-win32-branch/src/Beagle/Beagle/TcpTransport.cs
==============================================================================
--- (empty file)
+++ branches/beagle-win32-branch/src/Beagle/Beagle/TcpTransport.cs	Thu Feb 28 20:43:08 2008
@@ -0,0 +1,252 @@
+//
+// TcpTransport.cs
+//
+// Copyright (C) 2005 Novell, Inc.
+// Copyright (C) 2008 Lukas Lipka <lukaslipka gmail com>
+//
+
+using System;
+using System.IO;
+using System.Net;
+using System.Net.Sockets;
+using System.Xml.Serialization;
+using System.Threading;
+
+using Beagle.Util;
+
+namespace Beagle {
+
+	public class TcpTransport : Transport {
+		
+		private TcpClient client = null;
+		private const int port = 2517;
+
+		private byte[] network_data = new byte [4096];
+
+		public TcpTransport () : base (true)
+		{
+		}
+
+		public override void Close ()
+		{
+			bool previously_closed = this.IsClosed;
+
+			// Important to set this before we close the
+			// UnixClient, since that will trigger the
+			// ReadCallback() method, reading 0 bytes off the
+			// wire, and we check this.closed in there.
+			this.IsClosed = true;
+
+			if (client != null) {
+				client.Close ();
+				client = null;
+			}
+
+			if (!previously_closed)
+				InvokeClosedEvent ();
+		}
+
+		protected override void SendRequest (RequestMessage request)
+		{
+			client = new TcpClient (new IPEndPoint (IPAddress.Loopback, port));
+			NetworkStream stream = client.GetStream ();
+			
+			base.SendRequest (request, stream);
+		}
+		
+		// This function will be called from its own thread
+		protected override void ReadCallback (IAsyncResult ar)
+		{
+			if (this.IsClosed)
+				return;
+
+			try {
+				NetworkStream stream = this.client.GetStream ();
+				int bytes_read = 0;
+
+				try { 
+					bytes_read = stream.EndRead (ar);
+				} catch (SocketException) {
+					Logger.Log.Debug ("Caught SocketException in ReadCallback");
+				} catch (IOException) {
+					Logger.Log.Debug ("Caught IOException in ReadCallback");
+				}
+
+				// Connection hung up, we're through
+				if (bytes_read == 0) {
+					this.Close ();
+					return;
+				}
+
+				int end_index = -1;
+				int prev_index = 0;
+
+				do {
+					// 0xff signifies end of message
+					end_index = ArrayFu.IndexOfByte (this.network_data, (byte) 0xff, prev_index);
+
+					int bytes_count = (end_index == -1 ? bytes_read : end_index) - prev_index;
+					this.BufferStream.Write (this.network_data, prev_index, bytes_count);
+
+					if (end_index != -1) {
+						MemoryStream deserialize_stream = this.BufferStream;
+						this.BufferStream = new MemoryStream ();
+						
+						deserialize_stream.Seek (0, SeekOrigin.Begin);
+						HandleResponse (deserialize_stream);
+						
+						// Move past the end-of-message marker
+						prev_index = end_index + 1;
+					}
+				} while (end_index != -1);
+
+				// Check to see if we're still connected, and keep
+				// looking for new data if so.
+				if (!this.IsClosed)
+					BeginRead ();
+			} catch (Exception e) {
+				Logger.Log.Error (e, "Got an exception while trying to read data:");
+			}
+		}
+
+		protected override void BeginRead ()
+		{
+			NetworkStream stream = this.client.GetStream ();
+
+			Array.Clear (this.network_data, 0, this.network_data.Length);
+			stream.BeginRead (this.network_data, 0, this.network_data.Length, new AsyncCallback (ReadCallback), null);
+		}
+
+		public override void SendAsyncBlocking (RequestMessage request)
+		{
+			Exception ex = null;
+
+			try {
+				SendRequest (request);
+			} catch (IOException e) {
+				ex = e;
+			} catch (SocketException e) {
+				ex = e;
+			}
+
+			if (ex != null) {
+				ResponseMessage resp = new ErrorResponse (ex);				
+				InvokeAsyncResponseEvent (resp);
+				return;
+			}
+			
+			NetworkStream stream = this.client.GetStream ();
+			MemoryStream deserialize_stream = new MemoryStream ();
+
+			// This buffer is annoyingly small on purpose, to avoid
+			// having to deal with the case of multiple messages
+			// in a single block.
+			byte [] buffer = new byte [32];
+
+			while (!this.IsClosed) {
+
+				Array.Clear (buffer, 0, buffer.Length);
+
+				int bytes_read = stream.Read (buffer, 0, buffer.Length);
+
+				if (bytes_read == 0)
+					break;
+
+				int end_index;
+				end_index = ArrayFu.IndexOfByte (buffer, (byte) 0xff);
+
+				if (end_index == -1) {
+					deserialize_stream.Write (buffer, 0, bytes_read);
+				} else {
+					deserialize_stream.Write (buffer, 0, end_index);
+					deserialize_stream.Seek (0, SeekOrigin.Begin);
+
+					ResponseMessage resp = null;
+
+					try {
+						ResponseWrapper wrapper;
+						wrapper = (ResponseWrapper) resp_serializer.Deserialize (deserialize_stream);
+						
+						resp = wrapper.Message;
+					} catch (Exception e) {
+						resp = new ErrorResponse (e);
+					}
+
+					InvokeAsyncResponseEvent (resp);
+
+					deserialize_stream.Close ();
+					deserialize_stream = new MemoryStream ();
+					if (bytes_read - end_index - 1 > 0)
+						deserialize_stream.Write (buffer, end_index + 1, bytes_read - end_index - 1);
+				}
+			}
+		}
+
+
+		public override ResponseMessage Send (RequestMessage request)
+		{
+			if (request.Keepalive)
+				throw new Exception ("A blocking connection on a keepalive request is not allowed");
+
+			Exception throw_me = null;
+
+			try {
+				SendRequest (request);
+			} catch (IOException e) {
+				throw_me = e;
+			} catch (SocketException e) {
+				throw_me = e;
+			}
+
+			if (throw_me != null)
+				throw new ResponseMessageException (throw_me);
+
+			NetworkStream stream = this.client.GetStream ();
+			int bytes_read, end_index = -1;
+
+			do {
+				bytes_read = stream.Read (this.network_data, 0, 4096);
+
+				//Logger.Log.Debug ("Read {0} bytes", bytes_read);
+
+				if (bytes_read > 0) {
+					// 0xff signifies end of message
+					end_index = ArrayFu.IndexOfByte (this.network_data, (byte) 0xff);
+					
+					this.BufferStream.Write (this.network_data, 0,
+								  end_index == -1 ? bytes_read : end_index);
+				}
+			} while (bytes_read > 0 && end_index == -1);
+
+			// It's possible that the server side shut down the
+			// connection before we had a chance to read any data.
+			// If this is the case, throw a rather descriptive
+			// exception.
+			if (this.BufferStream.Length == 0) {
+				this.BufferStream.Close ();
+				throw new ResponseMessageException ("Socket was closed before any data could be read");
+			}
+
+			this.BufferStream.Seek (0, SeekOrigin.Begin);
+			
+			ResponseMessage resp = null;
+
+			try {
+				ResponseWrapper wrapper = (ResponseWrapper)resp_serializer.Deserialize (this.BufferStream);
+				resp = wrapper.Message;
+			} catch (Exception e) {
+				this.BufferStream.Seek (0, SeekOrigin.Begin);
+				StreamReader r = new StreamReader (this.BufferStream);
+				throw_me = new ResponseMessageException (e, "Exception while deserializing response", String.Format ("Message contents: '{0}'", r.ReadToEnd ()));
+				this.BufferStream.Seek (0, SeekOrigin.Begin);
+			}
+
+			this.BufferStream.Close ();
+
+			if (throw_me != null)
+				throw throw_me;
+			
+			return resp;
+		}
+	}
+}

Modified: branches/beagle-win32-branch/src/Beagle/Beagle/UnixTransport.cs
==============================================================================
--- branches/beagle-win32-branch/src/Beagle/Beagle/UnixTransport.cs	(original)
+++ branches/beagle-win32-branch/src/Beagle/Beagle/UnixTransport.cs	Thu Feb 28 20:43:08 2008
@@ -33,8 +33,6 @@
 using System.Threading;
 using Mono.Unix;
 
-using GLib;
-
 using Beagle.Util;
 
 namespace Beagle {

Added: branches/beagle-win32-branch/win-deps/ICSharpCode.SharpZipLib.dll
==============================================================================
Binary file. No diff available.

Added: branches/beagle-win32-branch/win-deps/Mono.Cairo.dll
==============================================================================
Binary file. No diff available.

Added: branches/beagle-win32-branch/win-deps/Mono.Data.Sqlite.dll
==============================================================================
Binary file. No diff available.

Added: branches/beagle-win32-branch/win-deps/Mono.Posix.dll
==============================================================================
Binary file. No diff available.

Added: branches/beagle-win32-branch/win-deps/NDesk.DBus.GLib.dll
==============================================================================
Binary file. No diff available.

Added: branches/beagle-win32-branch/win-deps/NDesk.DBus.dll
==============================================================================
Binary file. No diff available.

Added: branches/beagle-win32-branch/win-deps/sqlite3.dll
==============================================================================
Binary file. No diff available.



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