A/C Keysets, Donations button
authorJohn Pietrzak <john@pietrzak.org>
Thu, 16 Feb 2012 19:24:17 +0000 (14:24 -0500)
committerJohn Pietrzak <john@pietrzak.org>
Thu, 16 Feb 2012 19:24:17 +0000 (14:24 -0500)
Added several air conditioner keysets (lg and panasonic).  Also, added a
paypal donations button to the Pierogi website for those folks who may be
interested.

doc/about.html
keysets/lg.cpp
keysets/lg.h
keysets/panasonic.cpp
keysets/panasonic.h
keysets/philips.cpp
keysets/samsung.cpp
pierogi.pro.user
pirkeysetmanager.cpp
www/index.html

index 6843f34..f23f517 100644 (file)
@@ -26,6 +26,13 @@ Pierogi message board</a>.  Thank you!
 For more information, please visit the <a href="http://pierogi.garage.maemo.org">Pierogi website</a>.
 </p>
 
+<p>
+Pierogi is a free open-source program!  Use it however you like.  But if you
+wish to send a few appreciative dollars my way, I do accept
+<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K697WUWYDLNJA">donations</a>.
+Thank you!
+</p>
+
 <p>Copyright (C) 2012 by John Pietrzak.
 Released under the GPL version 2.0 or later.</p>
 
index 06840fb..8133e06 100644 (file)
@@ -513,3 +513,23 @@ LGVCR1b::LGVCR1b(
   addKey("menu-right", Right_Key, 0x90, 8);
 }
 
+
+LGAC1::LGAC1(
+  QObject *guiObject,
+  unsigned int index)
+  : PIRKeysetMetaData(
+      "Air Conditioner 1",
+      LG_Make,
+      index)
+{
+  threadableProtocol = new NECProtocol(guiObject, index, true, true);
+
+  setPreData(0x6681, 16);
+
+  addKey("power", Power_Key, 0x81, 8);
+  addKey("temp up", Red_Key, 0x85, 8);
+  addKey("temp down", Blue_Key, 0x8A, 8);
+  addKey("timer", Sleep_Key, 0x90, 8);
+  addKey("fan speed", SoundMode_Key, 0x99, 8);
+  addKey("mode", PictureMode_Key, 0x9B, 8);
+}
index 6bff901..c35ba87 100644 (file)
@@ -109,4 +109,12 @@ public:
     unsigned int index);
 };
 
+class LGAC1: public PIRKeysetMetaData
+{
+public:
+  LGAC1(
+    QObject *guiObject,
+    unsigned int index);
+};
+
 #endif // LG_H
index 1618777..5f7b792 100644 (file)
@@ -572,3 +572,25 @@ PanasonicAudio1::PanasonicAudio1(
   addKaseikyoKey("panelclose", Unmapped_Key, 0xC2A, 0xF5); // "TOP_PANEL_CLOSE"
 }
 
+
+PanasonicAC1::PanasonicAC1(
+  QObject *guiObject,
+  unsigned int index)
+  : PIRKeysetMetaData(
+      "Air Conditioner 1",
+      Panasonic_Make,
+      index)
+{
+  threadableProtocol = new NECProtocol(guiObject, index, true, true);
+
+  setPreData(0x6681, 16);
+
+  addKey("Operation", Power_Key, 0x81, 8);
+  addKey("Air Swing", Yellow_Key, 0x83, 8);
+  addKey("Temp Up", Red_Key, 0x85, 8);
+  addKey("Temp Down", Blue_Key, 0x8A, 8);
+  addKey("Economy", Green_Key, 0x8D, 8);
+  addKey("Timer", Sleep_Key, 0x90, 8);
+  addKey("Fan Speed", SoundMode_Key, 0x99, 8);
+  addKey("Mode", PictureMode_Key, 0x9B, 8);
+}
index 5fe45ee..5237836 100644 (file)
@@ -117,4 +117,12 @@ public:
     unsigned int index);
 };
 
+class PanasonicAC1: public PIRKeysetMetaData
+{
+public:
+  PanasonicAC1(
+    QObject *guiObject,
+    unsigned int index);
+};
+
 #endif // PANASONIC_H
index 3bea2bf..7f359ea 100644 (file)
@@ -506,6 +506,7 @@ PhilipsDVD1c::PhilipsDVD1c(
 
   addControlledDevice(Philips_Make, "HTS3544", DVD_Device);
   addControlledDevice(Philips_Make, "DVP5982", DVD_Device);
+  addControlledDevice(Philips_Make, "DVP5160", DVD_Device);
 
   addKey("play-pause", Pause_Key, 0x2C, 8);
   addKey("disc-usb", Unmapped_Key, 0x3F, 8);
index 7fb3f78..1b9c9a7 100644 (file)
@@ -12,6 +12,7 @@ SamsungTV1::SamsungTV1(
       index)
 {
   addControlledDevice(Samsung_Make, "SyncMaster 192MP", TV_Device);
+  addControlledDevice(Samsung_Make, "SyncMaster 225MW", TV_Device);
   addControlledDevice(Samsung_Make, "LN32C530F1FXZA", TV_Device);
   addControlledDevice(Samsung_Make, "UE46B6000VPXZG", TV_Device); // ?
 
index 47e6bc6..8b4ad2f 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE QtCreatorProject>
-<!-- Written by Qt Creator 2.4.1, 2012-02-15T22:46:30. -->
+<!-- Written by Qt Creator 2.4.1, 2012-02-16T14:15:12. -->
 <qtcreator>
  <data>
   <variable>ProjectExplorer.Project.ActiveTarget</variable>
@@ -78,7 +78,7 @@
      <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.2">
       <value type="QString" key="ProjectExplorer.ProcessStep.Arguments">dpkg-buildpackage -sa -S -uc -us</value>
       <value type="QString" key="ProjectExplorer.ProcessStep.Command">/Users/john/QtSDK/Maemo/4.6.2/bin/mad</value>
-      <value type="bool" key="ProjectExplorer.ProcessStep.Enabled">true</value>
+      <value type="bool" key="ProjectExplorer.ProcessStep.Enabled">false</value>
       <value type="QString" key="ProjectExplorer.ProcessStep.WorkingDirectory">/Users/john/Develop/n900/pierogi-0.6.5</value>
       <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Process Step</value>
       <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
index 2a4c2ce..dae628b 100644 (file)
@@ -254,6 +254,7 @@ PIRKeysetManager::PIRKeysetManager(
   populateKeyset(new LGVCR1(guiObject, counter++));
   populateKeyset(new LGVCR1a(guiObject, counter++));
   populateKeyset(new LGVCR1b(guiObject, counter++));
+  populateKeyset(new LGAC1(guiObject, counter++));
 
   populateKeyset(new LogitechSpeakers(guiObject, counter++));
 
@@ -291,6 +292,7 @@ PIRKeysetManager::PIRKeysetManager(
   populateKeyset(new PanasonicDVD1(guiObject, counter++));
   populateKeyset(new PanasonicDVD1a(guiObject, counter++));
   populateKeyset(new PanasonicAudio1(guiObject, counter++));
+  populateKeyset(new PanasonicAC1(guiObject, counter++));
 
   populateKeyset(new PhilcoTV(guiObject, counter++));
 
index d17051f..57dfabb 100644 (file)
@@ -25,6 +25,19 @@ or send a message to
 Thank you for your understanding.
 </p>
 
+<p>
+Also, some kind folks have asked about donations.  Let me state up front that
+this is a free, open-source program; do with it as you will!  But yes, if you
+wish to send some small donation my way, I will gladly accept it.
+</p>
+
+<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
+<input type="hidden" name="cmd" value="_s-xclick">
+<input type="hidden" name="hosted_button_id" value="K697WUWYDLNJA">
+<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
+<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
+</form>
+
 <h1>Pierogi Documentation</h1>
 
 <p>