Added Hildon Banners, bugfixes, new keysets
[pierogi] / protocols / dishprotocol.h
diff --git a/protocols/dishprotocol.h b/protocols/dishprotocol.h
new file mode 100644 (file)
index 0000000..6108dd6
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef DISHPROTOCOL_H
+#define DISHPROTOCOL_H
+
+#include "spaceprotocol.h"
+
+class PIRRX51Hardware;
+
+//
+// The Dish protocol is space encoded, but otherwise is unlike just about
+// any other protocol out there.
+//
+
+class DishProtocol: public SpaceProtocol
+{
+public:
+  DishProtocol(
+    QObject *guiObject,
+    unsigned int index);
+
+public slots:
+  void startSendingCommand(
+    unsigned int threadableID,
+    PIRKeyName command);
+
+private:
+  int generateStandardCommand(
+    const PIRKeyBits &bits,
+    PIRRX51Hardware &device);
+};
+
+#endif // DISHPROTOCOL_H