Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Pierogi
Summary Forums Tracker Lists Tasks Docs News SCM Files
index 0ac7f37..6f20278 100644 (file)
@@ -2,13 +2,24 @@
 #include "protocols/necprotocol.h"
 
 LogitechSpeakers::LogitechSpeakers(
-  QObject *guiObject,
   unsigned int index)
   : PIRKeysetMetaData(
       "Digital Speakers Keyset",
       Logitech_Make,
       index)
 {
+}
+
+
+void LogitechSpeakers::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(0x08, 8);

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment