X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FCECCommandHandler.h;h=7db751448054ada9711fbf92c0b1ed831d8db373;hb=1b2120236aca8246e1c5fba371db99e5da3d3f0e;hp=7bb0fc253c13389383f8f7d1a159742941040e79;hpb=0ab58650411d2de14fbe707e7c01ea407655bd15;p=deb_libcec.git diff --git a/src/lib/implementations/CECCommandHandler.h b/src/lib/implementations/CECCommandHandler.h index 7bb0fc2..7db7514 100644 --- a/src/lib/implementations/CECCommandHandler.h +++ b/src/lib/implementations/CECCommandHandler.h @@ -32,6 +32,7 @@ */ #include +#include namespace CEC { @@ -47,21 +48,45 @@ namespace CEC virtual cec_vendor_id GetVendorId(void) { return CEC_VENDOR_UNKNOWN; }; protected: - bool HandleDeviceVendorCommandWithId(const cec_command &command); - bool HandleDeviceVendorId(const cec_command &command); - bool HandleGetCecVersion(const cec_command &command); - bool HandleGiveDeckStatus(const cec_command &command); - bool HandleGiveDevicePowerStatus(const cec_command &command); - bool HandleGiveDeviceVendorId(const cec_command &command); - bool HandleGiveOSDName(const cec_command &command); - bool HandleGivePhysicalAddress(const cec_command &command); - bool HandleMenuRequest(const cec_command &command); - bool HandleRequestActiveSource(const cec_command &command); - bool HandleRoutingChange(const cec_command &command); - bool HandleSetStreamPath(const cec_command &command); - bool HandleUserControlPressed(const cec_command &command); - bool HandleUserControlRelease(const cec_command &command); - void UnhandledCommand(const cec_command &command); + 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); + virtual bool HandleGetCecVersion(const cec_command &command); + virtual bool HandleGiveAudioStatus(const cec_command &command); + virtual bool HandleGiveDeckStatus(const cec_command &command); + virtual bool HandleGiveDevicePowerStatus(const cec_command &command); + virtual bool HandleGiveDeviceVendorId(const cec_command &command); + virtual bool HandleGiveOSDName(const cec_command &command); + virtual bool HandleGivePhysicalAddress(const cec_command &command); + virtual bool HandleGiveSystemAudioModeStatus(const cec_command &command); + virtual bool HandleImageViewOn(const cec_command &command); + virtual bool HandleMenuRequest(const cec_command &command); + virtual bool HandleReportAudioStatus(const cec_command &command); + virtual bool HandleReportPhysicalAddress(const cec_command &command); + virtual bool HandleReportPowerStatus(const cec_command &command); + virtual bool HandleRequestActiveSource(const cec_command &command); + virtual bool HandleRoutingChange(const cec_command &command); + virtual bool HandleRoutingInformation(const cec_command &command); + virtual bool HandleSetMenuLanguage(const cec_command &command); + virtual bool HandleSetOSDName(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 HandleSystemAudioStatus(const cec_command &command); + virtual bool HandleTextViewOn(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); + virtual void SetPhysicalAddress(cec_logical_address iAddress, uint16_t iNewAddress); CCECBusDevice *m_busDevice; };