From: <an...@us...> - 2007-03-08 05:17:52
|
Revision: 167 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=167&view=rev Author: and-81 Date: 2007-03-07 21:17:49 -0800 (Wed, 07 Mar 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IgorPlugUSB/IgorPlugUSB.csproj trunk/plugins/MCEReplacement/MCEReplacement.cs trunk/plugins/MessagePlugin/MessagePlugin.cs trunk/plugins/MessagePlugin/MessagePlugin.csproj Added Paths: ----------- trunk/plugins/ComSkipLauncher/ trunk/plugins/ComSkipLauncher/AssemblyInfo.cs trunk/plugins/ComSkipLauncher/ComSkipLauncher.cs trunk/plugins/ComSkipLauncher/ComSkipLauncher.csproj Added: trunk/plugins/ComSkipLauncher/AssemblyInfo.cs =================================================================== --- trunk/plugins/ComSkipLauncher/AssemblyInfo.cs (rev 0) +++ trunk/plugins/ComSkipLauncher/AssemblyInfo.cs 2007-03-08 05:17:49 UTC (rev 167) @@ -0,0 +1,39 @@ +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +// +[assembly: AssemblyTitle("ComSkipLauncher")] +[assembly: AssemblyDescription("Launches ComSkip when a recording completes")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("For MediaPortal")] +[assembly: AssemblyProduct("ComSkipLauncher plugin by and-81")] +[assembly: AssemblyCopyright("Aaron Dinnage")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: + +[assembly: AssemblyVersion("1.0.2.0")] +[assembly: AssemblyFileVersion("1.0.2.0")] + +[assembly: CLSCompliant(true)] \ No newline at end of file Added: trunk/plugins/ComSkipLauncher/ComSkipLauncher.cs =================================================================== --- trunk/plugins/ComSkipLauncher/ComSkipLauncher.cs (rev 0) +++ trunk/plugins/ComSkipLauncher/ComSkipLauncher.cs 2007-03-08 05:17:49 UTC (rev 167) @@ -0,0 +1,88 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Text; +using System.Windows.Forms; + +using MediaPortal.GUI.Library; +using MediaPortal.TV.Database; +using MediaPortal.TV.Recording; + +namespace MediaPortal.Plugins +{ + + public class ComSkipLauncher : ISetupForm + { + + #region Members + + string _comSkipPath = "C:\\ComSkip\\ComSkip.exe"; + + #endregion Members + + #region IPlugin Members + + public void Start() + { + LoadSettings(); + Recorder.OnTvRecordingEnded += new MediaPortal.TV.Recording.Recorder.OnTvRecordingHandler(Recorder_OnTvRecordingEnded); + } + public void Stop() + { + Recorder.OnTvRecordingEnded -= new MediaPortal.TV.Recording.Recorder.OnTvRecordingHandler(Recorder_OnTvRecordingEnded); + } + + #endregion + + #region ISetupForm Members + + public string Author() { return "and-81"; } + public bool CanEnable() { return true; } + public bool DefaultEnabled() { return true; } + public string Description() { return "Launches ComSkip when a recording completes."; } + public int GetWindowId() { return 0; } + public bool HasSetup() { return true; } + public string PluginName() { return "ComSkip Launcher"; } + + public void ShowPlugin() + { + // TODO: Configuration + } + + public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage) + { + strButtonText = strButtonImage = strButtonImageFocus = strPictureImage = ""; + return false; + } + + #endregion + + #region Implementation + + void Recorder_OnTvRecordingEnded(string recordingFilename, TVRecording recording, TVProgram program) + { + Process comskip = new Process(); + comskip.StartInfo = new ProcessStartInfo(); + comskip.StartInfo.Arguments = string.Format("--playnice --zpcut {0}", recordingFilename); + comskip.StartInfo.CreateNoWindow = true; + comskip.StartInfo.FileName = _comSkipPath; + //comskip.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; + comskip.StartInfo.WorkingDirectory = Path.GetDirectoryName(recordingFilename); + + comskip.Start(); + + comskip.WaitForExit(); + } + + void LoadSettings() + { + + } + + + #endregion Implementation + + } + +} Added: trunk/plugins/ComSkipLauncher/ComSkipLauncher.csproj =================================================================== --- trunk/plugins/ComSkipLauncher/ComSkipLauncher.csproj (rev 0) +++ trunk/plugins/ComSkipLauncher/ComSkipLauncher.csproj 2007-03-08 05:17:49 UTC (rev 167) @@ -0,0 +1,69 @@ +<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>{35EE9B81-1774-498E-94A0-0FD47E213FB5}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>MediaPortal.Plugins</RootNamespace> + <AssemblyName>ComSkipLauncher</AssemblyName> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>false</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <UseVSHostingProcess>false</UseVSHostingProcess> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>none</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants> + </DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <UseVSHostingProcess>false</UseVSHostingProcess> + </PropertyGroup> + <ItemGroup> + <Reference Include="Core, Version=1.0.2581.1884, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\MediaPortal\Core\bin\Release\Core.dll</HintPath> + <Private>False</Private> + </Reference> + <Reference Include="Databases, Version=1.0.2623.6915, Culture=neutral, processorArchitecture=x86"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\MediaPortal\xbmc\bin\Release\Databases.dll</HintPath> + <Private>False</Private> + </Reference> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Windows.Forms" /> + <Reference Include="System.Xml" /> + <Reference Include="TVCapture, Version=1.0.2623.6917, Culture=neutral, processorArchitecture=x86"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\MediaPortal\xbmc\bin\Release\TVCapture.dll</HintPath> + <Private>False</Private> + </Reference> + </ItemGroup> + <ItemGroup> + <Compile Include="ComSkipLauncher.cs" /> + <Compile Include="AssemblyInfo.cs" /> + </ItemGroup> + <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> + --> + <PropertyGroup> + <PostBuildEvent>copy "*.*" "\MediaPortal Development\Plugin Releases\ComSkip Launcher\"</PostBuildEvent> + </PropertyGroup> +</Project> \ No newline at end of file Modified: trunk/plugins/IgorPlugUSB/IgorPlugUSB.csproj =================================================================== --- trunk/plugins/IgorPlugUSB/IgorPlugUSB.csproj 2007-03-07 21:29:28 UTC (rev 166) +++ trunk/plugins/IgorPlugUSB/IgorPlugUSB.csproj 2007-03-08 05:17:49 UTC (rev 167) @@ -5,7 +5,7 @@ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProductVersion>8.0.50727</ProductVersion> <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{88520E4C-5C49-478A-8AFA-959B45075922}</ProjectGuid> + <ProjectGuid>{2985E855-6D03-4A36-A488-94ACDE7FE286}</ProjectGuid> <OutputType>Library</OutputType> <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>MediaPortal.Plugins</RootNamespace> Modified: trunk/plugins/MCEReplacement/MCEReplacement.cs =================================================================== --- trunk/plugins/MCEReplacement/MCEReplacement.cs 2007-03-07 21:29:28 UTC (rev 166) +++ trunk/plugins/MCEReplacement/MCEReplacement.cs 2007-03-08 05:17:49 UTC (rev 167) @@ -106,8 +106,6 @@ static bool _mpMCERemote; static string _mpSerialUirPort; - SendMessageHandler _sendMessageHandler; - int[] _mceRemoteMap = null; int[] _differentRemoteMap = null; @@ -354,10 +352,7 @@ // Register with MediaPortal to receive GUI Messages ... if (ControlExternalEnabled || EventMapperEnabled) - { - _sendMessageHandler = new SendMessageHandler(OnMessage); - GUIWindowManager.Receivers += _sendMessageHandler; - } + GUIWindowManager.Receivers += new SendMessageHandler(OnMessage); if (LogVerbose) Log.Info("MCEReplacement: Started"); @@ -372,7 +367,7 @@ MapEvent(MappedEvent.MappingEvent.MediaPortal_Stop); if (ControlExternalEnabled || EventMapperEnabled) - GUIWindowManager.Receivers -= _sendMessageHandler; + GUIWindowManager.Receivers -= new SendMessageHandler(OnMessage); _defaultInputHandler = null; Modified: trunk/plugins/MessagePlugin/MessagePlugin.cs =================================================================== --- trunk/plugins/MessagePlugin/MessagePlugin.cs 2007-03-07 21:29:28 UTC (rev 166) +++ trunk/plugins/MessagePlugin/MessagePlugin.cs 2007-03-08 05:17:49 UTC (rev 167) @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Text; - using System.Windows.Forms; using MediaPortal.GUI.Library; Modified: trunk/plugins/MessagePlugin/MessagePlugin.csproj =================================================================== --- trunk/plugins/MessagePlugin/MessagePlugin.csproj 2007-03-07 21:29:28 UTC (rev 166) +++ trunk/plugins/MessagePlugin/MessagePlugin.csproj 2007-03-08 05:17:49 UTC (rev 167) @@ -7,7 +7,7 @@ <ProjectGuid>{31589D6D-5540-413D-8D6B-ACED28727686}</ProjectGuid> <OutputType>Library</OutputType> <AppDesignerFolder>Properties</AppDesignerFolder> - <RootNamespace>MessagePlugin</RootNamespace> + <RootNamespace>MediaPortal.Plugins</RootNamespace> <AssemblyName>MessagePlugin</AssemblyName> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |