A couple of UI additions
[pierogi] / protocols / protonprotocol.h
diff --git a/protocols/protonprotocol.h b/protocols/protonprotocol.h
new file mode 100644 (file)
index 0000000..849f5ac
--- /dev/null
@@ -0,0 +1,30 @@
+#ifndef PROTONPROTOCOL_H
+#define PROTONPROTOCOL_H
+
+#include "spaceprotocol.h"
+
+class PIRRX51Hardware;
+
+//
+// The Proton protocol looks a bit like a stripped-down NEC protocol.
+//
+
+class ProtonProtocol: public SpaceProtocol
+{
+public:
+  ProtonProtocol(
+    QObject *guiObject,
+    unsigned int index);
+
+public slots:
+  void startSendingCommand(
+    unsigned int threadableID,
+    PIRKeyName command);
+
+private:
+  int generateStandardCommand(
+    const PIRKeyBits &bits,
+    PIRRX51Hardware &device);
+};
+
+#endif // PROTONPROTOCOL_H