YamahaDVD1::YamahaDVD1(
- QObject *guiObject,
unsigned int index)
: PIRKeysetMetaData(
"DVD Keyset 1",
Yamaha_Make,
index)
{
+}
+
+
+void YamahaDVD1::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(0x3EC1, 16);
YamahaDVD1a::YamahaDVD1a(
- QObject *guiObject,
unsigned int index)
- : YamahaDVD1(guiObject, index)
+ : YamahaDVD1(index)
{
setKeysetName("DVD/LD Keyset 1a");
+}
+
+
+void YamahaDVD1a::populateProtocol(
+ QObject *guiObject)
+{
+ if (threadableProtocol)
+ {
+ // If the pointer is not null, the keyset must already be populated.
+ return;
+ }
+
+ YamahaDVD1::populateProtocol(guiObject);
addKey("LD_CH_-", ChannelDown_Key, 0x02, 8);
addKey("LD_CH_+", ChannelUp_Key, 0x03, 8);
YamahaAudio1::YamahaAudio1(
- QObject *guiObject,
unsigned int index)
: PIRKeysetMetaData(
"Audio Device Keyset 1",
Yamaha_Make,
index)
{
+}
+
+
+void YamahaAudio1::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(0x9E61, 16);
YamahaAudio1a::YamahaAudio1a(
- QObject *guiObject,
unsigned int index)
- : YamahaAudio1(guiObject, index)
+ : YamahaAudio1(index)
{
setKeysetName("Audio Keyset 1a");
+}
+
+
+void YamahaAudio1a::populateProtocol(
+ QObject *guiObject)
+{
+ if (threadableProtocol)
+ {
+ // If the pointer is not null, the keyset must already be populated.
+ return;
+ }
+
+ YamahaAudio1::populateProtocol(guiObject);
addKey("PAUSE/STOP", Stop_Key, 0x03, 8);
addKey("PAUSE/STOP", Pause_Key, 0x03, 8);
YamahaAudio2::YamahaAudio2(
- QObject *guiObject,
unsigned int index)
: PIRKeysetMetaData(
"Audio Keyset 2",
addControlledDevice(Yamaha_Make, "RX-395-RDS", Audio_Device);
addControlledDevice(Yamaha_Make, "AX-570", Audio_Device);
addControlledDevice(Yamaha_Make, "CDX-570", Audio_Device);
+}
+
+
+void YamahaAudio2::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("vcr", Unmapped_Key, 0x0F, 8);
addKey("ch+", ChannelUp_Key, 0x10, 8);
addKey("ch-", ChannelDown_Key, 0x11, 8);
- addKey("abcde", TunerBand_Key, 0x12, 8); // "A/B/C/D/E" "tuner-toggle"
+ addKey("abcde", Unmapped_Key, 0x12, 8); // "A/B/C/D/E" "tuner-toggle"
addKey("GO_VCR2", Unmapped_Key, 0x13, 8);
addKey("phono", PhonoInput_Key, 0x14, 8);
addKey("cd", CDInput_Key, 0x15, 8);
YamahaAudio2a::YamahaAudio2a(
- QObject *guiObject,
unsigned int index)
- : YamahaAudio2(guiObject, index)
+ : YamahaAudio2(index)
{
setKeysetName("Audio Keyset 2a");
+}
+
+
+void YamahaAudio2a::populateProtocol(
+ QObject *guiObject)
+{
+ if (threadableProtocol)
+ {
+ // If the pointer is not null, the keyset must already be populated.
+ return;
+ }
+
+ YamahaAudio2::populateProtocol(guiObject);
addKey("Dolby/DTS", Unmapped_Key, 0x90, 8);
addKey("6.1/5.1", Unmapped_Key, 0x97, 8);
YamahaAudio2b::YamahaAudio2b(
- QObject *guiObject,
unsigned int index)
- : YamahaAudio2(guiObject, index)
+ : YamahaAudio2(index)
{
setKeysetName("Audio Keyset 2b");
+}
+
+
+void YamahaAudio2b::populateProtocol(
+ QObject *guiObject)
+{
+ if (threadableProtocol)
+ {
+ // If the pointer is not null, the keyset must already be populated.
+ return;
+ }
+
+ YamahaAudio2::populateProtocol(guiObject);
addKey("SOURCE_DIRECT", Unmapped_Key, 0x56, 8);
}
YamahaAudio2c::YamahaAudio2c(
- QObject *guiObject,
unsigned int index)
- : YamahaAudio2(guiObject, index)
+ : YamahaAudio2(index)
{
setKeysetName("Audio Keyset 2c");
+}
+
+
+void YamahaAudio2c::populateProtocol(
+ QObject *guiObject)
+{
+ if (threadableProtocol)
+ {
+ // If the pointer is not null, the keyset must already be populated.
+ return;
+ }
+
+ YamahaAudio2::populateProtocol(guiObject);
addKey("parameterv", Unmapped_Key, 0xC4, 8);
addKey("parameter^", Unmapped_Key, 0xC5, 8);
YamahaAudio2d::YamahaAudio2d(
- QObject *guiObject,
unsigned int index)
- : YamahaAudio2(guiObject, index)
+ : YamahaAudio2(index)
{
setKeysetName("Audio Keyset 2d");
+}
+
+
+void YamahaAudio2d::populateProtocol(
+ QObject *guiObject)
+{
+ if (threadableProtocol)
+ {
+ // If the pointer is not null, the keyset must already be populated.
+ return;
+ }
+
+ YamahaAudio2::populateProtocol(guiObject);
addKey("LOUDNESS_+", Unmapped_Key, 0x1D, 8);
addKey("LOUDNESS_-", Unmapped_Key, 0x1E, 8);
YamahaAudio3::YamahaAudio3(
- QObject *guiObject,
unsigned int index)
: PIRKeysetMetaData(
"Audio Keyset 3",
Yamaha_Make,
index)
{
+}
+
+
+void YamahaAudio3::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(0xFE01, 16);
YamahaAudio4::YamahaAudio4(
- QObject *guiObject,
unsigned int index)
: PIRKeysetMetaData(
"Audio Keyset 4",
index)
{
addControlledDevice(Yamaha_Make, "GX-50", Audio_Device);
+}
+
+
+void YamahaAudio4::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("tape_back", Unmapped_Key, 0x45, 8);
addKey("rec", Record_Key, 0x46, 8);
addKey("tape1/2", Unmapped_Key, 0x47, 8);
- addKey("tuner", TunerBand_Key, 0x4B, 8);
+ addKey("tuner", TunerInput_Key, 0x4B, 8);
addKey("sleep", Sleep_Key, 0x4F, 8);
addKey("up_arrow", Up_Key, 0x55, 8);
addKey("down_arrow", Down_Key, 0x56, 8);
YamahaTV1::YamahaTV1(
- QObject *guiObject,
unsigned int index)
: PIRKeysetMetaData(
"TV Keyset 1",
Yamaha_Make,
index)
{
+}
+
+
+void YamahaTV1::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(0x20DF, 16);
YamahaKaraoke1::YamahaKaraoke1(
- QObject *guiObject,
unsigned int index)
: PIRKeysetMetaData(
"Karaoke Keyset 1",
Yamaha_Make,
index)
{
+}
+
+
+void YamahaKaraoke1::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(0xDE21, 16);