Change back to real tabbed window, updates keysets
[pierogi] / protocols / paceprotocol.h
diff --git a/protocols/paceprotocol.h b/protocols/paceprotocol.h
new file mode 100644 (file)
index 0000000..2fb0f94
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef PACEPROTOCOL_H
+#define PACEPROTOCOL_H
+
+#include "spaceprotocol.h"
+
+class PIRRX51Hardware;
+
+// The "Pace" protocol seems to be a very simple space-encoded protocol
+// with little more than the command code and a toggle bit.
+
+class PaceProtocol: public SpaceProtocol
+{
+public:
+  PaceProtocol(
+    QObject *guiObject,
+    unsigned int index);
+
+public slots:
+  void startSendingCommand(
+    unsigned int threadableID,
+    PIRKeyName command);
+
+private:
+  unsigned int keypressCount;
+
+  int generateStandardCommand(
+    const PIRKeyBits &bits,
+    PIRRX51Hardware &device);
+};
+
+#endif // PACEPROTOCOL_H