Advanced Settings Panel
[pierogi] / keysets / olympus.cpp
1 #include "olympus.h"
2 #include "protocols/necprotocol.h"
3
4 OlympusCamera1::OlympusCamera1(
5   unsigned int index)
6   : PIRKeysetMetaData(
7       "RM-2 Remote Keyset",
8       Olympus_Make,
9       index)
10 {
11   addControlledDevice(Olympus_Make, "410 Digital", Other_Device);
12 }
13
14
15 void OlympusCamera1::populateProtocol(
16   QObject *guiObject)
17 {
18   if (threadableProtocol)
19   {
20     // Keyset already populated.
21     return;
22   }
23
24   threadableProtocol = new NECProtocol(guiObject, index, true, true);
25
26   setPreData(0x3B86, 16);
27
28   addKey("CAPTURE", OpenShutter_Key, 0x01, 8);
29 }