cec: fix loop when initialising LG
[deb_libcec.git] / src / lib / implementations / SLCommandHandler.h
index bc917dccf4976b81e3d8290ccd0e0c4b8cc18251..55f1beaeee6f960680ff13755b5a990a44eb4185 100644 (file)
@@ -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-2012 Pulse-Eight Limited.  All rights reserved.
  * libCEC(R) is an original work, containing original code.
  *
  * libCEC(R) is a trademark of Pulse-Eight Limited.
@@ -40,12 +40,29 @@ namespace CEC
   public:
     CSLCommandHandler(CCECBusDevice *busDevice);
     virtual ~CSLCommandHandler(void) {};
-    virtual cec_vendor_id GetVendorId(void) { return CEC_VENDOR_LG; };
 
-    virtual bool HandleCommand(const cec_command &command);
+    virtual bool InitHandler(void);
+    virtual bool ActivateSource(void);
 
   protected:
-    virtual bool HandleGiveDeviceVendorId(const cec_command &command);
+    virtual bool HandleActiveSource(const cec_command &command);
+    virtual bool HandleDeviceVendorId(const cec_command &command);
+    virtual bool HandleFeatureAbort(const cec_command &command);
+    virtual bool HandleGivePhysicalAddress(const cec_command &command);
     virtual bool HandleVendorCommand(const cec_command &command);
+
+    virtual void HandleVendorCommand01(const cec_command &command);
+    virtual void TransmitVendorCommand0205(const cec_logical_address iSource, const cec_logical_address iDestination);
+
+    virtual void HandleVendorCommandPowerOn(const cec_command &command);
+    virtual void HandleVendorCommandPowerOnStatus(const cec_command &command);
+
+    virtual void HandleVendorCommandSLConnect(const cec_command &command);
+    virtual void TransmitVendorCommand05(const cec_logical_address iSource, const cec_logical_address iDestination);
+
+    virtual void SetDeckStatus(cec_deck_info deckStatus);
+
+    bool    m_bSLEnabled;
+    bool    m_bPowerStateReset;
   };
 };