X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FANCommandHandler.h;h=3b08cbd04a8ae5839cc76f2d3ea7d8e6ed65554a;hb=6d5033117aacb1be07d93b99a82115146af4d623;hp=d9437d13a1e6529c364bf5f932e05bc32cfc44bd;hpb=a2612289991e8ba17bd02534d68741f7c22b4ad3;p=deb_libcec.git diff --git a/src/lib/implementations/ANCommandHandler.h b/src/lib/implementations/ANCommandHandler.h index d9437d1..3b08cbd 100644 --- a/src/lib/implementations/ANCommandHandler.h +++ b/src/lib/implementations/ANCommandHandler.h @@ -38,12 +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); + int HandleVendorRemoteButtonDown(const cec_command &command); + int HandleVendorRemoteButtonUp(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); }; };