X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FANCommandHandler.h;h=595170ac887101088f5627b9db9f8c2a300bfba3;hb=3befc9811e59359c014c33c1276f869d5b59ac09;hp=0207a6321f67c435c9d627b66481b0ca320446ee;hpb=0ab58650411d2de14fbe707e7c01ea407655bd15;p=deb_libcec.git diff --git a/src/lib/implementations/ANCommandHandler.h b/src/lib/implementations/ANCommandHandler.h index 0207a63..595170a 100644 --- a/src/lib/implementations/ANCommandHandler.h +++ b/src/lib/implementations/ANCommandHandler.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-2013 Pulse-Eight Limited. All rights reserved. * libCEC(R) is an original work, containing original code. * * libCEC(R) is a trademark of Pulse-Eight Limited. @@ -38,14 +38,17 @@ namespace CEC class CANCommandHandler : public CCECCommandHandler { public: - CANCommandHandler(CCECBusDevice *busDevice); + CANCommandHandler(CCECBusDevice *busDevice, + int32_t iTransmitTimeout = CEC_DEFAULT_TRANSMIT_TIMEOUT, + int32_t iTransmitWait = CEC_DEFAULT_TRANSMIT_WAIT, + int8_t iTransmitRetries = CEC_DEFAULT_TRANSMIT_RETRIES, + int64_t iActiveSourcePending = 0); virtual ~CANCommandHandler(void) {}; - virtual bool HandleCommand(const cec_command &command); - - virtual cec_vendor_id GetVendorId(void) { return CEC_VENDOR_SAMSUNG; }; + int HandleVendorRemoteButtonDown(const cec_command &command); + int HandleDeviceVendorCommandWithId(const cec_command &command); protected: - virtual bool HandleVendorRemoteButtonDown(const cec_command &command); + bool PowerOn(const cec_logical_address iInitiator, const cec_logical_address iDestination); }; };