HuaweiSTB1::HuaweiSTB1(
- QObject *guiObject,
unsigned int index)
: PIRKeysetMetaData(
"STB Keyset 1",
index)
{
addControlledDevice(Huawei_Make, "EX2108", Other_Device);
+}
+
+
+void HuaweiSTB1::populateProtocol(
+ QObject *guiObject)
+{
+ if (threadableProtocol)
+ {
+ // If the pointer is not null, the keyset must already be populated.
+ return;
+ }
threadableProtocol = new NECXProtocol(guiObject, index, false);
HuaweiSTB2::HuaweiSTB2(
- QObject *guiObject,
unsigned int index)
: PIRKeysetMetaData(
"STB Keyset 2",
index)
{
addControlledDevice(Huawei_Make, "EC2108", Other_Device);
+}
+
+
+void HuaweiSTB2::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);