cec: fixed - ensure that the vendor commands are always sent for panasonic, and that...
[deb_libcec.git] / src / lib / implementations / VLCommandHandler.h
index 6f417e8e14f415774804658ec9ca2fc016f8a25d..3ad80b49150b53749bc61d0f306f972631a5a00c 100644 (file)
@@ -38,7 +38,11 @@ namespace CEC
   class CVLCommandHandler : public CCECCommandHandler
   {
   public:
-    CVLCommandHandler(CCECBusDevice *busDevice);
+    CVLCommandHandler(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 ~CVLCommandHandler(void) {};
 
     bool InitHandler(void);
@@ -54,8 +58,13 @@ namespace CEC
 
     bool SourceSwitchAllowed(void);
 
-  private:
+  protected:
+    void VendorPreActivateSourceHook(void);
+    void SendVendorCommandCapabilities(const cec_logical_address initiator, const cec_logical_address destination);
+    int HandleReportPowerStatus(const cec_command &command);
+
     PLATFORM::CMutex m_mutex;
     uint64_t         m_iPowerUpEventReceived;
+    bool             m_bCapabilitiesSent;
   };
 };