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

Method PowerOn

src/libcec/implementations/AQCommandHandler.cpp:64–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64bool CAQCommandHandler::PowerOn(const cec_logical_address iInitiator, const cec_logical_address iDestination)
65{
66 bool bCheck(false);
67 bool bRetval(false);
68 if (m_busDevice->GetCurrentPowerStatus() != CEC_POWER_STATUS_ON && (!m_powerOnCheck || !m_powerOnCheck->IsRunning()))
69 bCheck = true;
70 bRetval = CCECCommandHandler::PowerOn(iInitiator, iDestination);
71
72 if (bRetval && bCheck)
73 {
74 if (!m_powerOnCheck)
75 m_powerOnCheck = new CAQPowerStatusCheck(this, iInitiator, iDestination);
76 if (m_powerOnCheck)
77 m_powerOnCheck->CreateThread();
78 }
79
80 return bRetval;
81}
82
83void* CAQPowerStatusCheck::Process(void)
84{

Callers

nothing calls this directly

Calls 1

GetCurrentPowerStatusMethod · 0.80

Tested by

no test coverage detected