|
From: <an...@us...> - 2007-08-23 15:02:18
|
Revision: 860
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=860&view=rev
Author: and-81
Date: 2007-08-23 08:02:04 -0700 (Thu, 23 Aug 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/HCW Transceiver.csproj
trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/HcwTransceiver.cs
trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/Configure.Designer.cs
trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/Configure.cs
trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/Properties/AssemblyInfo.cs
trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLircServer.cs
Added Paths:
-----------
trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/irremote.cs
trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/
trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.Designer.cs
trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.cs
trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.resx
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.csproj
Removed Paths:
-------------
trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Receiver/
trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Receiver.cs
trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Receiver.csproj
Modified: trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/HCW Transceiver.csproj
===================================================================
--- trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/HCW Transceiver.csproj 2007-08-23 13:19:30 UTC (rev 859)
+++ trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/HCW Transceiver.csproj 2007-08-23 15:02:04 UTC (rev 860)
@@ -66,6 +66,7 @@
<DependentUpon>Configure.cs</DependentUpon>
</Compile>
<Compile Include="HcwTransceiver.cs" />
+ <Compile Include="irremote.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
Modified: trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/HcwTransceiver.cs
===================================================================
--- trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/HcwTransceiver.cs 2007-08-23 13:19:30 UTC (rev 859)
+++ trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/HcwTransceiver.cs 2007-08-23 15:02:04 UTC (rev 860)
@@ -20,100 +20,25 @@
#region Interop
- [StructLayout(LayoutKind.Sequential)]
- struct UUINFO
- {
- public int fwVersion;
- public int protVersion;
- public char fwDateDay;
- public char fwDateMonth;
- public char fwDateYear;
- }
- //Not used
- //[StructLayout(LayoutKind.Sequential)]
- //internal struct UUGPIO
- //{
- // public byte[] irCode;
- // public byte action;
- // public byte duration;
- //}
+ const int WM_ACTIVATE = 0x0006;
+ const int WM_POWERBROADCAST = 0x0218;
+ const int WA_INACTIVE = 0;
+ const int WA_ACTIVE = 1;
+ const int WA_CLICKACTIVE = 2;
- [DllImport("uuirtdrv.dll")]
- static extern IntPtr UUIRTOpen();
+ const int PBT_APMRESUMEAUTOMATIC = 0x0012;
+ const int PBT_APMRESUMECRITICAL = 0x0006;
- [DllImport("uuirtdrv.dll")]
- [return: MarshalAs(UnmanagedType.Bool)]
- static extern bool UUIRTClose(
- IntPtr hHandle);
- //[DllImport("uuirtdrv.dll")]
- //[return: MarshalAs(UnmanagedType.Bool)]
- //internal static extern bool UUIRTGetDrvInfo(ref int puDrvVersion);
- //[DllImport("uuirtdrv.dll")]
- //[return: MarshalAs(UnmanagedType.Bool)]
- //internal static extern bool UUIRTGetUUIRTInfo(
- // IntPtr hHandle,
- // ref UUINFO puuInfo);
-
- //[DllImport("uuirtdrv.dll")]
- //[return: MarshalAs(UnmanagedType.Bool)]
- //internal static extern bool UUIRTGetUUIRTConfig(
- // IntPtr hHandle,
- // ref uint puConfig);
-
- //[DllImport("uuirtdrv.dll")]
- //[return: MarshalAs(UnmanagedType.Bool)]
- //internal static extern bool UUIRTSetUUIRTConfig(
- // IntPtr hHandle,
- // uint uConfig);
-
- [DllImport("uuirtdrv.dll")]
- [return: MarshalAs(UnmanagedType.Bool)]
- static extern bool UUIRTTransmitIR(
- IntPtr hHandle,
- string IRCode,
- int codeFormat,
- int repeatCount,
- int inactivityWaitTime,
- IntPtr hEvent,
- int res1,
- int res2);
-
- [DllImport("uuirtdrv.dll")]
- [return: MarshalAs(UnmanagedType.Bool)]
- static extern bool UUIRTLearnIR(
- IntPtr hHandle,
- int codeFormat,
- [MarshalAs(UnmanagedType.LPStr)] StringBuilder ircode,
- IRLearnCallbackDelegate progressProc,
- int userData,
- ref int pAbort,
- int param1,
- [MarshalAs(UnmanagedType.AsAny)] Object o,
- [MarshalAs(UnmanagedType.AsAny)] Object oo);
-
- [DllImport("uuirtdrv.dll")]
- [return: MarshalAs(UnmanagedType.Bool)]
- static extern bool UUIRTSetReceiveCallback(
- IntPtr hHandle,
- UUIRTReceiveCallbackDelegate receiveProc,
- int none);
-
- //[DllImport("uuirtdrv.dll")]
- //static extern bool UUIRTSetUUIRTGPIOCfg(IntPtr hHandle, int index, ref UUGPIO GpioSt);
-
- //[DllImport("uuirtdrv.dll")]
- //static extern bool UUIRTGetUUIRTGPIOCfg(IntPtr hHandle, ref int numSlots, ref uint dwPortPins,
- // ref UUGPIO GpioSt);
-
#endregion
#region Delegates
- delegate void UUIRTReceiveCallbackDelegate(string irCode, IntPtr userData);
- delegate void IRLearnCallbackDelegate(uint progress, uint sigQuality, ulong carrierFreq, IntPtr userData);
+ //Sets up callback so that other forms can catch a key press
+ public delegate void HCWEvent(int keypress);
+ public event HCWEvent HCWKeyPressed;
#endregion Delegates
Added: trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/irremote.cs
===================================================================
--- trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/irremote.cs (rev 0)
+++ trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/irremote.cs 2007-08-23 15:02:04 UTC (rev 860)
@@ -0,0 +1,165 @@
+#region Copyright (C) 2005-2007 Team MediaPortal
+
+/*
+ * Copyright (C) 2005-2007 Team MediaPortal
+ * http://www.team-mediaportal.com
+ *
+ * This Program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This Program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Make; see the file COPYING. If not, write to
+ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ */
+
+#endregion
+
+using System;
+using System.Runtime.InteropServices;
+using Microsoft.Win32;
+using MediaPortal.GUI.Library;
+using System.IO;
+
+namespace HcwTransceiver
+{
+ /// <summary>
+ /// Wrapper class for irremote.dll
+ /// </summary>
+ public static class irremote
+ {
+ #region DLL-Imports
+
+ /// <summary>
+ /// The SetDllDirectory function adds a directory to the search path used to locate DLLs for the application.
+ /// http://msdn.microsoft.com/library/en-us/dllproc/base/setdlldirectory.asp
+ /// </summary>
+ /// <param name="PathName">Pointer to a null-terminated string that specifies the directory to be added to the search path.</param>
+ /// <returns></returns>
+ [DllImport("kernel32.dll")]
+ static extern bool SetDllDirectory(
+ string PathName);
+
+ /// <summary>
+ /// Registers window handle with Hauppauge IR driver
+ /// </summary>
+ /// <param name="WindowHandle"></param>
+ /// <param name="Msg"></param>
+ /// <param name="Verbose"></param>
+ /// <param name="IRPort"></param>
+ /// <returns></returns>
+ [DllImport("irremote.dll")]
+ static extern bool IR_Open(
+ int WindowHandle,
+ uint Msg,
+ bool Verbose,
+ ushort IRPort);
+
+ /// <summary>
+ /// Gets the received key code (new version, works for PVR-150 as well)
+ /// </summary>
+ /// <param name="RepeatCount"></param>
+ /// <param name="RemoteCode"></param>
+ /// <param name="KeyCode"></param>
+ /// <returns></returns>
+ [DllImport("irremote.dll")]
+ static extern bool IR_GetSystemKeyCode(
+ out int RepeatCount,
+ out int RemoteCode,
+ out int KeyCode);
+
+ /// <summary>
+ /// Unregisters window handle from Hauppauge IR driver
+ /// </summary>
+ /// <param name="WindowHandle"></param>
+ /// <param name="Msg"></param>
+ /// <returns></returns>
+ [DllImport("irremote.dll")]
+ static extern bool IR_Close(
+ int WindowHandle,
+ uint Msg);
+
+ #endregion
+
+
+ public static string CurrentVersion = "2.49.23332";
+
+ public static bool IRClose(IntPtr WindowHandle, uint Msg)
+ {
+ return IR_Close((int)WindowHandle, Msg);
+ }
+
+ public static bool IRGetSystemKeyCode(out int RepeatCount, out int RemoteCode, out int KeyCode)
+ {
+ RepeatCount = 0;
+ RemoteCode = 0;
+ KeyCode = 0;
+ bool result = false;
+ try
+ {
+ result = IR_GetSystemKeyCode(out RepeatCount, out RemoteCode, out KeyCode);
+ }
+ catch (AccessViolationException)
+ {
+ }
+ catch (Exception ex)
+ {
+ Log.Info("HCW: Exception while querying remote: {0}", ex.Message);
+ }
+ return result;
+ }
+
+ public static bool IROpen(IntPtr WindowHandle, uint Msg, bool Verbose, ushort IRPort)
+ {
+ return IR_Open((int)WindowHandle, Msg, Verbose, IRPort);
+ }
+
+ public static bool IRSetDllDirectory(string PathName)
+ {
+ return SetDllDirectory(PathName);
+ }
+
+ /// <summary>
+ /// Get the Hauppauge IR components installation path from the windows registry.
+ /// </summary>
+ /// <returns>Installation path of the Hauppauge IR components</returns>
+ public static string GetHCWPath()
+ {
+ string dllPath = null;
+ using (RegistryKey rkey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Hauppauge WinTV Infrared Remote"))
+ {
+ if (rkey != null)
+ {
+ dllPath = rkey.GetValue("UninstallString").ToString();
+ if (dllPath.IndexOf("UNir32") > 0)
+ dllPath = dllPath.Substring(0, dllPath.IndexOf("UNir32"));
+ else if (dllPath.IndexOf("UNIR32") > 0)
+ dllPath = dllPath.Substring(0, dllPath.IndexOf("UNIR32"));
+ }
+ }
+ return dllPath;
+ }
+
+ /// <summary>
+ /// Returns the path of the DLL component
+ /// </summary>
+ /// <returns>DLL path</returns>
+ public static string GetDllPath()
+ {
+ string dllPath = GetHCWPath();
+ if (!File.Exists(dllPath + "irremote.DLL"))
+ {
+ dllPath = null;
+ }
+ return dllPath;
+ }
+ }
+}
Copied: trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver (from rev 859, trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Receiver)
Modified: trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/Configure.Designer.cs
===================================================================
--- trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Receiver/Configure.Designer.cs 2007-08-23 13:19:30 UTC (rev 859)
+++ trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/Configure.Designer.cs 2007-08-23 15:02:04 UTC (rev 860)
@@ -1,4 +1,4 @@
-namespace WinLircReceiver
+namespace WinLircTransceiver
{
partial class Configure
{
@@ -43,6 +43,7 @@
this.groupBoxServerDetails = new System.Windows.Forms.GroupBox();
this.labelButtonReleaseTime = new System.Windows.Forms.Label();
this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
+ this.buttonCreateIRFiles = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownServerPort)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownButtonReleaseTime)).BeginInit();
this.groupBoxServerDetails.SuspendLayout();
@@ -51,10 +52,10 @@
// buttonOK
//
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.buttonOK.Location = new System.Drawing.Point(104, 208);
+ this.buttonOK.Location = new System.Drawing.Point(104, 240);
this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(64, 24);
- this.buttonOK.TabIndex = 3;
+ this.buttonOK.TabIndex = 4;
this.buttonOK.Text = "OK";
this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
@@ -63,10 +64,10 @@
//
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.buttonCancel.Location = new System.Drawing.Point(176, 208);
+ this.buttonCancel.Location = new System.Drawing.Point(176, 240);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(64, 24);
- this.buttonCancel.TabIndex = 4;
+ this.buttonCancel.TabIndex = 5;
this.buttonCancel.Text = "Cancel";
this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
@@ -187,13 +188,25 @@
this.openFileDialog.Filter = "All Files|*.*";
this.openFileDialog.Title = "Locate WinLirc server application";
//
+ // buttonCreateIRFiles
+ //
+ this.buttonCreateIRFiles.Location = new System.Drawing.Point(8, 208);
+ this.buttonCreateIRFiles.Name = "buttonCreateIRFiles";
+ this.buttonCreateIRFiles.Size = new System.Drawing.Size(104, 24);
+ this.buttonCreateIRFiles.TabIndex = 3;
+ this.buttonCreateIRFiles.Text = "Create IR files";
+ this.toolTips.SetToolTip(this.buttonCreateIRFiles, "Click here to make IR Command files for use with this plugin");
+ this.buttonCreateIRFiles.UseVisualStyleBackColor = true;
+ this.buttonCreateIRFiles.Click += new System.EventHandler(this.buttonCreateIRFiles_Click);
+ //
// Configure
//
this.AcceptButton = this.buttonOK;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.buttonCancel;
- this.ClientSize = new System.Drawing.Size(248, 241);
+ this.ClientSize = new System.Drawing.Size(248, 272);
+ this.Controls.Add(this.buttonCreateIRFiles);
this.Controls.Add(this.numericUpDownButtonReleaseTime);
this.Controls.Add(this.labelButtonReleaseTime);
this.Controls.Add(this.groupBoxServerDetails);
@@ -231,5 +244,6 @@
private System.Windows.Forms.Label labelButtonReleaseTime;
private System.Windows.Forms.NumericUpDown numericUpDownButtonReleaseTime;
private System.Windows.Forms.OpenFileDialog openFileDialog;
+ private System.Windows.Forms.Button buttonCreateIRFiles;
}
}
\ No newline at end of file
Modified: trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/Configure.cs
===================================================================
--- trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Receiver/Configure.cs 2007-08-23 13:19:30 UTC (rev 859)
+++ trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/Configure.cs 2007-08-23 15:02:04 UTC (rev 860)
@@ -7,7 +7,7 @@
using System.Net;
using System.Windows.Forms;
-namespace WinLircReceiver
+namespace WinLircTransceiver
{
public partial class Configure : Form
@@ -72,9 +72,13 @@
textBoxServerPath.Text = openFileDialog.FileName;
}
+ private void buttonCreateIRFiles_Click(object sender, EventArgs e)
+ {
+
+ }
+
#endregion Buttons
-
}
}
Added: trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.Designer.cs
===================================================================
--- trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.Designer.cs (rev 0)
+++ trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.Designer.cs 2007-08-23 15:02:04 UTC (rev 860)
@@ -0,0 +1,38 @@
+namespace WinLircTransceiver
+{
+ partial class CreateIRFile
+ {
+ /// <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.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Text = "CreateIRFile";
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file
Added: trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.cs
===================================================================
--- trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.cs (rev 0)
+++ trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.cs 2007-08-23 15:02:04 UTC (rev 860)
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+
+namespace WinLircTransceiver
+{
+ public partial class CreateIRFile : Form
+ {
+ public CreateIRFile()
+ {
+ InitializeComponent();
+ }
+ }
+}
\ No newline at end of file
Added: trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.resx
===================================================================
--- trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.resx (rev 0)
+++ trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.resx 2007-08-23 15:02:04 UTC (rev 860)
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
Modified: trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/Properties/AssemblyInfo.cs
===================================================================
--- trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Receiver/Properties/AssemblyInfo.cs 2007-08-23 13:19:30 UTC (rev 859)
+++ trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/Properties/AssemblyInfo.cs 2007-08-23 15:02:04 UTC (rev 860)
@@ -6,11 +6,11 @@
// 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("WinLirc Receiver")]
+[assembly: AssemblyTitle("WinLirc Transceiver")]
[assembly: AssemblyDescription("IR Server plugin to support WinLirc")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("and-81")]
-[assembly: AssemblyProduct("WinLircReceiver")]
+[assembly: AssemblyProduct("WinLircTransceiver")]
[assembly: AssemblyCopyright("Aaron Dinnage")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Deleted: trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Receiver.cs
===================================================================
--- trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Receiver/WinLirc Receiver.cs 2007-08-23 13:19:30 UTC (rev 859)
+++ trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Receiver.cs 2007-08-23 15:02:04 UTC (rev 860)
@@ -1,195 +0,0 @@
-using System;
-using System.Collections;
-using System.ComponentModel;
-using System.Diagnostics;
-using System.IO;
-using System.Net;
-using System.Net.Sockets;
-using System.Windows.Forms;
-using System.Xml;
-
-using IRServerPluginInterface;
-
-namespace WinLircReceiver
-{
-
- public class WinLircReceiver : IRServerPlugin, IConfigure, IRemoteReceiver, ITransmitIR
- {
-
- #region Constants
-
- static readonly string ConfigurationFile =
- Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) +
- "\\IR Server Suite\\IR Server\\WinLirc Receiver.xml";
-
- #endregion Constants
-
- #region Variables
-
- RemoteHandler _remoteButtonHandler = null;
- WinLircServer _server;
-
- IPAddress _serverIP;
- int _serverPort;
- bool _startServer;
- string _serverPath;
- int _buttonReleaseTime;
-
- #endregion Variables
-
- #region Implementation
-
- public override string Name { get { return "WinLirc"; } }
- public override string Version { get { return "1.0.3.3"; } }
- public override string Author { get { return "and-81, original code for MediaPortal by Sven"; } }
- public override string Description { get { return "Supports WinLirc as a reciever"; } }
-
- public override bool Start()
- {
- LoadSettings();
-
- if (_startServer)
- {
- if (!WinLircServer.StartServer(_serverPath))
- return false;
- }
-
- _server = new WinLircServer(_serverIP, _serverPort, TimeSpan.FromMilliseconds(_buttonReleaseTime));
- _server.CommandEvent += new WinLircServer.CommandEventHandler(CommandHandler);
-
- return true;
- }
- public override void Suspend()
- {
- Stop();
- }
- public override void Resume()
- {
- Start();
- }
- public override void Stop()
- {
- _server.CommandEvent -= new WinLircServer.CommandEventHandler(CommandHandler);
- _server = null;
- }
-
- public RemoteHandler RemoteCallback
- {
- get { return _remoteButtonHandler; }
- set { _remoteButtonHandler = value; }
- }
-
- public void Configure()
- {
- LoadSettings();
-
- Configure config = new Configure();
-
- config.ServerIP = _serverIP;
- config.ServerPort = _serverPort;
- config.StartServer = _startServer;
- config.ServerPath = _serverPath;
- config.ButtonReleaseTime = _buttonReleaseTime;
-
- if (config.ShowDialog() == DialogResult.OK)
- {
- _serverIP = config.ServerIP;
- _serverPort = config.ServerPort;
- _startServer = config.StartServer;
- _serverPath = config.ServerPath;
- _buttonReleaseTime = config.ButtonReleaseTime;
-
- SaveSettings();
- }
- }
-
- public string[] AvailablePorts { get { return new string[] { "Default" }; } }
-
- public bool Transmit(string port, byte[] data)
- {
- string password, remoteName, buttonName, repeats;
-
- MemoryStream memoryStream = new MemoryStream(data);
-
- XmlDocument doc = new XmlDocument();
- doc.Load(memoryStream);
-
- password = doc.DocumentElement.Attributes["Password"].Value;
- remoteName = doc.DocumentElement.Attributes["RemoteName"].Value;
- buttonName = doc.DocumentElement.Attributes["ButtonName"].Value;
- repeats = doc.DocumentElement.Attributes["Repeats"].Value;
-
- string output = String.Format("{0} {1} {2} {3}\n", password, remoteName, buttonName, repeats);
- _server.Transmit(output);
-
- memoryStream.Close();
-
- return true;
- }
-
- void LoadSettings()
- {
- try
- {
- XmlDocument doc = new XmlDocument();
- doc.Load(ConfigurationFile);
-
- _serverIP = IPAddress.Parse(doc.DocumentElement.Attributes["ServerIP"].Value);
- _serverPort = int.Parse(doc.DocumentElement.Attributes["ServerPort"].Value);
- _startServer = bool.Parse(doc.DocumentElement.Attributes["StartServer"].Value);
- _serverPath = doc.DocumentElement.Attributes["ServerPath"].Value;
- _buttonReleaseTime = int.Parse(doc.DocumentElement.Attributes["ButtonReleaseTime"].Value);
- }
- catch (Exception ex)
- {
- Console.WriteLine(ex.ToString());
-
- _serverIP = IPAddress.Parse("127.0.0.1");
- _serverPort = 8765;
- _startServer = false;
- _serverPath = "winlirc.exe";
- _buttonReleaseTime = 200;
- }
- }
- void SaveSettings()
- {
- try
- {
- XmlTextWriter writer = new XmlTextWriter(ConfigurationFile, System.Text.Encoding.UTF8);
- writer.Formatting = Formatting.Indented;
- writer.Indentation = 1;
- writer.IndentChar = (char)9;
- writer.WriteStartDocument(true);
- writer.WriteStartElement("settings"); // <settings>
-
- writer.WriteAttributeString("ServerIP", _serverIP.ToString());
- writer.WriteAttributeString("ServerPort", _serverPort.ToString());
- writer.WriteAttributeString("StartServer", _startServer.ToString());
- writer.WriteAttributeString("ServerPath", _serverPath);
- writer.WriteAttributeString("ButtonReleaseTime", _buttonReleaseTime.ToString());
-
- writer.WriteEndElement(); // </settings>
- writer.WriteEndDocument();
- writer.Close();
- }
- catch (Exception ex)
- {
- Console.WriteLine(ex.ToString());
- }
- }
-
- void CommandHandler(WinLircServer.Command cmd)
- {
- if (_remoteButtonHandler == null)
- return;
-
- string buttonCode = cmd.Remote + ": " + cmd.Button;
-
- _remoteButtonHandler(buttonCode);
- }
-
- #endregion Implementation
-
- }
-
-}
Deleted: trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Receiver.csproj
===================================================================
--- trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Receiver/WinLirc Receiver.csproj 2007-08-23 13:19:30 UTC (rev 859)
+++ trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Receiver.csproj 2007-08-23 15:02:04 UTC (rev 860)
@@ -1,97 +0,0 @@
-<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>{E6A68244-8C31-44A9-9F85-B4A102B5F209}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>WinLircReceiver</RootNamespace>
- <AssemblyName>WinLirc Receiver</AssemblyName>
- <RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
- </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>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <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>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <UseVSHostingProcess>false</UseVSHostingProcess>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
- <OutputPath>bin\x86\Debug\</OutputPath>
- <DefineConstants>DEBUG</DefineConstants>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <DebugType>full</DebugType>
- <PlatformTarget>x86</PlatformTarget>
- <UseVSHostingProcess>false</UseVSHostingProcess>
- <ErrorReport>prompt</ErrorReport>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
- <OutputPath>bin\x86\Release\</OutputPath>
- <Optimize>true</Optimize>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <DebugType>
- </DebugType>
- <PlatformTarget>x86</PlatformTarget>
- <UseVSHostingProcess>false</UseVSHostingProcess>
- <ErrorReport>prompt</ErrorReport>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Data" />
- <Reference Include="System.Drawing" />
- <Reference Include="System.Windows.Forms" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Configure.cs">
- <SubType>Form</SubType>
- </Compile>
- <Compile Include="Configure.Designer.cs">
- <DependentUpon>Configure.cs</DependentUpon>
- </Compile>
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="WinLirc Receiver.cs" />
- <Compile Include="WinLircServer.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>
- <ItemGroup>
- <EmbeddedResource Include="Configure.resx">
- <DependentUpon>Configure.cs</DependentUpon>
- <SubType>Designer</SubType>
- </EmbeddedResource>
- </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 "$(TargetFileName)" "\MediaPortal Development\Plugin Releases\IR Server Suite\IR Server Plugins\"</PostBuildEvent>
- </PropertyGroup>
-</Project>
\ No newline at end of file
Added: 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 (rev 0)
+++ trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.cs 2007-08-23 15:02:04 UTC (rev 860)
@@ -0,0 +1,197 @@
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.IO;
+using System.Net;
+using System.Net.Sockets;
+using System.Windows.Forms;
+using System.Xml;
+
+using IRServerPluginInterface;
+
+namespace WinLircTransceiver
+{
+
+ public class WinLircTransceiver : IRServerPlugin, IConfigure, IRemoteReceiver, ITransmitIR
+ {
+
+ #region Constants
+
+ static readonly string ConfigurationFile =
+ Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) +
+ "\\IR Server Suite\\IR Server\\WinLirc Receiver.xml";
+
+ #endregion Constants
+
+ #region Variables
+
+ RemoteHandler _remoteButtonHandler = null;
+ WinLircServer _server;
+
+ IPAddress _serverIP;
+ int _serverPort;
+ bool _startServer;
+ string _serverPath;
+ int _buttonReleaseTime;
+
+ #endregion Variables
+
+ #region Implementation
+
+ public override string Name { get { return "WinLirc"; } }
+ public override string Version { get { return "1.0.3.3"; } }
+ public override string Author { get { return "and-81, original code for MediaPortal by Sven"; } }
+ public override string Description { get { return "Supports WinLirc as a Transciever"; } }
+
+ public override bool Start()
+ {
+ LoadSettings();
+
+ if (_startServer)
+ {
+ if (!WinLircServer.StartServer(_serverPath))
+ return false;
+ }
+
+ _server = new WinLircServer(_serverIP, _serverPort, TimeSpan.FromMilliseconds(_buttonReleaseTime));
+ _server.CommandEvent += new WinLircServer.CommandEventHandler(CommandHandler);
+
+ return true;
+ }
+ public override void Suspend()
+ {
+ Stop();
+ }
+ public override void Resume()
+ {
+ Start();
+ }
+ public override void Stop()
+ {
+ _server.CommandEvent -= new WinLircServer.CommandEventHandler(CommandHandler);
+ _server = null;
+ }
+
+ public RemoteHandler RemoteCallback
+ {
+ get { return _remoteButtonHandler; }
+ set { _remoteButtonHandler = value; }
+ }
+
+ public void Configure()
+ {
+ LoadSettings();
+
+ Configure config = new Configure();
+
+ config.ServerIP = _serverIP;
+ config.ServerPort = _serverPort;
+ config.StartServer = _startServer;
+ config.ServerPath = _serverPath;
+ config.ButtonReleaseTime = _buttonReleaseTime;
+
+ if (config.ShowDialog() == DialogResult.OK)
+ {
+ _serverIP = config.ServerIP;
+ _serverPort = config.ServerPort;
+ _startServer = config.StartServer;
+ _serverPath = config.ServerPath;
+ _buttonReleaseTime = config.ButtonReleaseTime;
+
+ SaveSettings();
+ }
+ }
+
+ public string[] AvailablePorts { get { return new string[] { "Default" }; } }
+
+ public bool Transmit(string port, byte[] data)
+ {
+ string password, remoteName, buttonName, repeats;
+
+ MemoryStream memoryStream = new MemoryStream(data);
+
+ XmlDocument doc = new XmlDocument();
+ doc.Load(memoryStream);
+
+ password = doc.DocumentElement.Attributes["Password"].Value;
+ remoteName = doc.DocumentElement.Attributes["RemoteName"].Value;
+ buttonName = doc.DocumentElement.Attributes["ButtonName"].Value;
+ repeats = doc.DocumentElement.Attributes["Repeats"].Value;
+
+ string output = String.Format("{0} {1} {2} {3}\n", password, remoteName, buttonName, repeats);
+
+ MessageBox.Show(output);
+ _server.Transmit(output);
+
+ memoryStream.Close();
+
+ return true;
+ }
+
+ void LoadSettings()
+ {
+ try
+ {
+ XmlDocument doc = new XmlDocument();
+ doc.Load(ConfigurationFile);
+
+ _serverIP = IPAddress.Parse(doc.DocumentElement.Attributes["ServerIP"].Value);
+ _serverPort = int.Parse(doc.DocumentElement.Attributes["ServerPort"].Value);
+ _startServer = bool.Parse(doc.DocumentElement.Attributes["StartServer"].Value);
+ _serverPath = doc.DocumentElement.Attributes["ServerPath"].Value;
+ _buttonReleaseTime = int.Parse(doc.DocumentElement.Attributes["ButtonReleaseTime"].Value);
+ }
+ catch (Exception ex)
+ {
+ Console.WriteLine(ex.ToString());
+
+ _serverIP = IPAddress.Parse("127.0.0.1");
+ _serverPort = 8765;
+ _startServer = false;
+ _serverPath = "winlirc.exe";
+ _buttonReleaseTime = 200;
+ }
+ }
+ void SaveSettings()
+ {
+ try
+ {
+ XmlTextWriter writer = new XmlTextWriter(ConfigurationFile, System.Text.Encoding.UTF8);
+ writer.Formatting = Formatting.Indented;
+ writer.Indentation = 1;
+ writer.IndentChar = (char)9;
+ writer.WriteStartDocument(true);
+ writer.WriteStartElement("settings"); // <settings>
+
+ writer.WriteAttributeString("ServerIP", _serverIP.ToString());
+ writer.WriteAttributeString("ServerPort", _serverPort.ToString());
+ writer.WriteAttributeString("StartServer", _startServer.ToString());
+ writer.WriteAttributeString("ServerPath", _serverPath);
+ writer.WriteAttributeString("ButtonReleaseTime", _buttonReleaseTime.ToString());
+
+ writer.WriteEndElement(); // </settings>
+ writer.WriteEndDocument();
+ writer.Close();
+ }
+ catch (Exception ex)
+ {
+ Console.WriteLine(ex.ToString());
+ }
+ }
+
+ void CommandHandler(WinLircServer.Command cmd)
+ {
+ if (_remoteButtonHandler == null)
+ return;
+
+ string buttonCode = cmd.Remote + ": " + cmd.Button;
+
+ _remoteButtonHandler(buttonCode);
+ }
+
+ #endregion Implementation
+
+ }
+
+}
Added: trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.csproj
===================================================================
--- trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.csproj (rev 0)
+++ trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.csproj 2007-08-23 15:02:04 UTC (rev 860)
@@ -0,0 +1,103 @@
+<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>{E6A68244-8C31-44A9-9F85-B4A102B5F209}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>WinLircTransceiver</RootNamespace>
+ <AssemblyName>WinLirc Transceiver</AssemblyName>
+ <RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
+ </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>
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+ <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>
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <OutputPath>bin\x86\Debug\</OutputPath>
+ <DefineConstants>DEBUG</DefineConstants>
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x86</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <OutputPath>bin\x86\Release\</OutputPath>
+ <Optimize>true</Optimize>
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+ <DebugType>
+ </DebugType>
+ <PlatformTarget>x86</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Configure.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Configure.Designer.cs">
+ <DependentUpon>Configure.cs</DependentUpon>
+ </Compile>
+ <Compile Include="CreateIRFile.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="CreateIRFile.Designer.cs">
+ <DependentUpon>CreateIRFile.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="WinLirc Transceiver.cs" />
+ <Compile Include="WinLircServer.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>
+ <ItemGroup>
+ <EmbeddedResource Include="Configure.resx">
+ <DependentUpon>Configure.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ </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 "$(TargetFileName)" "\MediaPortal Development\Plugin Releases\IR Server Suite\IR Server Plugins\"</PostBuildEvent>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
Modified: trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLircServer.cs
===================================================================
--- trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Receiver/WinLircServer.cs 2007-08-23 13:19:30 UTC (rev 859)
+++ trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLircServer.cs 2007-08-23 15:02:04 UTC (rev 860)
@@ -31,7 +31,7 @@
using System.Net.Sockets;
using System.Diagnostics;
-namespace WinLircReceiver
+namespace WinLircTransceiver
{
/// <summary>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|