X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FANCommandHandler.h;h=ab0184a5b85968cba7d06b2ce0a6343017566fc1;hb=41fafb34071badc0ffc57f0efb987058d87c456e;hp=d9437d13a1e6529c364bf5f932e05bc32cfc44bd;hpb=1bede530033f40a81400c7a1e4ed0e8755d4ec59;p=deb_libcec.git diff --git a/src/lib/implementations/ANCommandHandler.h b/src/lib/implementations/ANCommandHandler.h index d9437d1..ab0184a 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-2012 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,12 +38,18 @@ 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); + int HandleVendorRemoteButtonDown(const cec_command &command); + int HandleVendorRemoteButtonUp(const cec_command &command); + int HandleDeviceVendorCommandWithId(const cec_command &command); + protected: - virtual bool HandleVendorRemoteButtonDown(const cec_command &command); - virtual bool PowerOn(const cec_logical_address iInitiator, const cec_logical_address iDestination); + bool PowerOn(const cec_logical_address iInitiator, const cec_logical_address iDestination); }; };