X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FCECCommandHandler.h;h=9bf98982da7949f847d26a07f12dbf9dfe0f1582;hb=3557c68d1c9f4ce0191163a4ab48b6c5cec68488;hp=b5c168b115e75f9915583d7f580161b6afb24430;hpb=e5e86c76b70975d8a8c03c58a230a70726399906;p=deb_libcec.git diff --git a/src/lib/implementations/CECCommandHandler.h b/src/lib/implementations/CECCommandHandler.h index b5c168b..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); @@ -64,13 +78,18 @@ 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 &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; }; };