X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FSLCommandHandler.h;h=a0ea25a329cb3d49bc9716212ce0f8983b26908b;hb=60383b11a744aae1352f84d1a93aef163b0a17a0;hp=47d873bd7374a478a739243217aa1dca1ef19b6c;hpb=b818fb5a933c762e71916340384276c6ee5ed6d6;p=deb_libcec.git diff --git a/src/lib/implementations/SLCommandHandler.h b/src/lib/implementations/SLCommandHandler.h index 47d873b..a0ea25a 100644 --- a/src/lib/implementations/SLCommandHandler.h +++ b/src/lib/implementations/SLCommandHandler.h @@ -32,6 +32,7 @@ */ #include "CECCommandHandler.h" +#include "../platform/util/timeutils.h" namespace CEC { @@ -47,7 +48,6 @@ namespace CEC protected: virtual bool HandleActiveSource(const cec_command &command); virtual bool HandleDeviceVendorId(const cec_command &command); - virtual bool HandleFeatureAbort(const cec_command &command); virtual bool HandleGivePhysicalAddress(const cec_command &command); virtual bool HandleVendorCommand(const cec_command &command); @@ -58,13 +58,24 @@ namespace CEC virtual void HandleVendorCommandPowerOnStatus(const cec_command &command); virtual void HandleVendorCommandSLConnect(const cec_command &command); - virtual void TransmitVendorCommand05(const cec_logical_address iSource, const cec_logical_address iDestination); + virtual void TransmitVendorCommandSetDeviceMode(const cec_logical_address iSource, const cec_logical_address iDestination, const cec_device_type type); virtual bool HandleGiveDevicePowerStatus(const cec_command &command); virtual bool HandleGiveDeckStatus(const cec_command &command); + virtual bool HandleRequestActiveSource(const cec_command &command); + virtual bool HandleFeatureAbort(const cec_command &command); + virtual bool HandleStandby(const cec_command &command); + virtual bool TransmitMenuState(const cec_logical_address UNUSED(iInitiator), const cec_logical_address UNUSED(iDestination), cec_menu_state UNUSED(menuState)) { return true; } + virtual bool PowerOn(const cec_logical_address iInitiator, const cec_logical_address iDestination); + + virtual void ResetSLState(void); + virtual bool SLInitialised(void); + virtual void SetSLInitialised(void); + virtual bool ActiveSourceSent(void); - bool m_bSLEnabled; - bool m_bPowerStateReset; - bool m_bActiveSourceSent; + bool m_bSLEnabled; + bool m_bActiveSourceSent; + PLATFORM::CTimeout m_resetPowerState; + PLATFORM::CMutex m_SLMutex; }; };