public:
CVLCommandHandler(CCECBusDevice *busDevice);
virtual ~CVLCommandHandler(void) {};
- virtual bool InitHandler(void);
- virtual bool HandleDeviceVendorCommandWithId(const cec_command &command);
- virtual bool TransmitActiveSource(const cec_logical_address iInitiator, uint16_t iPhysicalAddress);
- virtual bool TransmitPendingActiveSourceCommands(void);
+ bool InitHandler(void);
+
+ int HandleDeviceVendorCommandWithId(const cec_command &command);
+ int HandleStandby(const cec_command &command);
+ int HandleSystemAudioModeRequest(const cec_command &command);
+
+ int HandleVendorCommand(const cec_command &command);
+ bool PowerUpEventReceived(void);
+ bool SupportsDeviceType(const cec_device_type type) const { return type != CEC_DEVICE_TYPE_RECORDING_DEVICE; };
+ cec_device_type GetReplacementDeviceType(const cec_device_type type) const { return type == CEC_DEVICE_TYPE_RECORDING_DEVICE ? CEC_DEVICE_TYPE_PLAYBACK_DEVICE : type; }
+
+ bool SourceSwitchAllowed(void);
private:
PLATFORM::CMutex m_mutex;
- bool m_bActiveSourcePending;
- bool m_bPowerUpEventReceived;
+ uint64_t m_iPowerUpEventReceived;
};
};