mark a device as powered on when receiving a stream path or routing change
[deb_libcec.git] / src / lib / implementations / ANCommandHandler.h
index 567684fa7cf78e4bcd99edf95a1be9611f0783cb..3b08cbd04a8ae5839cc76f2d3ea7d8e6ed65554a 100644 (file)
@@ -38,13 +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) {};
 
-    bool HandleCommand(const cec_command &command);
+    int HandleVendorRemoteButtonDown(const cec_command &command);
+    int HandleVendorRemoteButtonUp(const cec_command &command);
 
   protected:
-    bool HandleVendorRemoteButtonDown(const cec_command &command);
     bool PowerOn(const cec_logical_address iInitiator, const cec_logical_address iDestination);
   };
 };