| 62 | } |
| 63 | |
| 64 | bool 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 | |
| 83 | void* CAQPowerStatusCheck::Process(void) |
| 84 | { |
nothing calls this directly
no test coverage detected