Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Pierogi
Summary Forums Tracker Lists Tasks Docs News SCM Files
index 6e0c298..b482415 100644 (file)
@@ -1,15 +1,26 @@
 #include "elgato.h"
-#include "necprotocol.h"
+#include "protocols/necprotocol.h"
 
 ElgatoEyeTV1::ElgatoEyeTV1(
-  QObject *guiObject,
   unsigned int index)
   : PIRKeysetMetaData(
       "EyeTV Keyset 1",
       Elgato_Make,
       index)
 {
-  threadableProtocol = new NECProtocol(guiObject, index, Standard_NEC);
+}
+
+
+void ElgatoEyeTV1::populateProtocol(
+  QObject *guiObject)
+{
+  if (threadableProtocol)
+  {
+    // If the pointer is not null, the keyset must already be populated.
+    return;
+  }
+
+  threadableProtocol = new NECProtocol(guiObject, index, false, true);
 
   setPreData(0x45, 8);
 

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment