cec: mark the active source as active and other devices as inactive. removed duplicat...
[deb_libcec.git] / src / lib / implementations / CECCommandHandler.h
index 3a80f463823ca1d3ab9d17240d4d5c4181b42375..58b13e9724c38516d066946e6570264d75bc4fa3 100644 (file)
@@ -32,6 +32,7 @@
  */
 
 #include <cectypes.h>
+#include <vector>
 
 namespace CEC
 {
@@ -46,6 +47,10 @@ namespace CEC
     virtual bool HandleCommand(const cec_command &command);
     virtual cec_vendor_id GetVendorId(void) { return CEC_VENDOR_UNKNOWN; };
 
+    static const char *ToString(const cec_deck_info status);
+    static const char* ToString(const cec_logical_address address);
+    static const char* ToString(const cec_opcode opcode);
+
   protected:
     virtual bool HandleDeviceCecVersion(const cec_command &command);
     virtual bool HandleDeviceVendorCommandWithId(const cec_command &command);
@@ -64,16 +69,16 @@ namespace CEC
     virtual bool HandleSetMenuLanguage(const cec_command &command);
     virtual bool HandleSetStreamPath(const cec_command &command);
     virtual bool HandleSetSystemAudioModeRequest(const cec_command &command);
+    virtual bool HandleStandby(const cec_command &command);
     virtual bool HandleGiveSystemAudioModeStatus(const cec_command &command);
     virtual bool HandleUserControlPressed(const cec_command &command);
     virtual bool HandleUserControlRelease(const cec_command &command);
     virtual void UnhandledCommand(const cec_command &command);
 
+    virtual unsigned int GetMyDevices(std::vector<CCECBusDevice *> &devices) const;
     virtual CCECBusDevice *GetDevice(cec_logical_address iLogicalAddress) const;
     virtual CCECBusDevice *GetDeviceByPhysicalAddress(uint16_t iPhysicalAddress) const;
 
-    static const char* ToString(const cec_opcode opcode);
-
     virtual void SetVendorId(const cec_command &command);
     CCECBusDevice *m_busDevice;
   };