Adding per-keyset editable data
[pierogi] / pirkeysetmetadata.cpp
index 6db70bf..71b2c33 100644 (file)
@@ -55,7 +55,7 @@ void PIRKeysetMetaData::populateDevices(
     tempString.append(i->first.model);
 
     kwi = new PIRKeysetWidgetItem(
-      tempString, i->second, i->first.make, i->first.type);
+      tempString, i->first.model, i->second, i->first.make, i->first.type);
 
     sdf->addWidgetItem(kwi);
 
@@ -181,6 +181,20 @@ void PIRKeysetMetaData::addNECKey(
 }
 
 
+void PIRKeysetMetaData::addPanOldKey(
+  const char *name,
+  PIRKeyName key,
+  unsigned int addressData,
+  unsigned int commandData)
+{
+  if (key != Unmapped_Key)
+  {
+    keys[key] = name;
+    threadableProtocol->addPanOldKey(key, addressData, commandData);
+  }
+}
+
+
 void PIRKeysetMetaData::addPioneerKey(
   const char *name,
   PIRKeyName key,