Improved Keyset Selection Window
[pierogi] / necprotocol.h
index 8610522..da5e5ff 100644 (file)
@@ -2,7 +2,7 @@
 #define NECPROTOCOL_H
 
 #include "pirprotocol.h"
-#include "pirdevice.h"
+#include "pirrx51hardware.h"
 
 //
 // The "NEC" Protocol is, more or less, followed by the majority of
@@ -55,6 +55,9 @@ public:
   void setRepeatNeedsHeader(
     bool flag);
 
+  void setFullHeadlessRepeat(
+    bool flag);
+
 public slots:
   void startSendingCommand(
     unsigned int threadableID,
@@ -88,17 +91,22 @@ private:
   unsigned int repeatSpace;
   bool hasRepeatPair;
   bool repeatNeedsHeader; // Put the header ahead of the repeat pulse
+  bool fullHeadlessRepeat; // Repeat full command but without header
 
   int generateStandardCommand(
     const CommandSequence &bits,
-    PIRDevice &device);
+    PIRRX51Hardware &device);
+
+  int generateHeadlessCommand(
+    const CommandSequence &bits,
+    PIRRX51Hardware &device);
 
   int generateRepeatCommand(
-    PIRDevice &device);
+    PIRRX51Hardware &device);
 
   int pushBits(
     const CommandSequence &bits,
-    PIRDevice &device);
+    PIRRX51Hardware &device);
 };
 
 #endif // NECPROTOCOL_H