#include "protocols/lircprotocol.h"
GoldStarTV1::GoldStarTV1(
- QObject *guiObject,
unsigned int index)
: PIRKeysetMetaData(
"105-210A TV",
index)
{
addControlledDevice(GoldStar_Make, "105-210A", TV_Device);
+}
+
+
+void GoldStarTV1::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);
GoldStarTV2::GoldStarTV2(
- QObject *guiObject,
unsigned int index)
: PIRKeysetMetaData(
"TV Keyset 2",
GoldStar_Make,
index)
{
+}
+
+
+void GoldStarTV2::populateProtocol(
+ QObject *guiObject)
+{
+ if (threadableProtocol)
+ {
+ // If the pointer is not null, the keyset must already be populated.
+ return;
+ }
+
threadableProtocol = new RC5Protocol(guiObject, index, 0x40);
addKey("0", Zero_Key, 0x00, 6);
GoldStarVCR1::GoldStarVCR1(
- QObject *guiObject,
unsigned int index)
: PIRKeysetMetaData(
"VCR Keyset 1",
{
addControlledDevice(GoldStar_Make, "GSE-Q204P", VCR_Device);
addControlledDevice(GoldStar_Make, "QUISY 500", VCR_Device);
+}
+
+
+void GoldStarVCR1::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);
addKey("display", Info_Key, 0x1E, 8);
addKey("clear", Clear_Key, 0x1F, 8);
addKey("child_lock", Unmapped_Key, 0x3F, 8);
- addKey("viss", Unmapped_Key, 0x41, 8);
+ addKey("viss", IndexSearch_Key, 0x41, 8);
addKey("tracking+", TrackingPlus_Key, 0x44, 8);
addKey("tracking-", TrackingMinus_Key, 0x45, 8);
- addKey("show_view", Unmapped_Key, 0x47, 8);
+ addKey("show_view", Unmapped_Key, 0x47, 8); // vhsplus+, etc.
addKey("sp/lp", VHSSpeed_Key, 0x48, 8);
- addKey("vps", Unmapped_Key, 0x49, 8);
+ addKey("vps", RecordPDC_Key, 0x49, 8);
addKey("start", Unmapped_Key, 0x4A, 8);
addKey("length", Unmapped_Key, 0x4B, 8);
addKey("clock_count", Clock_Key, 0x4C, 8); // "memory"
GoldStarVCR1a::GoldStarVCR1a(
- QObject *guiObject,
unsigned int index)
- : GoldStarVCR1(guiObject, index)
+ : GoldStarVCR1(index)
{
setKeysetName("VCR Keyset 1a");
+}
+
+
+void GoldStarVCR1a::populateProtocol(
+ QObject *guiObject)
+{
+ if (threadableProtocol)
+ {
+ // If the pointer is not null, the keyset must already be populated.
+ return;
+ }
+
+ GoldStarVCR1::populateProtocol(guiObject);
addKey("TU_AV", Input_Key, 0x56, 16);
}
GoldStarVCR1b::GoldStarVCR1b(
- QObject *guiObject,
unsigned int index)
- : GoldStarVCR1(guiObject, index)
+ : GoldStarVCR1(index)
{
setKeysetName("VCR Keyset 1b");
+}
+
+
+void GoldStarVCR1b::populateProtocol(
+ QObject *guiObject)
+{
+ if (threadableProtocol)
+ {
+ // If the pointer is not null, the keyset must already be populated.
+ return;
+ }
+
+ GoldStarVCR1::populateProtocol(guiObject);
addKey("BACK", Exit_Key, 0x4C, 8);
}
GoldStarVCR1c::GoldStarVCR1c(
- QObject *guiObject,
unsigned int index)
- : GoldStarVCR1(guiObject, index)
+ : GoldStarVCR1(index)
{
setKeysetName("VCR Keyset 1c");
+}
+
+
+void GoldStarVCR1c::populateProtocol(
+ QObject *guiObject)
+{
+ if (threadableProtocol)
+ {
+ // If the pointer is not null, the keyset must already be populated.
+ return;
+ }
+
+ GoldStarVCR1::populateProtocol(guiObject);
addKey("trk-", TrackingMinus_Key, 0xED, 8);
addKey("trk+", TrackingPlus_Key, 0xEE, 8);
}
-// Based on LIRC 6710S-6000A config file
GoldStarCD1::GoldStarCD1(
- QObject *guiObject,
unsigned int index)
: PIRKeysetMetaData(
"Audio Keyset 1",
index)
{
addControlledDevice(GoldStar_Make, "FFH-272A/L", Audio_Device);
+}
+
+
+
+// Based on LIRC 6710S-6000A config file
+void GoldStarCD1::populateProtocol(
+ QObject *guiObject)
+{
+ if (threadableProtocol)
+ {
+ // If the pointer is not null, the keyset must already be populated.
+ return;
+ }
LIRCProtocol *lp = new LIRCProtocol(
guiObject,