X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FSLCommandHandler.h;h=dae426605758b1e03b7f42535db9be55b588dae9;hb=d749efb2d01817c0a8ad8b32a1b9861c5a78c83d;hp=76a99701c0db91386a3492bb6bb2283b34e72e5b;hpb=0ab58650411d2de14fbe707e7c01ea407655bd15;p=deb_libcec.git diff --git a/src/lib/implementations/SLCommandHandler.h b/src/lib/implementations/SLCommandHandler.h index 76a9970..dae4266 100644 --- a/src/lib/implementations/SLCommandHandler.h +++ b/src/lib/implementations/SLCommandHandler.h @@ -2,7 +2,7 @@ /* * This file is part of the libCEC(R) library. * - * libCEC(R) is Copyright (C) 2011 Pulse-Eight Limited. All rights reserved. + * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved. * libCEC(R) is an original work, containing original code. * * libCEC(R) is a trademark of Pulse-Eight Limited. @@ -40,6 +40,28 @@ namespace CEC public: CSLCommandHandler(CCECBusDevice *busDevice); virtual ~CSLCommandHandler(void) {}; - virtual cec_vendor_id GetVendorId(void) { return CEC_VENDOR_LG; }; + + virtual bool InitHandler(void); + virtual bool ActivateSource(void); + + protected: + virtual bool HandleActiveSource(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); + + virtual void HandleVendorCommand01(const cec_command &command); + virtual void TransmitVendorCommand0205(const cec_logical_address iSource, const cec_logical_address iDestination); + + virtual void HandleVendorCommandPowerOn(const cec_command &command); + 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 SetLGDeckStatus(void); + + bool m_bSLEnabled; + bool m_bPowerStateReset; }; };