m_waitingFor.clear();
}
- bool Wait(cec_opcode opcode, uint32_t iTimeout = 2000)
+ bool Wait(cec_opcode opcode, uint32_t iTimeout = CEC_DEFAULT_TRANSMIT_WAIT)
{
CResponse *response = GetEvent(opcode);
return response ? response->Wait(iTimeout) : false;
virtual void SignalOpcode(cec_opcode opcode);
+ virtual bool ActiveSourcePending(void);
+ virtual bool SupportsDeviceType(const cec_device_type UNUSED(type)) const { return true; };
+ cec_device_type GetReplacementDeviceType(const cec_device_type type) const { return type; }
+
protected:
virtual bool HandleActiveSource(const cec_command &command);
virtual bool HandleDeckControl(const cec_command &command);
virtual size_t GetMyDevices(std::vector<CCECBusDevice *> &devices) const;
virtual CCECBusDevice *GetDevice(cec_logical_address iLogicalAddress) const;
virtual CCECBusDevice *GetDeviceByPhysicalAddress(uint16_t iPhysicalAddress) const;
- virtual CCECBusDevice *GetDeviceByType(cec_device_type type) const;
virtual bool SetVendorId(const cec_command &command);
virtual void SetPhysicalAddress(cec_logical_address iAddress, uint16_t iNewAddress);
bool m_bOPTSendDeckStatusUpdateOnActiveSource;
cec_vendor_id m_vendorId;
CWaitForResponse *m_waitForResponse;
+ bool m_bActiveSourcePending;
+ PLATFORM::CMutex m_mutex;
};
};