// Create a hookswitch message and post it to the Hookswitch task. // Return the result of the message send operation. OsStatus PsHookswTask::postEvent(const int msg, void* source, const int hookswState, const OsTime& rTimeout) { PsMsg hookswMsg(msg, source, hookswState, 0); OsStatus res; res = postMessage(hookswMsg, rTimeout); return res; }
TaoStatus TaoPhoneComponentAdaptor::getHookswState(TaoMessage& rMsg) { PsMsg hookswMsg(PsMsg::HOOKSW_GET_STATE, this, mHookswState, mHookswState); mpPhoneTask->postMessage(hookswMsg); rMsg.setMsgSubType(TaoMessage::RESPONSE_PHONECOMPONENT); if (mpSvrTransport->postMessage(rMsg)) return TAO_SUCCESS; return TAO_FAILURE; }