- private:
- bool WaitForAck(int iTimeout = 1000);
- bool ParseMessage(cec_frame &msg);
- void ParseCurrentFrame(void);
+ virtual void SetCurrentButton(cec_user_control_code iButtonCode);
+ virtual void AddCommand(const cec_command &command);
+ virtual void AddKey(cec_keypress &key);
+ virtual void AddKey(void);
+ virtual void AddLog(cec_log_level level, const CStdString &strMessage);
+
+ virtual bool FindLogicalAddresses(void);
+
+ CCECBusDevice *m_busDevices[16];
+
+ private:
+ bool TryLogicalAddress(cec_logical_address address, const char *strLabel, unsigned int iIndex);
+ bool FindLogicalAddressRecordingDevice(unsigned int iIndex);
+ bool FindLogicalAddressTuner(unsigned int iIndex);
+ bool FindLogicalAddressPlaybackDevice(unsigned int iIndex);
+ bool FindLogicalAddressAudioSystem(unsigned int iIndex);
+
+ bool SetAckMask(uint16_t iMask);
+ void LogOutput(const cec_command &data);
+ bool WaitForTransmitSucceeded(uint8_t iLength, uint32_t iTimeout = 1000);
+ bool ParseMessage(const CCECAdapterMessage &msg);
+ void ParseCommand(cec_command &command);