X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FCECCommandHandler.h;h=9bf98982da7949f847d26a07f12dbf9dfe0f1582;hb=305500533ee1524692ceaf3cb5f38d24225c5920;hp=6be4b707baced9e99af593e81fe7c3122ad8946b;hpb=a1f8fb1b065d260eb9d6eaf7e053f7415b453613;p=deb_libcec.git diff --git a/src/lib/implementations/CECCommandHandler.h b/src/lib/implementations/CECCommandHandler.h index 6be4b70..9bf9898 100644 --- a/src/lib/implementations/CECCommandHandler.h +++ b/src/lib/implementations/CECCommandHandler.h @@ -32,6 +32,7 @@ */ #include +#include namespace CEC { @@ -46,7 +47,20 @@ 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_menu_state state); + static const char *ToString(const cec_deck_control_mode mode); + static const char *ToString(const cec_version version); + static const char *ToString(const cec_power_status status); + 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); + static const char *ToString(const cec_system_audio_status mode); + static const char *ToString(const cec_audio_status status); + static const char *ToString(const cec_vendor_id vendor); + protected: + virtual bool HandleActiveSource(const cec_command &command); + virtual bool HandleDeckControl(const cec_command &command); virtual bool HandleDeviceCecVersion(const cec_command &command); virtual bool HandleDeviceVendorCommandWithId(const cec_command &command); virtual bool HandleDeviceVendorId(const cec_command &command); @@ -63,11 +77,19 @@ namespace CEC virtual bool HandleRoutingChange(const cec_command &command); 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 &devices) const; virtual CCECBusDevice *GetDevice(cec_logical_address iLogicalAddress) const; + virtual CCECBusDevice *GetDeviceByPhysicalAddress(uint16_t iPhysicalAddress) const; + virtual CCECBusDevice *GetDeviceByType(cec_device_type type) const; + + virtual void SetVendorId(const cec_command &command); CCECBusDevice *m_busDevice; }; };