Search for Power Button Panel
[pierogi] / keysets / olympus.cpp
diff --git a/keysets/olympus.cpp b/keysets/olympus.cpp
new file mode 100644 (file)
index 0000000..1716f54
--- /dev/null
@@ -0,0 +1,29 @@
+#include "olympus.h"
+#include "protocols/necprotocol.h"
+
+OlympusCamera1::OlympusCamera1(
+  unsigned int index)
+  : PIRKeysetMetaData(
+      "RM-2 Remote Keyset",
+      Olympus_Make,
+      index)
+{
+  addControlledDevice(Olympus_Make, "410 Digital", Other_Device);
+}
+
+
+void OlympusCamera1::populateProtocol(
+  QObject *guiObject)
+{
+  if (threadableProtocol)
+  {
+    // Keyset already populated.
+    return;
+  }
+
+  threadableProtocol = new NECProtocol(guiObject, index, true, true);
+
+  setPreData(0x3B86, 16);
+
+  addKey("CAPTURE", OpenShutter_Key, 0x01, 8);
+}