return m_processor->Transmit(command);
}
-cec_version CCECBusDevice::GetCecVersion(void)
+cec_version CCECBusDevice::GetCecVersion(bool bRefresh /* = true */)
{
- if (m_cecVersion == CEC_VERSION_UNKNOWN)
+ if (bRefresh || m_cecVersion == CEC_VERSION_UNKNOWN)
{
AddLog(CEC_LOG_NOTICE, "<< requesting CEC version");
cec_command command;
return m_cecVersion;
}
-cec_menu_language &CCECBusDevice::GetMenuLanguage(void)
+cec_menu_language &CCECBusDevice::GetMenuLanguage(bool bRefresh /* = true */)
{
- if (!strcmp(m_menuLanguage.language, "???"))
+ if (bRefresh || !strcmp(m_menuLanguage.language, "???"))
{
AddLog(CEC_LOG_NOTICE, "<< requesting menu language");
cec_command command;
return m_menuLanguage;
}
-cec_power_status CCECBusDevice::GetPowerStatus(void)
+cec_power_status CCECBusDevice::GetPowerStatus(bool bRefresh /* = true */)
{
- if (m_powerStatus == CEC_POWER_STATUS_UNKNOWN)
+ if (bRefresh || m_powerStatus == CEC_POWER_STATUS_UNKNOWN)
{
AddLog(CEC_LOG_NOTICE, "<< requesting power status");
cec_command command;
virtual uint64_t GetLastActive(void) const { return m_iLastActive; }
virtual cec_logical_address GetLogicalAddress(void) const { return m_iLogicalAddress; }
virtual uint16_t GetPhysicalAddress(void) const { return m_iPhysicalAddress; }
- virtual cec_version GetCecVersion(void);
- virtual cec_menu_language & GetMenuLanguage(void);
- virtual cec_power_status GetPowerStatus(void);
+ virtual cec_version GetCecVersion(bool bRefresh = true);
+ virtual cec_menu_language & GetMenuLanguage(bool bRefresh = true);
+ virtual cec_power_status GetPowerStatus(bool bRefresh = true);
virtual bool PowerOn(void);
virtual bool Standby(void);