From: <an...@us...> - 2008-01-05 14:28:01
|
Revision: 1208 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1208&view=rev Author: and-81 Date: 2008-01-05 06:27:56 -0800 (Sat, 05 Jan 2008) Log Message: ----------- 1.0.4.1 Modified Paths: -------------- trunk/plugins/IR Server Suite/Documentation/IR Server Suite.hhc trunk/plugins/IR Server Suite/Documentation/IR Server Suite.hhp trunk/plugins/IR Server Suite/Documentation/Plugins/TV2 Blaster Plugin/index.html trunk/plugins/IR Server Suite/Documentation/Plugins/TV3 Blaster Plugin/index.html trunk/plugins/IR Server Suite/Documentation/introduction.html trunk/plugins/IR Server Suite/Documentation/legal.html trunk/plugins/IR Server Suite/Documentation/new.html trunk/plugins/IR Server Suite/Documentation/troubleshooting.html trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Custom HID Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/FusionRemote Receiver/FusionRemoteReceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/Girder Plugin/Girder Plugin.cs trunk/plugins/IR Server Suite/IR Server Plugins/IR Server Plugin Interface/IRServerPluginBase.cs trunk/plugins/IR Server Suite/IR Server Plugins/IRMan Receiver/IRMan Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/IRTrans Transceiver/IRTransTransceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/RedEye Blaster/RedEye Blaster.cs trunk/plugins/IR Server Suite/IR Server Plugins/Serial IR Blaster/Serial IR Blaster.cs trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/UirtTransceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/Wii Remote Receiver/Wii Remote Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/Windows Message Receiver/Windows Message Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/X10 Transceiver/X10Transceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.cs trunk/plugins/IR Server Suite/IR Server Suite - Debug.nsi trunk/plugins/IR Server Suite/IR Server Suite - Release.nsi trunk/plugins/IR Server Suite/IR Server Suite.sln trunk/plugins/IR Server Suite/MediaPortal Plugins/TV2 Blaster Plugin/Forms/ExternalChannels.cs trunk/plugins/IR Server Suite/MediaPortal Plugins/TV2 Blaster Plugin/Forms/StbSetup.cs trunk/plugins/IR Server Suite/MediaPortal Plugins/TV2 Blaster Plugin/TV2BlasterPlugin.cs trunk/plugins/IR Server Suite/MediaPortal Plugins/TV3 Blaster Plugin/Forms/ExternalChannels.cs trunk/plugins/IR Server Suite/MediaPortal Plugins/TV3 Blaster Plugin/Forms/StbSetup.cs trunk/plugins/IR Server Suite/MediaPortal Plugins/TV3 Blaster Plugin/TV3BlasterPlugin.cs trunk/plugins/MCEReplacement/Forms/ExternalChannels.cs trunk/plugins/MCEReplacement/Forms/StbSetup.cs trunk/plugins/MCEReplacement/MCEReplacement.cs Added Paths: ----------- trunk/plugins/IR Server Suite/Documentation/Input Service/ trunk/plugins/IR Server Suite/Documentation/Input Service/advanced.png trunk/plugins/IR Server Suite/Documentation/Input Service/configuration.png trunk/plugins/IR Server Suite/Documentation/Input Service/index.html trunk/plugins/IR Server Suite/Documentation/LICENSE.MIT trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/ trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/Ads Tech PTV-335 Receiver.csproj trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/AdsTechPTV335Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/Properties/ trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Util Apps/Log File Multi-Viewer/ trunk/plugins/IR Server Suite/Util Apps/Log File Multi-Viewer/FormMain.Designer.cs trunk/plugins/IR Server Suite/Util Apps/Log File Multi-Viewer/FormMain.cs trunk/plugins/IR Server Suite/Util Apps/Log File Multi-Viewer/FormMain.resx trunk/plugins/IR Server Suite/Util Apps/Log File Multi-Viewer/Log File Multi-Viewer.csproj trunk/plugins/IR Server Suite/Util Apps/Log File Multi-Viewer/LogLine.cs trunk/plugins/IR Server Suite/Util Apps/Log File Multi-Viewer/Program.cs trunk/plugins/IR Server Suite/Util Apps/Log File Multi-Viewer/Properties/ trunk/plugins/IR Server Suite/Util Apps/Log File Multi-Viewer/Properties/AssemblyInfo.cs Removed Paths: ------------- trunk/plugins/IR Server Suite/Documentation/IR Server/ Property Changed: ---------------- trunk/plugins/IR Server Suite/IR Server Plugins/Direct Input Receiver/ Modified: trunk/plugins/IR Server Suite/Documentation/IR Server Suite.hhc =================================================================== --- trunk/plugins/IR Server Suite/Documentation/IR Server Suite.hhc 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/Documentation/IR Server Suite.hhc 2008-01-05 14:27:56 UTC (rev 1208) @@ -14,8 +14,8 @@ <param name="Local" value="introduction.html"> </OBJECT> <LI> <OBJECT type="text/sitemap"> - <param name="Name" value="IR Server"> - <param name="Local" value="IR Server\index.html"> + <param name="Name" value="Input Service"> + <param name="Local" value="Input Service\index.html"> </OBJECT> <LI> <OBJECT type="text/sitemap"> <param name="Name" value="Tray Launcher"> Modified: trunk/plugins/IR Server Suite/Documentation/IR Server Suite.hhp =================================================================== --- trunk/plugins/IR Server Suite/Documentation/IR Server Suite.hhp 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/Documentation/IR Server Suite.hhp 2008-01-05 14:27:56 UTC (rev 1208) @@ -14,7 +14,7 @@ [FILES] introduction.html new.html -IR Server\index.html +Input Service\index.html Plugins\index.html Plugins\MP Blast Zone Plugin\index.html Plugins\MP Control Plugin\index.html Added: trunk/plugins/IR Server Suite/Documentation/Input Service/advanced.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/IR Server Suite/Documentation/Input Service/advanced.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/IR Server Suite/Documentation/Input Service/configuration.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/IR Server Suite/Documentation/Input Service/configuration.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/IR Server Suite/Documentation/Input Service/index.html =================================================================== --- trunk/plugins/IR Server Suite/Documentation/Input Service/index.html (rev 0) +++ trunk/plugins/IR Server Suite/Documentation/Input Service/index.html 2008-01-05 14:27:56 UTC (rev 1208) @@ -0,0 +1,30 @@ +<HTML> +<HEAD><TITLE>Input Service Configuration</TITLE></HEAD> +<BODY> + +<H2>Input Service Configuration<BR><HR COLOR="RED"></H2> + +<IMG SRC="configuration.png"><BR> +This is the Input Service configuration window.<BR> + +<P><B>Device plugin:</B><BR> +Choose the device(s) you want to use for receiving and the device you want to use for transmitting (blasting) by placing a mark in the box under the appropriate column. By double-clicking the device name in the device plugin list you can select both receiving and transmitting cabilities for that device at the same time. Note that you do not need to have a device selected in either column, that is, you can run the Input Service without a transmit, receive or either type of device enabled.<BR> +<BR> +Click "Configure" to set any device specific options.</P> + +<BR> + +<IMG SRC="advanced.png"><BR> +This is the Input Service advanced configuration window.<BR> + +<P><B>Mode:</B><BR> +This option sets the mode that the Input Service will operate in.<BR> +<UL> +<LI><B>Server mode</B> - This is the default option where the program operates as a central server hosting the locally connected IR device's capabilities to other plugins and applications in the suite.</LI> +<LI><B>Button relay mode</B> - When in this mode the server will relay button presses recieved from the IR device to another IR Server.</LI> +<LI><B>Repeater mode</B> - This mode has the server running as a repeater for another Input Service on another machine. When the host Input Service transmits an IR command the repeater mode server will also transmit the same IR command.</LI> +</UL> +</P> + +</BODY> +</HTML> Added: trunk/plugins/IR Server Suite/Documentation/LICENSE.MIT =================================================================== --- trunk/plugins/IR Server Suite/Documentation/LICENSE.MIT (rev 0) +++ trunk/plugins/IR Server Suite/Documentation/LICENSE.MIT 2008-01-05 14:27:56 UTC (rev 1208) @@ -0,0 +1,23 @@ + + +The MIT License + +Copyright (c) <year> <copyright holders> + +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. Modified: trunk/plugins/IR Server Suite/Documentation/Plugins/TV2 Blaster Plugin/index.html =================================================================== --- trunk/plugins/IR Server Suite/Documentation/Plugins/TV2 Blaster Plugin/index.html 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/Documentation/Plugins/TV2 Blaster Plugin/index.html 2008-01-05 14:27:56 UTC (rev 1208) @@ -4,6 +4,10 @@ <H2>TV2 Blaster Plugin<BR><HR COLOR="RED"></H2> +<P>This MediaPortal plugin is for tuning external channels (i.e. on Set Top Boxes) for the MediaPortal TV Engine 2 (the default TV system built into MediaPortal 0.2.3.0).</P> + +<P>You will need to create channels for the Set Top Box channels you want the plugin to handle. They must be marked as "External" and given a channel number to be used by the plugin. This can be done in the MediaPortal Configuration program.</P> + <IMG SRC="configuration.png"><BR> This is the plugin configuration window.<BR> Modified: trunk/plugins/IR Server Suite/Documentation/Plugins/TV3 Blaster Plugin/index.html =================================================================== --- trunk/plugins/IR Server Suite/Documentation/Plugins/TV3 Blaster Plugin/index.html 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/Documentation/Plugins/TV3 Blaster Plugin/index.html 2008-01-05 14:27:56 UTC (rev 1208) @@ -4,6 +4,10 @@ <H2>TV3 Blaster Plugin<BR><HR COLOR="RED"></H2> +<P>This MediaPortal plugin is for tuning external channels (i.e. on Set Top Boxes) for the MediaPortal TV Engine 3 (TV Server).</P> + +<P>You will need to create channels for the Set Top Box channels you want the plugin to handle. They must be marked as "External" and given a channel number to be used by the plugin. This can be done in the TV Server Configuration program.</P> + <IMG SRC="configuration.png"><BR> This is the plugin configuration window.<BR> Modified: trunk/plugins/IR Server Suite/Documentation/introduction.html =================================================================== --- trunk/plugins/IR Server Suite/Documentation/introduction.html 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/Documentation/introduction.html 2008-01-05 14:27:56 UTC (rev 1208) @@ -8,11 +8,11 @@ <P><B>How does this work?</B><BR> <BR> -You install IR Server on a computer that has an IR Device attached to it. IR Server then provides access to that IR Device for all the plugins and applications in the suite, no matter where those applications and plugins are running on your network.<BR> +You install Input Service on a computer that has an IR Device attached to it. Input Service then provides access to that IR Device for all the plugins and applications in the suite, no matter where those applications and plugins are running on your network.<BR> <BR> You don't have to have a LAN (Network) to use IR Server Suite, because all the applications and plugins can operate on the one machine too.<BR> <BR> -By having one point of access to the IR Device, IR Server regulates the communications with the IR Device. This means that multiple plugins and applications can be accessing the device at effectively the same time without interfering with each other.<BR> +By having one point of access to the IR Device, Input Service regulates the communications with the IR Device. This means that multiple plugins and applications can be accessing the device at effectively the same time without interfering with each other.<BR> <BR> This means, for example, the MediaPortal TV Server as well as the MediaPortal client can share the device. And by using other applications in the suite you can control your whole PC.<BR> @@ -20,11 +20,11 @@ <P><B>Suite Overview</B><BR> <BR> -<A HREF="IR Server\index.html">IR Server</A><BR> -IR Server is the centre-piece of the system. As the name suggests, it is the server of the IR device. Other applications and plugins communicate with the IR Server to receive button press notification and to blast (transmit) or learn IR commands.<BR> +<A HREF="Input Service\index.html">Input Service</A><BR> +Input Service is the centre-piece of the system. As the name suggests, it is a windows service that provides access to the IR device. Other applications and plugins communicate with the Input Service to receive button press notification and to blast (transmit) or learn IR commands.<BR> <BR> <A HREF="Plugins\MP Control Plugin\index.html">MP Control Plugin</A><BR> -This MediaPortal plugin is the equivalent of the MCE Replacement Plugin, it connects to the IR Server to control MediaPortal.<BR> +This MediaPortal plugin is the equivalent of the MCE Replacement Plugin, it connects to the Input Service to control MediaPortal.<BR> <BR> <A HREF="Plugins\MP Blast Zone Plugin\index.html">MP Blast Zone Plugin</A><BR> This MediaPortal plugin lets you control your IR devices from within the MediaPortal GUI. By organising a menu structure inside the plugin you can blast IR commands, execute macros, launch applications, send windows messages, and jump to other screens within MediaPortal.<BR> @@ -42,7 +42,7 @@ This is a program in the same style as HIP and to a lesser extent Girder. It is designed to control your whole PC via Infrared Remote.<BR> <BR> <A HREF="Virtual Remote\index.html">Virtual Remote</A><BR> -Virtual Remote is a software remote control, styled as an Infrared remote control. It lets you simulate Infrared remote control commands either locally or over a network.<BR> +Virtual Remote is a software remote control, styled as an Infrared remote control. It lets you simulate remote control commands either locally or over a network.<BR> <BR> </P> Modified: trunk/plugins/IR Server Suite/Documentation/legal.html =================================================================== --- trunk/plugins/IR Server Suite/Documentation/legal.html 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/Documentation/legal.html 2008-01-05 14:27:56 UTC (rev 1208) @@ -25,9 +25,11 @@ <I>MediaPortal</I> is a trademark of <a href="http://www.team-mediaportal.com/">Team MediaPortal</a>.<br> <I>USB-UIRT</I> is a trademark of <a href="http://www.usbuirt.com/">Jon Rhees</a>.<br> <I>Nintendo</I> and <I>Wii</I> are trademarks of <a href="http://www.nintendo.com/">Nintendo</a>.<br> +<br> +<I>MCE Standby Tool</I> is Copyright 2006, 2007 <a href="http://www.xs4all.nl/~hveijk/mst/indexe.htm">Herman van Eijk</a>.<br> <br> -Other product and company names mentioned may be the trademarks of their respective owners. All efforts are made to ensure correctness and attribution, however errors or ommisions may occur. Please report any errors or ommisions to: AaronDinnage at Hotmail dot com<br> +Other product and company names mentioned may be the trademarks of their respective owners. All efforts are made to ensure correctness and attribution, however errors or ommisions may occur. Please report any errors or ommisions by getting in touch with me through the MediaPortal forums <a href="http://forum.team-mediaportal.com/forumdisplay.php?f=165">here</a>. </P> <P>Wii Remote support uses <a href="http://blogs.msdn.com/coding4fun/archive/2007/03/14/1879033.aspx">WiimoteLib</a>.</P> Modified: trunk/plugins/IR Server Suite/Documentation/new.html =================================================================== --- trunk/plugins/IR Server Suite/Documentation/new.html 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/Documentation/new.html 2008-01-05 14:27:56 UTC (rev 1208) @@ -4,6 +4,19 @@ <H2>What's new?<BR><HR COLOR="RED"></H2> +<P>Version 1.0.4.1 +<UL> +<LI>Minor bug fixes.</LI> +<LI>Made MCE Remote XP/Replacement driver support more forgiving of malformed/unusual data from device.</LI> +<LI>Raised thread priorities from Below Normal to Normal (Hopefully to improve responsiveness, if there are any ill side effects I'll revert this change) and made all threads "Background" (to prevent them from living on after the thread spawner has closed).</LI> +<LI>Made error logging more uniform (makes code comparisons between similar libraries easier too, this should make it less likely that a change in, for example, TV2 Blaster plugin would not get made in TV3 Blaster plugin).</LI> +<LI>Moved Input Server Plugins from "\IR Server Suite\IR Server" to "\IR Server Suite\Input Service" to bring them in-line with the move from IR Server to Input Service. Existing users will need to move their configuration files (*.xml) across or reconfigure their transceiver.</LI> +<LI>Changed timestamps in log files to same format as MediaPortal's in preperation for new log file analysing tool I'm writing.</LI> +<LI>Added support for the Ads Tech PTV-335's IR Receiver. You must copy the ADS_335_RCPLIB.dll from (usually) "\Program Files\Ulead Systems\Ulead InstaMedia 2.1" to the IR Server Plugins folder in your IR Server Suite install location.</LI> +<LI>Fixed Vista MCE Suspend/Resume handling.</LI> +</UL></P> +<BR> + <P>Version 1.0.4.0 <UL> <LI>Replaced "IR Server" application with "Input Service".</LI> Modified: trunk/plugins/IR Server Suite/Documentation/troubleshooting.html =================================================================== --- trunk/plugins/IR Server Suite/Documentation/troubleshooting.html 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/Documentation/troubleshooting.html 2008-01-05 14:27:56 UTC (rev 1208) @@ -1,3 +1,94 @@ -http://www.microsoft.com/downloads/details.aspx?FamilyId=B39D53F1-0AC9-433B-B488-4CAB82F31DC8&displaylang=en +<HTML> +<HEAD><TITLE>Troubleshooting</TITLE></HEAD> +<BODY> -http://www.xs4all.nl/~hveijk/mst/indexe.htm \ No newline at end of file +<H2>Troubleshooting<BR><HR COLOR="RED"></H2> + +<H3>Contents</H3> + +<UL> +<B>Input Service</B> +<LI><A HREF="#1.1">Can't do this</A></LI> +<LI><A HREF="#1.2">Can't do this</A></LI> +</UL> + + +<UL> +<B>Translator</B> +<LI><A HREF="#2.1">Can't do this</A></LI> +<LI><A HREF="#2.2">Can't do this</A></LI> +</UL> + + +<UL> +<B>Microsoft MCE Remote</B> +<LI><A HREF="#3.1">IR Learning</A></LI> +<LI><A HREF="#3.2">IR Blasting</A></LI> +<LI><A HREF="#3.3">Suspend and Resume</A></LI> +</UL> + + +<UL> +<B>Miscellaneous</B> +<LI><A HREF="#4.1">How to get additional help or send a bug report</A></LI> +</UL> + + + +<BR> +<HR COLOR="BLUE" SIZE="1"> + +<H3>Input Service</H3> + +<P><B><A NAME="1.1">Can't do this</A></B><BR> +blah blah blah, blah blah blah</P> + +<P><B><A NAME="1.2">Can't do this</A></B><BR> +blah blah blah, blah blah blah</P> + +<BR> +<HR COLOR="BLUE" SIZE="1"> + +<H3>Translator</H3> + +<P><B><A NAME="2.1">Can't do this</A></B><BR> +blah blah blah, blah blah blah</P> + +<P><B><A NAME="2.2">Can't do this</A></B><BR> +blah blah blah, blah blah blah</P> + +<BR> +<HR COLOR="BLUE" SIZE="1"> + +<H3>Microsoft MCE Remote</H3> + +<P><B><A NAME="3.1">IR Learning</A></B><BR> +blah blah blah, blah blah blah</P> + +<P><B><A NAME="3.2">IR Blasting</A></B><BR> +blah blah blah, blah blah blah</P> + +<P><B><A NAME="3.3">Suspend and Resume</A></B><BR> +For troubleshooting suspend and resume issues you should firstly make sure that you are running the <A HREF="http://www.microsoft.com/downloads/details.aspx?FamilyId=B39D53F1-0AC9-433B-B488-4CAB82F31DC8&displaylang=en">latest Microsoft drivers</A>.<BR> +And then if your problems persist try the <A HREF="http://www.xs4all.nl/~hveijk/mst/indexe.htm">MCE Standby Tool</A>.</P> + +<BR> +<HR COLOR="BLUE" SIZE="1"> + +<H3>Miscellaneous</H3> + +<P><B><A NAME="4.1">How to get additional help or send a bug report</A></B><BR> +If you have tried all the available solutions and still can't get around a problem you've encountered then you may have found a bug in the software. If you feel you have found a bug or would just like some additional assistance then go to the MediaPortal forums and post a new message in the <A HREF="http://forum.team-mediaportal.com/forumdisplay.php?f=165">MCE Replacement Plugin Sub-Forum</A>.</P> + +<P>Please include in your post a full description of the problem you're having along the steps you follow to produce the problem and the following:<BR> +Operating System including Service Pack details<BR> +IR Server Suite version number/date<BR> +All IR Server Suite and MediaPortal log files (where applicable)<BR> +Input Service Receiver/Transmitter device details (For example, "Microsoft MCE Transceiver OEM with European/Australian RC6 MCE Remote")<BR> +Please also include any other relevant software version numbers</P> + + + + +</BODY> +</HTML> Property changes on: trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver ___________________________________________________________________ Name: svn:ignore + bin obj ADS_335_RCPLIB.dll Added: trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/Ads Tech PTV-335 Receiver.csproj =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/Ads Tech PTV-335 Receiver.csproj (rev 0) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/Ads Tech PTV-335 Receiver.csproj 2008-01-05 14:27:56 UTC (rev 1208) @@ -0,0 +1,57 @@ +<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>{E146C2D8-6842-46C5-B2A9-AFA9D6F1A3BB}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>AdsTechPTV335Receiver</RootNamespace> + <AssemblyName>Ads Tech PTV-335 Receiver</AssemblyName> + <RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent> + </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> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> + <DocumentationFile>bin\Debug\Ads Tech PTV-335 Receiver.XML</DocumentationFile> + </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> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="AdsTechPTV335Receiver.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\IR Server Plugin Interface\IR Server Plugin Interface.csproj"> + <Project>{D8B3D28F-62CE-4CA7-86CE-B7EAD614A94C}</Project> + <Name>IR Server Plugin Interface</Name> + <Private>False</Private> + </ProjectReference> + </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> + --> +</Project> \ No newline at end of file Added: trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/AdsTechPTV335Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/AdsTechPTV335Receiver.cs (rev 0) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/AdsTechPTV335Receiver.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -0,0 +1,187 @@ +using System; +using System.Text; +using System.Threading; +using System.Runtime.InteropServices; + +using IRServerPluginInterface; + +namespace AdsTechPTV335Receiver +{ + + /// <summary> + /// IR Server plugin to support the Ads Tech PTV-335 Receiver device. + /// </summary> + public class AdsTechPTV335Receiver : IRServerPluginBase, IRemoteReceiver + { + + #region Interop + + // int __cdecl ADS335RCP_GetKey(unsigned char &) + [DllImport("ADS_335_RCPLIB.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?ADS335RCP_GetKey@@YAHAAE@Z")] + static extern int GetKey(ref byte key); + + //int __cdecl ADS335RCP_Init(void) + [DllImport("ADS_335_RCPLIB.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?ADS335RCP_Init@@YAHXZ")] + static extern int Init(); + + //int __cdecl ADS335RCP_UnInit(void) + [DllImport("ADS_335_RCPLIB.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?ADS335RCP_UnInit@@YAHXZ")] + static extern int UnInit(); + + #endregion Interop + + #region Consatnts + + const int PacketTimeout = 100; + + #endregion Constants + + #region Variables + + RemoteHandler _remoteHandler; + + bool _processReadThread; + Thread _readThread; + + #endregion Variables + + + /// <summary> + /// Name of the IR Server plugin. + /// </summary> + /// <value>The name.</value> + public override string Name { get { return "Ads Tech PTV-335"; } } + /// <summary> + /// IR Server plugin version. + /// </summary> + /// <value>The version.</value> + public override string Version { get { return "1.0.4.1"; } } + /// <summary> + /// The IR Server plugin's author. + /// </summary> + /// <value>The author.</value> + public override string Author { get { return "and-81"; } } + /// <summary> + /// A description of the IR Server plugin. + /// </summary> + /// <value>The description.</value> + public override string Description { get { return "Support the Ads Tech PTV-335 Receiver."; } } + + /// <summary> + /// Detect the presence of this device. Devices that cannot be detected will always return false. + /// </summary> + /// <returns> + /// <c>true</c> if the device is present, otherwise <c>false</c>. + /// </returns> + public override bool Detect() + { + try + { + return (Init() == 1); + } + catch + { + return false; + } + } + + /// <summary> + /// Start the IR Server plugin. + /// </summary> + /// <returns><c>true</c> if successful, otherwise <c>false</c>.</returns> + public override bool Start() + { + try + { + int retVal = Init(); + if (retVal == 0) + return false; + + StartReadThread(); + + return true; + } + catch + { + return false; + } + } + /// <summary> + /// Suspend the IR Server plugin when computer enters standby. + /// </summary> + public override void Suspend() + { + Stop(); + } + /// <summary> + /// Resume the IR Server plugin when the computer returns from standby. + /// </summary> + public override void Resume() + { + Start(); + } + /// <summary> + /// Stop the IR Server plugin. + /// </summary> + public override void Stop() + { + StopReadThread(); + + UnInit(); + } + + /// <summary> + /// Callback for remote button presses. + /// </summary> + public RemoteHandler RemoteCallback + { + get { return _remoteHandler; } + set { _remoteHandler = value; } + } + + + void StartReadThread() + { + if (_readThread != null) + return; + + _processReadThread = true; + + _readThread = new Thread(new ThreadStart(ReadThread)); + _readThread.Name = "AdsTechPTV335Receiver.ReadThread"; + _readThread.IsBackground = true; + _readThread.Start(); + } + + void StopReadThread() + { + if (_readThread == null) + return; + + _processReadThread = false; + + if (!_readThread.Join(PacketTimeout * 2)) + _readThread.Abort(); + + _readThread = null; + } + + void ReadThread() + { + byte key = 0; + int retVal; + + while (_processReadThread) + { + retVal = GetKey(ref key); + + if (retVal == 0) + Thread.Sleep(PacketTimeout); + else if (_remoteHandler != null) + _remoteHandler(key.ToString("X2")); + } + } + + } + +} Added: trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/Properties/AssemblyInfo.cs (rev 0) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/Properties/AssemblyInfo.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -0,0 +1,35 @@ +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("Ads Tech PTV-335 Receiver")] +[assembly: AssemblyDescription("IR Server plugin to support the Ads Tech PTV-335 Receiver")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("and-81")] +[assembly: AssemblyProduct("AdsTechPTV335Receiver")] +[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)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("6180b3dc-113f-4598-8c98-6a27cf9942f9")] + +// 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.4.1")] +[assembly: AssemblyFileVersion("1.0.4.1")] Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Custom HID Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Custom HID Receiver.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Custom HID Receiver.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -28,8 +28,6 @@ Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\IR Server Suite\\Input Service\\Custom HID Receiver.xml"; - static readonly string[] Ports = new string[] { "None" }; - const int DeviceBufferSize = 255; #endregion Constants @@ -77,7 +75,7 @@ /// Name of the IR Server plugin. /// </summary> /// <value>The name.</value> - public override string Name { get { return "Custom HID Receiver"; } } + public override string Name { get { return "Custom HID"; } } /// <summary> /// IR Server plugin version. /// </summary> @@ -98,7 +96,7 @@ /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> /// <returns> - /// true if the device is present, otherwise false. + /// <c>true</c> if the device is present, otherwise <c>false</c>. /// </returns> public override bool Detect() { Property changes on: trunk/plugins/IR Server Suite/IR Server Plugins/Direct Input Receiver ___________________________________________________________________ Name: svn:ignore + bin obj Modified: trunk/plugins/IR Server Suite/IR Server Plugins/FusionRemote Receiver/FusionRemoteReceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/FusionRemote Receiver/FusionRemoteReceiver.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/FusionRemote Receiver/FusionRemoteReceiver.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -227,7 +227,7 @@ /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> /// <returns> - /// true if the device is present, otherwise false. + /// <c>true</c> if the device is present, otherwise <c>false</c>. /// </returns> public override bool Detect() { Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Girder Plugin/Girder Plugin.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Girder Plugin/Girder Plugin.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Girder Plugin/Girder Plugin.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -69,7 +69,7 @@ /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> /// <returns> - /// true if the device is present, otherwise false. + /// <c>true</c> if the device is present, otherwise <c>false</c>. /// </returns> public override bool Detect() { Modified: trunk/plugins/IR Server Suite/IR Server Plugins/IR Server Plugin Interface/IRServerPluginBase.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/IR Server Plugin Interface/IRServerPluginBase.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/IR Server Plugin Interface/IRServerPluginBase.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -40,7 +40,7 @@ /// <summary> /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> - /// <returns>true if the device is present, otherwise false.</returns> + /// <returns><c>true</c> if the device is present, otherwise <c>false</c>.</returns> public virtual bool Detect() { return false; } /// <summary> Modified: trunk/plugins/IR Server Suite/IR Server Plugins/IRMan Receiver/IRMan Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/IRMan Receiver/IRMan Receiver.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/IRMan Receiver/IRMan Receiver.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -75,7 +75,7 @@ /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> /// <returns> - /// true if the device is present, otherwise false. + /// <c>true</c> if the device is present, otherwise <c>false</c>. /// </returns> public override bool Detect() { Modified: trunk/plugins/IR Server Suite/IR Server Plugins/IRTrans Transceiver/IRTransTransceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/IRTrans Transceiver/IRTransTransceiver.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/IRTrans Transceiver/IRTransTransceiver.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -237,7 +237,7 @@ /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> /// <returns> - /// true if the device is present, otherwise false. + /// <c>true</c> if the device is present, otherwise <c>false</c>. /// </returns> public override bool Detect() { Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -137,7 +137,7 @@ /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> /// <returns> - /// true if the device is present, otherwise false. + /// <c>true</c> if the device is present, otherwise <c>false</c>. /// </returns> public override bool Detect() { Modified: trunk/plugins/IR Server Suite/IR Server Plugins/RedEye Blaster/RedEye Blaster.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/RedEye Blaster/RedEye Blaster.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/RedEye Blaster/RedEye Blaster.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -96,7 +96,7 @@ /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> /// <returns> - /// true if the device is present, otherwise false. + /// <c>true</c> if the device is present, otherwise <c>false</c>. /// </returns> public override bool Detect() { Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Serial IR Blaster/Serial IR Blaster.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Serial IR Blaster/Serial IR Blaster.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Serial IR Blaster/Serial IR Blaster.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -68,7 +68,7 @@ /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> /// <returns> - /// true if the device is present, otherwise false. + /// <c>true</c> if the device is present, otherwise <c>false</c>. /// </returns> public override bool Detect() { Modified: trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/UirtTransceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/UirtTransceiver.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/UirtTransceiver.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -148,7 +148,7 @@ /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> /// <returns> - /// true if the device is present, otherwise false. + /// <c>true</c> if the device is present, otherwise <c>false</c>. /// </returns> public override bool Detect() { Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Wii Remote Receiver/Wii Remote Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Wii Remote Receiver/Wii Remote Receiver.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Wii Remote Receiver/Wii Remote Receiver.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -77,7 +77,7 @@ /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> /// <returns> - /// true if the device is present, otherwise false. + /// <c>true</c> if the device is present, otherwise <c>false</c>. /// </returns> public override bool Detect() { Modified: trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -69,7 +69,7 @@ /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> /// <returns> - /// true if the device is present, otherwise false. + /// <c>true</c> if the device is present, otherwise <c>false</c>. /// </returns> public override bool Detect() { Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Windows Message Receiver/Windows Message Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Windows Message Receiver/Windows Message Receiver.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Windows Message Receiver/Windows Message Receiver.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -82,7 +82,7 @@ /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> /// <returns> - /// true if the device is present, otherwise false. + /// <c>true</c> if the device is present, otherwise <c>false</c>. /// </returns> public override bool Detect() { Modified: trunk/plugins/IR Server Suite/IR Server Plugins/X10 Transceiver/X10Transceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/X10 Transceiver/X10Transceiver.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/X10 Transceiver/X10Transceiver.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -66,7 +66,7 @@ /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> /// <returns> - /// true if the device is present, otherwise false. + /// <c>true</c> if the device is present, otherwise <c>false</c>. /// </returns> public override bool Detect() { Modified: trunk/plugins/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -239,7 +239,7 @@ /// Detect the presence of this device. Devices that cannot be detected will always return false. /// </summary> /// <returns> - /// true if the device is present, otherwise false. + /// <c>true</c> if the device is present, otherwise <c>false</c>. /// </returns> public override bool Detect() { Modified: trunk/plugins/IR Server Suite/IR Server Suite - Debug.nsi =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite - Debug.nsi 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Suite - Debug.nsi 2008-01-05 14:27:56 UTC (rev 1208) @@ -163,7 +163,9 @@ SetOutPath "$INSTDIR\IR Server Plugins" SetOverwrite ifnewer + File "IR Server Plugins\Ads Tech PTV-335 Receiver\bin\Debug\*.*" File "IR Server Plugins\Custom HID Receiver\bin\Debug\*.*" + ;File "IR Server Plugins\Direct Input Receiver\bin\Debug\*.*" File "IR Server Plugins\FusionRemote Receiver\bin\Debug\*.*" File "IR Server Plugins\Girder Plugin\bin\Debug\*.*" ;File "IR Server Plugins\HCW Transceiver\bin\Debug\*.*" Modified: trunk/plugins/IR Server Suite/IR Server Suite - Release.nsi =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite - Release.nsi 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Suite - Release.nsi 2008-01-05 14:27:56 UTC (rev 1208) @@ -163,7 +163,9 @@ SetOutPath "$INSTDIR\IR Server Plugins" SetOverwrite ifnewer + File "IR Server Plugins\Ads Tech PTV-335 Receiver\bin\Release\*.*" File "IR Server Plugins\Custom HID Receiver\bin\Release\*.*" + ;File "IR Server Plugins\Direct Input Receiver\bin\Release\*.*" File "IR Server Plugins\FusionRemote Receiver\bin\Release\*.*" File "IR Server Plugins\Girder Plugin\bin\Release\*.*" ;File "IR Server Plugins\HCW Transceiver\bin\Release\*.*" Modified: trunk/plugins/IR Server Suite/IR Server Suite.sln =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite.sln 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/IR Server Suite.sln 2008-01-05 14:27:56 UTC (rev 1208) @@ -313,6 +313,8 @@ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Log File Multi-Viewer", "Util Apps\Log File Multi-Viewer\Log File Multi-Viewer.csproj", "{36804FCB-2D2D-4188-9F0E-695FE35AD6E3}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ads Tech PTV-335 Receiver", "IR Server Plugins\Ads Tech PTV-335 Receiver\Ads Tech PTV-335 Receiver.csproj", "{E146C2D8-6842-46C5-B2A9-AFA9D6F1A3BB}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -671,6 +673,12 @@ {36804FCB-2D2D-4188-9F0E-695FE35AD6E3}.Release|Any CPU.ActiveCfg = Release|Any CPU {36804FCB-2D2D-4188-9F0E-695FE35AD6E3}.Release|Any CPU.Build.0 = Release|Any CPU {36804FCB-2D2D-4188-9F0E-695FE35AD6E3}.Release|x86.ActiveCfg = Release|Any CPU + {E146C2D8-6842-46C5-B2A9-AFA9D6F1A3BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E146C2D8-6842-46C5-B2A9-AFA9D6F1A3BB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E146C2D8-6842-46C5-B2A9-AFA9D6F1A3BB}.Debug|x86.ActiveCfg = Debug|Any CPU + {E146C2D8-6842-46C5-B2A9-AFA9D6F1A3BB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E146C2D8-6842-46C5-B2A9-AFA9D6F1A3BB}.Release|Any CPU.Build.0 = Release|Any CPU + {E146C2D8-6842-46C5-B2A9-AFA9D6F1A3BB}.Release|x86.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -704,6 +712,7 @@ {A50080F4-53D1-41CC-9C5F-500AFDDE9E8B} = {0D1620EE-01B9-43B5-9FAA-E983BD9EBDBD} {37A555DF-7012-4B99-8A47-1C922A361E52} = {0D1620EE-01B9-43B5-9FAA-E983BD9EBDBD} {732CDF64-D047-4D3C-91DA-E2FF27D84179} = {0D1620EE-01B9-43B5-9FAA-E983BD9EBDBD} + {E146C2D8-6842-46C5-B2A9-AFA9D6F1A3BB} = {0D1620EE-01B9-43B5-9FAA-E983BD9EBDBD} {E8BEBBCC-1EE0-488D-8806-98ADCB7F0479} = {6C18D808-E5ED-4CFB-A7CD-E2BDBB1D9BDA} {7946D42A-4BCB-4D79-80EB-BA9B17CE2E90} = {6C18D808-E5ED-4CFB-A7CD-E2BDBB1D9BDA} {CD395FC2-70E2-42C4-8A20-5469A0C5EB50} = {6C18D808-E5ED-4CFB-A7CD-E2BDBB1D9BDA} Modified: trunk/plugins/IR Server Suite/MediaPortal Plugins/TV2 Blaster Plugin/Forms/ExternalChannels.cs =================================================================== --- trunk/plugins/IR Server Suite/MediaPortal Plugins/TV2 Blaster Plugin/Forms/ExternalChannels.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/MediaPortal Plugins/TV2 Blaster Plugin/Forms/ExternalChannels.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -44,7 +44,7 @@ MediaPortal.TV.Database.TVDatabase.GetCards(ref cards); if (cards.Count == 0) - throw new ApplicationException("Cannot load external channel configurations, there are no TV cards registered"); + cards.Add(0); _tvCardTabs = new TabPage[cards.Count]; _tvCardStbSetups = new StbSetup[cards.Count]; @@ -107,16 +107,10 @@ try { foreach (StbSetup setup in _tvCardStbSetups) + { setup.Save(); - - ArrayList cards = new ArrayList(); - MediaPortal.TV.Database.TVDatabase.GetCards(ref cards); - - if (cards.Count == 0) - throw new ApplicationException("Cannot save external channel configurations, there are no TV cards registered"); - - foreach (int cardId in cards) - TV2BlasterPlugin.GetExternalChannelConfig(cardId).Save(); + TV2BlasterPlugin.GetExternalChannelConfig(setup.CardId).Save(); + } } catch (Exception ex) { Modified: trunk/plugins/IR Server Suite/MediaPortal Plugins/TV2 Blaster Plugin/Forms/StbSetup.cs =================================================================== --- trunk/plugins/IR Server Suite/MediaPortal Plugins/TV2 Blaster Plugin/Forms/StbSetup.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/MediaPortal Plugins/TV2 Blaster Plugin/Forms/StbSetup.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -38,6 +38,11 @@ #region Properties + public int CardId + { + get { return _cardId; } + } + public int PauseTime { get { return Decimal.ToInt32(numericUpDownPauseTime.Value); } @@ -177,6 +182,8 @@ { ExternalChannelConfig config = TV2BlasterPlugin.GetExternalChannelConfig(cardId); + config.CardId = cardId; + config.PauseTime = Decimal.ToInt32(numericUpDownPauseTime.Value); config.SendSelect = checkBoxSendSelect.Checked; config.DoubleChannelSelect = checkBoxDoubleSelect.Checked; Modified: trunk/plugins/IR Server Suite/MediaPortal Plugins/TV2 Blaster Plugin/TV2BlasterPlugin.cs =================================================================== --- trunk/plugins/IR Server Suite/MediaPortal Plugins/TV2 Blaster Plugin/TV2BlasterPlugin.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/MediaPortal Plugins/TV2 Blaster Plugin/TV2BlasterPlugin.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -427,8 +427,12 @@ MediaPortal.TV.Database.TVDatabase.GetCards(ref cards); if (cards.Count == 0) - throw new ApplicationException("Cannot load external channel configurations, there are no TV cards registered"); + { + Log.Warn("Cannot load external channel configurations, there are no TV cards registered"); + cards.Add(0); + } + _externalChannelConfigs = new ExternalChannelConfig[cards.Count]; int index = 0; Modified: trunk/plugins/IR Server Suite/MediaPortal Plugins/TV3 Blaster Plugin/Forms/ExternalChannels.cs =================================================================== --- trunk/plugins/IR Server Suite/MediaPortal Plugins/TV3 Blaster Plugin/Forms/ExternalChannels.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/MediaPortal Plugins/TV3 Blaster Plugin/Forms/ExternalChannels.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -40,6 +40,12 @@ { IList cards = TvDatabase.Card.ListAll(); + if (cards.Count == 0) + { + TvDatabase.Card dummyCard = new TvDatabase.Card(0, "device path", "Dummy TV Card", 0, false, DateTime.Now, "recording folder", 0, false, 0, "timeshifting folder", 0, 0); + cards.Add(dummyCard); + } + _tvCardStbSetups = new StbSetup[cards.Count]; comboBoxCopyFrom.Items.Clear(); Modified: trunk/plugins/IR Server Suite/MediaPortal Plugins/TV3 Blaster Plugin/Forms/StbSetup.cs =================================================================== --- trunk/plugins/IR Server Suite/MediaPortal Plugins/TV3 Blaster Plugin/Forms/StbSetup.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/MediaPortal Plugins/TV3 Blaster Plugin/Forms/StbSetup.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -161,9 +161,6 @@ { ExternalChannelConfig config = TV3BlasterPlugin.GetExternalChannelConfig(cardId); - if (config == null) - return; - // Setup command list. for (int i = 0; i < 10; i++) listViewExternalCommands.Items[i].SubItems[1].Text = config.Digits[i]; @@ -192,9 +189,6 @@ { ExternalChannelConfig config = TV3BlasterPlugin.GetExternalChannelConfig(cardId); - if (config == null) - return; - config.CardId = cardId; config.PauseTime = Decimal.ToInt32(numericUpDownPauseTime.Value); @@ -419,6 +413,9 @@ if (httpMessageCommand.ShowDialog(this) == DialogResult.OK) newCommand = Common.CmdPrefixHttpMsg + httpMessageCommand.CommandString; } + + if (!String.IsNullOrEmpty(newCommand)) + listViewExternalCommands.SelectedItems[0].SubItems[1].Text = newCommand; } catch (Exception ex) { Modified: trunk/plugins/IR Server Suite/MediaPortal Plugins/TV3 Blaster Plugin/TV3BlasterPlugin.cs =================================================================== --- trunk/plugins/IR Server Suite/MediaPortal Plugins/TV3 Blaster Plugin/TV3BlasterPlugin.cs 2008-01-05 01:49:51 UTC (rev 1207) +++ trunk/plugins/IR Server Suite/MediaPortal Plugins/TV3 Blaster Plugin/TV3BlasterPlugin.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -389,8 +389,13 @@ IList cards = TvDatabase.Card.ListAll(); if (cards.Count == 0) - return; + { + Log.Info("Cannot load external channel configurations, there are no TV cards registered"); + TvDatabase.Card dummyCard = new TvDatabase.Card(0, "device path", "Dummy TV Card", 0, false, DateTime.Now, "recording folder", 0, false, 0, "timeshifting folder", 0, 0); + cards.Add(dummyCard); + } + _externalChannelConfigs = new ExternalChannelConfig[cards.Count]; int index = 0; Property changes on: trunk/plugins/IR Server Suite/Util Apps/Log File Multi-Viewer ___________________________________________________________________ Name: svn:ignore + bin obj Added: trunk/plugins/IR Server Suite/Util Apps/Log File Multi-Viewer/FormMain.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/Util Apps/Log File Multi-Viewer/FormMain.Designer.cs (rev 0) +++ trunk/plugins/IR Server Suite/Util Apps/Log File Multi-Viewer/FormMain.Designer.cs 2008-01-05 14:27:56 UTC (rev 1208) @@ -0,0 +1,108 @@ +namespace LogViewer +{ + partial class FormMain + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.listViewLines = new System.Windows.Forms.ListView(); + this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); + this.refreshToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.clearToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.removeFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.contextMenuStrip.SuspendLayout(); + this.SuspendLayout(); + // + // listViewLines + // + this.listViewLines.AllowDrop = true; + this.listViewLines.ContextMenuStrip = this.contextMenuStrip; + this.listViewLines.Dock = System.Windows.Forms.DockStyle.Fill; + this.listViewLines.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.listViewLines.FullRowSelect = true; + this.listViewLines.GridLines = true; + this.listViewLines.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; + this.listViewLines.HideSelection = false; + this.listViewLines.Location = new System.Drawing.Point(0, 0); + this.listViewLines.Name = "listViewLines"; + this.listViewLines.ShowGroups = false; + this.listViewLines.Size = new System.Drawing.Size(584, 364); + this.listViewLines.TabIndex = 0; + this.listViewLines.UseCompatibleStateImageBehavior = false; + this.listViewLines.View = System.Windows.Forms.View.Details; + this.listViewLines.DragDrop += new System.Windows.Forms.DragEventHandler(this.listViewLines_DragDrop); + // + // contextMenuStrip + // + this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.refreshToolStripMenuItem, + this.clearToolStripMenuItem, + this.removeFileToolStripMenuItem}); + this.contextMenuStrip.Name = "contextMenuStrip"; + this.contextMenuStrip.Size = new System.Drawing.Size(151, 70); + // + // refreshToolStripMenuItem + // + this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem"; + this.refreshToolStripMenuItem.Size = new System.Drawing.Size(150, 22); + this.refreshToolStripMenuItem.Text = "&Refresh"; + // + // clearToolStripMenuItem + // + this.clearToolStripMenuItem.Name = "clearToolStripMenuItem"; + this.clearToolStripMenuItem.Size = new System.Drawing.Size(150, 22); + this.clearToolStripMenuItem.Text = "&Clear"; + // + // removeFileToolStripMenuItem + // + this.removeFileToolStripMenuItem.Name = "removeFileToolStripMenuItem"; + this.removeFileToolStripMenuItem.Size = new System.Drawing.Size(150, 22); + this.removeFileToolStripMenuItem.Text = "Remove &File ..."; + // + // FormMain + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.F... [truncated message content] |