Update to UI
[pierogi] / keysets / samsung.cpp
index 50a1621..da23518 100644 (file)
@@ -14,6 +14,7 @@ SamsungTV1::SamsungTV1(
   addControlledDevice(Samsung_Make, "SyncMaster 225MW", TV_Device);
   addControlledDevice(Samsung_Make, "LN32C530F1FXZA", TV_Device);
   addControlledDevice(Samsung_Make, "UE46B6000VPXZG", TV_Device); // ?
+  addControlledDevice(Samsung_Make, "LE22B470C9M", TV_Device);
 }
 
 
@@ -408,12 +409,12 @@ void SamsungVCR1::populateProtocol(
   addKey("Eject", Eject_Key, 0x20, 8);
   addKey("auto_track", AutoTracking_Key, 0x21, 8); // "A.TRK"
   addKey("Captions", Captions_Key, 0x22, 8);
-  addKey("BAND", TunerBand_Key, 0x23, 8);
+  addKey("BAND", TunerInput_Key, 0x23, 8);
   addKey("input", Unmapped_Key, 0x24, 8);
   addKey("shift", Unmapped_Key, 0x25, 8);
   addKey("100+", PlusOneHundred_Key, 0x26, 8);
   addKey("Down", Down_Key, 0x29, 8); // "erase"
-  addKey("mark/search", Unmapped_Key, 0x2B, 8); // "index"
+  addKey("mark/search", IndexSearch_Key, 0x2B, 8); // "index"
   addKey("trk_up", TrackingPlus_Key, 0x2C, 8); // "FINE_UP"
   addKey("trk_down", TrackingMinus_Key, 0x2D, 8); // "FINE_DOWN"
   addKey("dub", Unmapped_Key, 0x2E, 8);
@@ -424,7 +425,7 @@ void SamsungVCR1::populateProtocol(
   addKey("SYSTEM", Unmapped_Key, 0x32, 8);
   addKey("CLK_COUNT", Unmapped_Key, 0x33, 8); // "clk/cnt"
   addKey("PRESET", Unmapped_Key, 0x35, 8);
-  addKey("VPS", Unmapped_Key, 0x38, 8);
+  addKey("VPS", RecordPDC_Key, 0x38, 8);
   addKey("progressive/speed", VHSSpeed_Key, 0x3A, 8); // "SP-LP"
   addKey("Q_PRO", Unmapped_Key, 0x3D, 8);
 
@@ -891,6 +892,43 @@ void SamsungAC1::populateProtocol(
 }
 
 
+/*
+SamsungAC2::SamsungAC2(
+  unsigned int index)
+  : PIRKeysetMetaData(
+      "AC Keyset 2",
+      Samsung_Make,
+      index)
+{
+}
+
+
+void SamsungAC2::populateProtocol(
+  QObject *guiObject)
+{
+  if (threadableProtocol)
+  {
+    // Keyset already populated.
+    return;
+  }
+
+  threadableProtocol = new ACProtocol(guiObject, index);
+
+  addKey("Power Off", PowerOff_Subkey, 0xC, 4);
+  addKey("Power On", PowerOn_Subkey, 0x0, 4);
+
+  addKey("Cool Mode - Normal", CoolModeNormal_Subkey, 0x7, 3);
+  addKey("Cool Mode - Turbo", CoolModeTurbo_Subkey, 0x1, 3);
+  addKey("Cool Mode - Far", CoolModeFar_Subkey, 0x2, 3);
+
+  addKey("Deflector L/R Off", DeflectorLROff_Subkey, 0x0, 1);
+  addKey("Deflector L/R On", DeflectorLROn_Subkey, 0x1, 1);
+  addKey("Deflector U/D Off", DeflectorUDOff_Subkey, 0x0, 1);
+  addKey("Deflector U/D On", DeflectorUDOn_Subkey, 0x1, 1);
+}
+*/
+
+
 SamsungDVBT1::SamsungDVBT1(
   unsigned int index)
   : PIRKeysetMetaData(