Mapped rocker switch to favorite keysets
[pierogi] / pirkeysetmetadata.h
index 0673eb6..2267899 100644 (file)
@@ -1,15 +1,17 @@
 #ifndef PIRKEYSETMETADATA_H
 #define PIRKEYSETMETADATA_H
 
-#include <map>
-#include <list>
-//#include <string>
-
 #include "pirkeynames.h"
 #include "pirmakenames.h"
 #include "pirdevicetypenames.h"
-#include "pirkeysetwidgetitem.h"
-#include "protocols/pirprotocol.h"
+
+#include <map>
+#include <list>
+
+class QThread;
+
+class PIRKeysetWidgetItem;
+class PIRProtocol;
 
 typedef std::map<PIRKeyName, const char *> KeyCollection;
 
@@ -50,7 +52,7 @@ public:
   const char *getKeysetName() const;
 
   void moveProtocolToThread(
-    QThread &thread);
+    QThread *thread);
 
   void populateDeviceTypes(
     PIRKeysetWidgetItem *kwi) const;
@@ -111,6 +113,20 @@ protected:
     unsigned int addressTwo,
     unsigned int commandTwo);
 
+/*
+  void addRCAKey(
+    const char *name,
+    PIRKeyName key,
+    unsigned int addressData,
+    unsigned int commandData);
+*/
+
+  void addKaseikyoKey(
+    const char *name,
+    PIRKeyName key,
+    unsigned int addressData,
+    unsigned int commandData);
+
   void setPreData(
     unsigned long data,
     unsigned int bits);