Moved Mute button, lots new keysets
[pierogi] / protocols / daewooprotocol.h
diff --git a/protocols/daewooprotocol.h b/protocols/daewooprotocol.h
new file mode 100644 (file)
index 0000000..bb3cf73
--- /dev/null
@@ -0,0 +1,35 @@
+#ifndef DAEWOOPROTOCOL_H
+#define DAEWOOPROTOCOL_H
+
+#include "spaceprotocol.h"
+
+class PIRRX51Hardware;
+
+//
+// Daewoo is using something that looks like a simplified NEC protocol,
+// lacking the inverted copy of the data that NEC sends, and with the addition
+// of a marker bit sent inbetween the address and the command.
+//
+
+class DaewooProtocol: public SpaceProtocol
+{
+public:
+  DaewooProtocol(
+    QObject *guiObject,
+    unsigned int index);
+
+public slots:
+  void startSendingCommand(
+    unsigned int threadableID,
+    PIRKeyName command);
+
+private:
+  unsigned int midPulse;
+  unsigned int midSpace;
+
+  int generateStandardCommand(
+    const PIRKeyBits &bits,
+    PIRRX51Hardware &device);
+};
+
+#endif // DAEWOOPROTOCOL_H