return false;
if (!m_logicalAddresses.empty() && m_busDevices[m_logicalAddresses.primary])
- return m_busDevices[m_logicalAddresses.primary]->BroadcastActiveView();
+ return m_busDevices[m_logicalAddresses.primary]->TransmitActiveView();
return false;
}
return false;
if (!m_logicalAddresses.empty() && m_busDevices[m_logicalAddresses.primary])
- return m_busDevices[m_logicalAddresses.primary]->BroadcastInactiveView();
+ return m_busDevices[m_logicalAddresses.primary]->TransmitInactiveView();
return false;
}
if (!m_logicalAddresses.empty() && m_busDevices[m_logicalAddresses.primary])
{
m_busDevices[m_logicalAddresses.primary]->SetPhysicalAddress(iPhysicalAddress);
- return m_busDevices[m_logicalAddresses.primary]->BroadcastActiveView();
+ return m_busDevices[m_logicalAddresses.primary]->TransmitActiveView();
}
return false;
}
return m_processor->Transmit(command);
}
-bool CCECBusDevice::ReportCECVersion(cec_logical_address dest)
+bool CCECBusDevice::TransmitCECVersion(cec_logical_address dest)
{
AddLog(CEC_LOG_NOTICE, "<< reporting CEC version as 1.3a");
return m_processor->Transmit(command);
}
-bool CCECBusDevice::ReportDeckStatus(cec_logical_address dest)
+bool CCECBusDevice::TransmitDeckStatus(cec_logical_address dest)
{
// need to support opcodes play and deck control before doing anything with this
AddLog(CEC_LOG_NOTICE, "<< deck status requested, feature abort");
return false;
}
-bool CCECBusDevice::ReportMenuState(cec_logical_address dest)
+bool CCECBusDevice::TransmitMenuState(cec_logical_address dest)
{
if (m_bMenuActive)
AddLog(CEC_LOG_NOTICE, "<< reporting menu state as active");
return m_processor->Transmit(command);
}
-bool CCECBusDevice::ReportOSDName(cec_logical_address dest)
+bool CCECBusDevice::TransmitOSDName(cec_logical_address dest)
{
CStdString strLog;
strLog.Format("<< reporting OSD name as %s", m_strDeviceName.c_str());
return m_processor->Transmit(command);
}
-bool CCECBusDevice::ReportPowerState(cec_logical_address dest)
+bool CCECBusDevice::TransmitPowerState(cec_logical_address dest)
{
CStdString strLog;
strLog.Format("<< reporting power status '%d'", m_powerStatus);
return m_processor->Transmit(command);
}
-bool CCECBusDevice::ReportVendorID(cec_logical_address dest)
+bool CCECBusDevice::TransmitVendorID(cec_logical_address dest)
{
AddLog(CEC_LOG_NOTICE, "<< vendor ID requested, feature abort");
m_processor->TransmitAbort(dest, CEC_OPCODE_GIVE_DEVICE_VENDOR_ID);
return false;
}
-bool CCECBusDevice::BroadcastActiveView(void)
+bool CCECBusDevice::TransmitActiveView(void)
{
AddLog(CEC_LOG_DEBUG, "<< setting active view");
return m_processor->Transmit(command);
}
-bool CCECBusDevice::BroadcastInactiveView(void)
+bool CCECBusDevice::TransmitInactiveView(void)
{
AddLog(CEC_LOG_DEBUG, "<< setting inactive view");
return m_processor->Transmit(command);
}
-bool CCECBusDevice::BroadcastPhysicalAddress(void)
+bool CCECBusDevice::TransmitPhysicalAddress(void)
{
CStdString strLog;
strLog.Format("<< reporting physical address as %04x", m_iPhysicalAddress);
return m_processor->Transmit(command);
}
-bool CCECBusDevice::BroadcastActiveSource(void)
+bool CCECBusDevice::TransmitActiveSource(void)
{
AddLog(CEC_LOG_NOTICE, "<< broadcasting active source");
virtual CCECProcessor *GetProcessor() const { return m_processor; }
virtual CCECCommandHandler *GetHandler(void) const { return m_handler; };
- virtual bool ReportCECVersion(cec_logical_address dest);
- virtual bool ReportDeckStatus(cec_logical_address dest);
- virtual bool ReportMenuState(cec_logical_address dest);
- virtual bool ReportOSDName(cec_logical_address dest);
- virtual bool ReportPowerState(cec_logical_address dest);
- virtual bool ReportVendorID(cec_logical_address dest);
+ virtual bool TransmitCECVersion(cec_logical_address dest);
+ virtual bool TransmitDeckStatus(cec_logical_address dest);
+ virtual bool TransmitMenuState(cec_logical_address dest);
+ virtual bool TransmitOSDName(cec_logical_address dest);
+ virtual bool TransmitPowerState(cec_logical_address dest);
+ virtual bool TransmitVendorID(cec_logical_address dest);
- virtual bool BroadcastActiveView(void);
- virtual bool BroadcastInactiveView(void);
- virtual bool BroadcastPhysicalAddress(void);
- virtual bool BroadcastActiveSource(void);
+ virtual bool TransmitActiveView(void);
+ virtual bool TransmitInactiveView(void);
+ virtual bool TransmitPhysicalAddress(void);
+ virtual bool TransmitActiveSource(void);
protected:
cec_device_type m_type;
{
CCECBusDevice *device = GetDevice(command.destination);
if (device)
- return device->ReportCECVersion(command.initiator);
+ return device->TransmitCECVersion(command.initiator);
return false;
}
{
CCECBusDevice *device = GetDevice(command.destination);
if (device)
- return device->ReportDeckStatus(command.initiator);
+ return device->TransmitDeckStatus(command.initiator);
return false;
}
{
CCECBusDevice *device = GetDevice(command.destination);
if (device)
- return device->ReportPowerState(command.initiator);
+ return device->TransmitPowerState(command.initiator);
return false;
}
{
CCECBusDevice *device = GetDevice(command.destination);
if (device)
- return device->ReportVendorID(command.initiator);
+ return device->TransmitVendorID(command.initiator);
return false;
}
{
CCECBusDevice *device = GetDevice(command.destination);
if (device)
- return device->ReportOSDName(command.initiator);
+ return device->TransmitOSDName(command.initiator);
return false;
}
{
CCECBusDevice *device = GetDevice(command.destination);
if (device)
- return device->BroadcastPhysicalAddress();
+ return device->TransmitPhysicalAddress();
return false;
}
{
CCECBusDevice *device = GetDevice(command.destination);
if (device)
- return device->ReportMenuState(command.initiator);
+ return device->TransmitMenuState(command.initiator);
}
return false;
}
m_busDevice->AddLog(CEC_LOG_DEBUG, strLog.c_str());
CCECBusDevice *device = m_busDevice->GetProcessor()->m_busDevices[m_busDevice->GetMyLogicalAddress()];
if (device)
- return device->BroadcastActiveSource();
+ return device->TransmitActiveSource();
return false;
}
{
CCECBusDevice *device = GetDevice(command.destination);
if (device)
- return device->BroadcastActiveSource();
+ return device->TransmitActiveSource();
return false;
}
}
CCECBusDevice *device = GetDevice(command.destination);
if (device)
{
- return device->BroadcastActiveSource() &&
- device->BroadcastActiveView() &&
- device->ReportMenuState(command.initiator);
+ return device->TransmitActiveSource() &&
+ device->TransmitActiveView() &&
+ device->TransmitMenuState(command.initiator);
}
return false;
}