Search for Power Button Panel
[pierogi] / keysets / pentax.cpp
diff --git a/keysets/pentax.cpp b/keysets/pentax.cpp
new file mode 100644 (file)
index 0000000..889dc62
--- /dev/null
@@ -0,0 +1,26 @@
+#include "pentax.h"
+#include "protocols/rc5protocol.h"
+
+PentaxCamera1::PentaxCamera1(
+  unsigned int index)
+  : PIRKeysetMetaData(
+      "RC-F Remote Keyset",
+      Pentax_Make,
+      index)
+{
+}
+
+
+void PentaxCamera1::populateProtocol(
+  QObject *guiObject)
+{
+  if (threadableProtocol)
+  {
+    // Keyset already populated.
+    return;
+  }
+
+  threadableProtocol = new RC5Protocol(guiObject, index);
+
+  addKey("CAPTURE", OpenShutter_Key, 0x100C, 13);
+}