MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / SendSetMenuState

Method SendSetMenuState

src/libcec/CECClient.cpp:637–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637bool CCECClient::SendSetMenuState(const cec_menu_state state, bool bSendUpdate /* = true */)
638{
639 CECDEVICEVEC devices;
640
641 // set the menu state for all devices that are controlled by us
642 m_processor->GetDevices()->GetByLogicalAddresses(devices, m_configuration.logicalAddresses);
643 for (CECDEVICEVEC::iterator it = devices.begin(); it != devices.end(); it++)
644 {
645 (*it)->SetMenuState(state);
646 if (bSendUpdate)
647 (*it)->TransmitMenuState(CECDEVICE_TV, false);
648 }
649
650 return true;
651}
652
653bool CCECClient::SendSetInactiveView(void)
654{

Callers 1

SetMenuStateMethod · 0.80

Calls 4

GetByLogicalAddressesMethod · 0.80
GetDevicesMethod · 0.80
SetMenuStateMethod · 0.45
TransmitMenuStateMethod · 0.45

Tested by

no test coverage detected